soc/intel/xeon_sp: Drop uncore_fill_ssdt
[coreboot2.git] / util / smmstoretool / data.h
blob13bd7bc4f48af822d298245270c9702e99739560
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SMMSTORETOOL__DATA_H__
4 #define SMMSTORETOOL__DATA_H__
6 #include <stdbool.h>
7 #include <stddef.h>
8 #include <stdint.h>
10 enum data_type {
11 DATA_TYPE_BOOL,
12 DATA_TYPE_UINT8,
13 DATA_TYPE_UINT16,
14 DATA_TYPE_UINT32,
15 DATA_TYPE_ASCII,
16 DATA_TYPE_UNICODE,
17 DATA_TYPE_RAW,
20 void print_data(const uint8_t data[], size_t data_size, enum data_type type);
22 void *make_data(const char source[], size_t *data_size, enum data_type type);
24 bool parse_data_type(const char str[], enum data_type *type);
26 #endif // SMMSTORETOOL__DATA_H__