aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/dmi
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-04 20:23:16 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-04 21:01:32 -0700
commit0b19aba1d072ab3a2d9f528d7f0042dc8bc9e0ca (patch)
treeeb93c4db28c463d98cf520e3235e7357f870c0e8 /com32/gplinclude/dmi
parenta6b80d3e8a356a55b4365c5e402e502843bbff8c (diff)
parent8e01231be41fd889bcb71604dbda511688ed0f38 (diff)
downloadsyslinux.git-0b19aba1d072ab3a2d9f528d7f0042dc8bc9e0ca.tar.gz
syslinux.git-0b19aba1d072ab3a2d9f528d7f0042dc8bc9e0ca.tar.xz
syslinux.git-0b19aba1d072ab3a2d9f528d7f0042dc8bc9e0ca.zip
Merge commit 'hpa/master' into for-erwan
Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/dmi')
-rw-r--r--com32/gplinclude/dmi/dmi.h45
-rw-r--r--com32/gplinclude/dmi/dmi_base_board.h40
-rw-r--r--com32/gplinclude/dmi/dmi_battery.h32
-rw-r--r--com32/gplinclude/dmi/dmi_bios.h112
-rw-r--r--com32/gplinclude/dmi/dmi_chassis.h28
-rw-r--r--com32/gplinclude/dmi/dmi_ipmi.h18
-rw-r--r--com32/gplinclude/dmi/dmi_memory.h36
-rw-r--r--com32/gplinclude/dmi/dmi_processor.h123
-rw-r--r--com32/gplinclude/dmi/dmi_system.h16
9 files changed, 224 insertions, 226 deletions
diff --git a/com32/gplinclude/dmi/dmi.h b/com32/gplinclude/dmi/dmi.h
index a2274c02..def0a8ea 100644
--- a/com32/gplinclude/dmi/dmi.h
+++ b/com32/gplinclude/dmi/dmi.h
@@ -27,7 +27,7 @@ extern const char *bad_index;
#define DWORD(x) (uint32_t)(*(const uint32_t *)(x))
#define QWORD(x) (*(const uint64_t *)(x))
-enum {DMI_TABLE_PRESENT = 100, ENODMITABLE};
+enum { DMI_TABLE_PRESENT = 100, ENODMITABLE };
#include "dmi_bios.h"
#include "dmi_system.h"
@@ -43,22 +43,19 @@ extern char display_line;
#define moreprintf(...) do { display_line++; if (display_line == 24) { char tempbuf[10]; display_line=0; printf("Press enter to continue"); fgets(tempbuf, sizeof tempbuf, stdin);} printf ( __VA_ARGS__); } while (0);
typedef struct {
-uint16_t num;
-uint16_t len;
-uint16_t ver;
-uint32_t base;
-uint16_t major_version;
-uint16_t minor_version;
+ uint16_t num;
+ uint16_t len;
+ uint16_t ver;
+ uint32_t base;
+ uint16_t major_version;
+ uint16_t minor_version;
} dmi_table;
-
-
-struct dmi_header
-{
- uint8_t type;
- uint8_t length;
- uint16_t handle;
- uint8_t *data;
+struct dmi_header {
+ uint8_t type;
+ uint8_t length;
+ uint16_t handle;
+ uint8_t *data;
};
typedef struct {
@@ -86,16 +83,16 @@ typedef struct {
} hardware_security;
} s_dmi;
-void to_dmi_header(struct dmi_header *h, uint8_t *data);
-void dmi_bios_runtime_size(uint32_t code, s_dmi *dmi);
+void to_dmi_header(struct dmi_header *h, uint8_t * data);
+void dmi_bios_runtime_size(uint32_t code, s_dmi * dmi);
const char *dmi_string(struct dmi_header *dm, uint8_t s);
-int dmi_checksum(uint8_t *buf);
-void parse_dmitable(s_dmi *dmi);
-void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi *dmi);
-int dmi_iterate(s_dmi *dmi);
+int dmi_checksum(uint8_t * buf);
+void parse_dmitable(s_dmi * dmi);
+void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi);
+int dmi_iterate(s_dmi * dmi);
/* dmi_utils.c */
-void display_bios_characteristics(s_dmi *dmi);
-void display_base_board_features(s_dmi *dmi);
-void display_processor_flags(s_dmi *dmi);
+void display_bios_characteristics(s_dmi * dmi);
+void display_base_board_features(s_dmi * dmi);
+void display_processor_flags(s_dmi * dmi);
#endif
diff --git a/com32/gplinclude/dmi/dmi_base_board.h b/com32/gplinclude/dmi/dmi_base_board.h
index f12cc222..ff4dd8a9 100644
--- a/com32/gplinclude/dmi/dmi_base_board.h
+++ b/com32/gplinclude/dmi/dmi_base_board.h
@@ -30,29 +30,29 @@ extern const char *base_board_features_strings[];
/* this struct have BASE_BOARD_NB_ELEMENTS */
/* each bool is associated to the relevant message above */
typedef struct {
-bool hosting;
-bool board_needs_daughter;
-bool removable;
-bool replaceable;
-bool hot_swappable;
-} __attribute__((__packed__)) s_base_board_features;
+ bool hosting;
+ bool board_needs_daughter;
+ bool removable;
+ bool replaceable;
+ bool hot_swappable;
+} __attribute__ ((__packed__)) s_base_board_features;
typedef struct {
-char manufacturer[BASE_BOARD_MANUFACTURER_SIZE];
-char product_name[BASE_BOARD_PRODUCT_NAME_SIZE];
-char version[BASE_BOARD_VERSION_SIZE];
-char serial[BASE_BOARD_SERIAL_SIZE];
-char asset_tag[BASE_BOARD_ASSET_TAG_SIZE];
-char location[BASE_BOARD_LOCATION_SIZE];
-char type[BASE_BOARD_TYPE_SIZE];
-s_base_board_features features;
+ char manufacturer[BASE_BOARD_MANUFACTURER_SIZE];
+ char product_name[BASE_BOARD_PRODUCT_NAME_SIZE];
+ char version[BASE_BOARD_VERSION_SIZE];
+ char serial[BASE_BOARD_SERIAL_SIZE];
+ char asset_tag[BASE_BOARD_ASSET_TAG_SIZE];
+ char location[BASE_BOARD_LOCATION_SIZE];
+ char type[BASE_BOARD_TYPE_SIZE];
+ s_base_board_features features;
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
-struct {
- char type[16];
- uint8_t status;
- char description[10];
-} devices_information[10];
+ bool filled;
+ struct {
+ char type[16];
+ uint8_t status;
+ char description[10];
+ } devices_information[10];
} s_base_board;
#endif
diff --git a/com32/gplinclude/dmi/dmi_battery.h b/com32/gplinclude/dmi/dmi_battery.h
index 72c19693..fae7acb5 100644
--- a/com32/gplinclude/dmi/dmi_battery.h
+++ b/com32/gplinclude/dmi/dmi_battery.h
@@ -32,26 +32,26 @@
#define BATTERY_OEM_INFO_SIZE 255
typedef struct {
-char location[BATTERY_LOCATION_SIZE];
-char manufacturer[BATTERY_MANUFACTURER_SIZE];
-char manufacture_date[BATTERY_MANUFACTURE_DATE_SIZE];
-char serial[BATTERY_SERIAL_SIZE];
-char name[BATTERY_DEVICE_NAME_SIZE];
-char chemistry[BATTERY_CHEMISTRY_SIZE];
-char design_capacity[BATTERY_CAPACITY_SIZE];
-char design_voltage[BATTERY_DESIGN_VOLTAGE_SIZE];
-char sbds[BATTERY_SBDS_SIZE];
-char sbds_serial[BATTERY_SBDS_SERIAL_SIZE];
-char maximum_error[BATTERY_MAXIMUM_ERROR_SIZE];
-char sbds_manufacture_date[BATTERY_SBDS_MANUFACTURE_DATE_SIZE];
-char sbds_chemistry[BATTERY_SBDS_CHEMISTRY_SIZE];
-char oem_info[BATTERY_OEM_INFO_SIZE];
+ char location[BATTERY_LOCATION_SIZE];
+ char manufacturer[BATTERY_MANUFACTURER_SIZE];
+ char manufacture_date[BATTERY_MANUFACTURE_DATE_SIZE];
+ char serial[BATTERY_SERIAL_SIZE];
+ char name[BATTERY_DEVICE_NAME_SIZE];
+ char chemistry[BATTERY_CHEMISTRY_SIZE];
+ char design_capacity[BATTERY_CAPACITY_SIZE];
+ char design_voltage[BATTERY_DESIGN_VOLTAGE_SIZE];
+ char sbds[BATTERY_SBDS_SIZE];
+ char sbds_serial[BATTERY_SBDS_SERIAL_SIZE];
+ char maximum_error[BATTERY_MAXIMUM_ERROR_SIZE];
+ char sbds_manufacture_date[BATTERY_SBDS_MANUFACTURE_DATE_SIZE];
+ char sbds_chemistry[BATTERY_SBDS_CHEMISTRY_SIZE];
+ char oem_info[BATTERY_OEM_INFO_SIZE];
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
+ bool filled;
} s_battery;
const char *dmi_battery_chemistry(uint8_t code);
-void dmi_battery_capacity(uint16_t code, uint8_t multiplier,char *capacity);
+void dmi_battery_capacity(uint16_t code, uint8_t multiplier, char *capacity);
void dmi_battery_voltage(uint16_t code, char *voltage);
void dmi_battery_maximum_error(uint8_t code, char *error);
#endif
diff --git a/com32/gplinclude/dmi/dmi_bios.h b/com32/gplinclude/dmi/dmi_bios.h
index 546bbefc..53201acb 100644
--- a/com32/gplinclude/dmi/dmi_bios.h
+++ b/com32/gplinclude/dmi/dmi_bios.h
@@ -31,77 +31,77 @@ extern const char *bios_charac_strings[];
/* this struct has BIOS_CHAR_NB_ELEMENTS */
/* each bool is associated with the relevant message above */
typedef struct {
-bool bios_characteristics_not_supported;
-bool isa;
-bool mca;
-bool eisa;
-bool pci;
-bool pc_card;
-bool pnp;
-bool apm;
-bool bios_upgreadable;
-bool bios_shadowing;
-bool vlb;
-bool escd;
-bool boot_from_cd;
-bool selectable_boot;
-bool bios_rom_socketed;
-bool edd;
-bool japanese_floppy_nec_9800_1_2MB;
-bool japanese_floppy_toshiba_1_2MB;
-bool floppy_5_25_360KB;
-bool floppy_5_25_1_2MB;
-bool floppy_3_5_720KB;
-bool floppy_3_5_2_88MB;
-bool print_screen;
-bool keyboard_8042_support;
-bool serial_support;
-bool printer_support;
-bool cga_mono_support;
-bool nec_pc_98;
-} __attribute__((__packed__)) s_characteristics;
+ bool bios_characteristics_not_supported;
+ bool isa;
+ bool mca;
+ bool eisa;
+ bool pci;
+ bool pc_card;
+ bool pnp;
+ bool apm;
+ bool bios_upgreadable;
+ bool bios_shadowing;
+ bool vlb;
+ bool escd;
+ bool boot_from_cd;
+ bool selectable_boot;
+ bool bios_rom_socketed;
+ bool edd;
+ bool japanese_floppy_nec_9800_1_2MB;
+ bool japanese_floppy_toshiba_1_2MB;
+ bool floppy_5_25_360KB;
+ bool floppy_5_25_1_2MB;
+ bool floppy_3_5_720KB;
+ bool floppy_3_5_2_88MB;
+ bool print_screen;
+ bool keyboard_8042_support;
+ bool serial_support;
+ bool printer_support;
+ bool cga_mono_support;
+ bool nec_pc_98;
+} __attribute__ ((__packed__)) s_characteristics;
extern const char *bios_charac_x1_strings[];
/* this struct has BIOS_CHAR_X1_NB_ELEMENTS */
/* each bool is associated with the relevant message above */
typedef struct {
-bool acpi;
-bool usb_legacy;
-bool agp;
-bool i2o_boot;
-bool ls_120_boot;
-bool zip_drive_boot;
-bool ieee_1394_boot;
-bool smart_battery;
-} __attribute__((__packed__)) s_characteristics_x1;
+ bool acpi;
+ bool usb_legacy;
+ bool agp;
+ bool i2o_boot;
+ bool ls_120_boot;
+ bool zip_drive_boot;
+ bool ieee_1394_boot;
+ bool smart_battery;
+} __attribute__ ((__packed__)) s_characteristics_x1;
extern const char *bios_charac_x2_strings[];
/* this struct has BIOS_CHAR_X2_NB_ELEMENTS */
/* each bool is associated with the relevant message above */
typedef struct {
-bool bios_boot_specification;
-bool bios_network_boot_by_keypress;
-bool target_content_distribution;
-} __attribute__((__packed__)) s_characteristics_x2;
+ bool bios_boot_specification;
+ bool bios_network_boot_by_keypress;
+ bool target_content_distribution;
+} __attribute__ ((__packed__)) s_characteristics_x2;
typedef struct {
-char vendor[BIOS_VENDOR_SIZE];
-char version[BIOS_VERSION_SIZE];
-char release_date[BIOS_RELEASE_SIZE];
-uint16_t address;
-uint16_t runtime_size;
-char runtime_size_unit[BIOS_RUNTIME_SIZE_UNIT_SIZE];
-uint16_t rom_size;
-char rom_size_unit[BIOS_ROM_UNIT_SIZE];
-s_characteristics characteristics;
-s_characteristics_x1 characteristics_x1;
-s_characteristics_x2 characteristics_x2;
-char bios_revision [BIOS_BIOS_REVISION_SIZE];
-char firmware_revision [BIOS_FIRMWARE_REVISION_SIZE];
+ char vendor[BIOS_VENDOR_SIZE];
+ char version[BIOS_VERSION_SIZE];
+ char release_date[BIOS_RELEASE_SIZE];
+ uint16_t address;
+ uint16_t runtime_size;
+ char runtime_size_unit[BIOS_RUNTIME_SIZE_UNIT_SIZE];
+ uint16_t rom_size;
+ char rom_size_unit[BIOS_ROM_UNIT_SIZE];
+ s_characteristics characteristics;
+ s_characteristics_x1 characteristics_x1;
+ s_characteristics_x2 characteristics_x2;
+ char bios_revision[BIOS_BIOS_REVISION_SIZE];
+ char firmware_revision[BIOS_FIRMWARE_REVISION_SIZE];
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
+ bool filled;
} s_bios;
#endif
diff --git a/com32/gplinclude/dmi/dmi_chassis.h b/com32/gplinclude/dmi/dmi_chassis.h
index 96711ed4..88433ea1 100644
--- a/com32/gplinclude/dmi/dmi_chassis.h
+++ b/com32/gplinclude/dmi/dmi_chassis.h
@@ -26,21 +26,21 @@
#define CHASSIS_OEM_INFORMATION_SIZE 32
typedef struct {
-char manufacturer[CHASSIS_MANUFACTURER_SIZE];
-char type[CHASSIS_TYPE_SIZE];
-char lock[CHASSIS_LOCK_SIZE];
-char version[CHASSIS_VERSION_SIZE];
-char serial[CHASSIS_SERIAL_SIZE];
-char asset_tag[CHASSIS_ASSET_TAG_SIZE];
-char boot_up_state[CHASSIS_BOOT_UP_STATE_SIZE];
-char power_supply_state[CHASSIS_POWER_SUPPLY_STATE_SIZE];
-char thermal_state[CHASSIS_THERMAL_STATE_SIZE];
-char security_status[CHASSIS_SECURITY_STATUS_SIZE];
-char oem_information[CHASSIS_OEM_INFORMATION_SIZE];
-uint16_t height;
-uint16_t nb_power_cords;
+ char manufacturer[CHASSIS_MANUFACTURER_SIZE];
+ char type[CHASSIS_TYPE_SIZE];
+ char lock[CHASSIS_LOCK_SIZE];
+ char version[CHASSIS_VERSION_SIZE];
+ char serial[CHASSIS_SERIAL_SIZE];
+ char asset_tag[CHASSIS_ASSET_TAG_SIZE];
+ char boot_up_state[CHASSIS_BOOT_UP_STATE_SIZE];
+ char power_supply_state[CHASSIS_POWER_SUPPLY_STATE_SIZE];
+ char thermal_state[CHASSIS_THERMAL_STATE_SIZE];
+ char security_status[CHASSIS_SECURITY_STATUS_SIZE];
+ char oem_information[CHASSIS_OEM_INFORMATION_SIZE];
+ uint16_t height;
+ uint16_t nb_power_cords;
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
+ bool filled;
} s_chassis;
const char *dmi_chassis_type(uint8_t code);
diff --git a/com32/gplinclude/dmi/dmi_ipmi.h b/com32/gplinclude/dmi/dmi_ipmi.h
index 7dcb71b9..9110ae4f 100644
--- a/com32/gplinclude/dmi/dmi_ipmi.h
+++ b/com32/gplinclude/dmi/dmi_ipmi.h
@@ -17,17 +17,17 @@
#define IPMI_MEMORY_MODEL_SIZE 16
typedef struct {
-char interface_type[IPMI_INTERFACE_TYPE_SIZE];
-uint8_t major_specification_version;
-uint8_t minor_specification_version;
-uint8_t I2C_slave_address;
-uint16_t nv_address;
-uint64_t base_address;
+ char interface_type[IPMI_INTERFACE_TYPE_SIZE];
+ uint8_t major_specification_version;
+ uint8_t minor_specification_version;
+ uint8_t I2C_slave_address;
+ uint16_t nv_address;
+ uint64_t base_address;
-uint8_t irq;
-bool filled;
+ uint8_t irq;
+ bool filled;
} s_ipmi;
-void dmi_ipmi_base_address(uint8_t type, const uint8_t *p, s_ipmi *ipmi);
+void dmi_ipmi_base_address(uint8_t type, const uint8_t * p, s_ipmi * ipmi);
const char *dmi_ipmi_interface_type(uint8_t code);
#endif
diff --git a/com32/gplinclude/dmi/dmi_memory.h b/com32/gplinclude/dmi/dmi_memory.h
index 6939cd00..f9c2b561 100644
--- a/com32/gplinclude/dmi/dmi_memory.h
+++ b/com32/gplinclude/dmi/dmi_memory.h
@@ -30,23 +30,23 @@
#define MEMORY_PART_NUMBER_SIZE 16
typedef struct {
-char manufacturer[MEMORY_MANUFACTURER_SIZE];
-char error[MEMORY_ERROR_SIZE];
-char total_width[MEMORY_TOTAL_WIDTH_SIZE];
-char data_width[MEMORY_DATA_WIDTH_SIZE];
-char size[MEMORY_SIZE_SIZE];
-char form_factor[MEMORY_FORM_FACTOR_SIZE];
-char device_set[MEMORY_DEVICE_SET_SIZE];
-char device_locator[MEMORY_DEVICE_LOCATOR_SIZE];
-char bank_locator[MEMORY_BANK_LOCATOR_SIZE];
-char type[MEMORY_TYPE_SIZE];
-char type_detail[MEMORY_TYPE_DETAIL_SIZE];
-char speed[MEMORY_SPEED_SIZE];
-char serial[MEMORY_SERIAL_SIZE];
-char asset_tag[MEMORY_ASSET_TAG_SIZE];
-char part_number[MEMORY_PART_NUMBER_SIZE];
+ char manufacturer[MEMORY_MANUFACTURER_SIZE];
+ char error[MEMORY_ERROR_SIZE];
+ char total_width[MEMORY_TOTAL_WIDTH_SIZE];
+ char data_width[MEMORY_DATA_WIDTH_SIZE];
+ char size[MEMORY_SIZE_SIZE];
+ char form_factor[MEMORY_FORM_FACTOR_SIZE];
+ char device_set[MEMORY_DEVICE_SET_SIZE];
+ char device_locator[MEMORY_DEVICE_LOCATOR_SIZE];
+ char bank_locator[MEMORY_BANK_LOCATOR_SIZE];
+ char type[MEMORY_TYPE_SIZE];
+ char type_detail[MEMORY_TYPE_DETAIL_SIZE];
+ char speed[MEMORY_SPEED_SIZE];
+ char serial[MEMORY_SERIAL_SIZE];
+ char asset_tag[MEMORY_ASSET_TAG_SIZE];
+ char part_number[MEMORY_PART_NUMBER_SIZE];
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
+ bool filled;
} s_memory;
typedef struct {
@@ -60,13 +60,13 @@ char error_status[8];
bool filled;
} s_memory_module;
-void dmi_memory_array_error_handle(uint16_t code,char *array);
+void dmi_memory_array_error_handle(uint16_t code, char *array);
void dmi_memory_device_width(uint16_t code, char *width);
void dmi_memory_device_size(uint16_t code, char *size);
const char *dmi_memory_device_form_factor(uint8_t code);
void dmi_memory_device_set(uint8_t code, char *set);
const char *dmi_memory_device_type(uint8_t code);
-void dmi_memory_device_type_detail(uint16_t code,char *type_detail);
+void dmi_memory_device_type_detail(uint16_t code, char *type_detail);
void dmi_memory_device_speed(uint16_t code, char *speed);
void dmi_memory_module_connections(uint8_t, char*);
diff --git a/com32/gplinclude/dmi/dmi_processor.h b/com32/gplinclude/dmi/dmi_processor.h
index 79ee43d4..de2f4e4f 100644
--- a/com32/gplinclude/dmi/dmi_processor.h
+++ b/com32/gplinclude/dmi/dmi_processor.h
@@ -36,76 +36,77 @@ extern const char *cpu_flags_strings[PROCESSOR_FLAGS_ELEMENTS];
/* this struct have PROCESSOR_FLAGS_ELEMENTS */
/* each bool is associated to the relevant message above */
typedef struct {
-bool fpu;
-bool vme;
-bool de;
-bool pse;
-bool tsc;
-bool msr;
-bool pae;
-bool mce;
-bool cx8;
-bool apic;
-bool null_10;
-bool sep;
-bool mtrr;
-bool pge;
-bool mca;
-bool cmov;
-bool pat;
-bool pse_36;
-bool psn;
-bool clfsh;
-bool null_20;
-bool ds;
-bool acpi;
-bool mmx;
-bool fxsr;
-bool sse;
-bool sse2;
-bool ss;
-bool htt;
-bool tm;
-bool null_30;
-bool pbe;
-} __attribute__((__packed__)) s_dmi_cpu_flags;
+ bool fpu;
+ bool vme;
+ bool de;
+ bool pse;
+ bool tsc;
+ bool msr;
+ bool pae;
+ bool mce;
+ bool cx8;
+ bool apic;
+ bool null_10;
+ bool sep;
+ bool mtrr;
+ bool pge;
+ bool mca;
+ bool cmov;
+ bool pat;
+ bool pse_36;
+ bool psn;
+ bool clfsh;
+ bool null_20;
+ bool ds;
+ bool acpi;
+ bool mmx;
+ bool fxsr;
+ bool sse;
+ bool sse2;
+ bool ss;
+ bool htt;
+ bool tm;
+ bool null_30;
+ bool pbe;
+} __attribute__ ((__packed__)) s_dmi_cpu_flags;
typedef struct {
-uint8_t type;
-uint8_t family;
-uint8_t model;
-uint8_t stepping;
-uint8_t minor_stepping;
-} __attribute__((__packed__)) s_signature;
+ uint8_t type;
+ uint8_t family;
+ uint8_t model;
+ uint8_t stepping;
+ uint8_t minor_stepping;
+} __attribute__ ((__packed__)) s_signature;
typedef struct {
-char socket_designation[PROCESSOR_SOCKET_DESIGNATION_SIZE];
-char type[PROCESSOR_TYPE_SIZE];
-char family[PROCESSOR_FAMILY_SIZE];
-char manufacturer[PROCESSOR_MANUFACTURER_SIZE];
-char version[PROCESSOR_VERSION_SIZE];
-float voltage;
-uint16_t external_clock;
-uint16_t max_speed;
-uint16_t current_speed;
-char status[PROCESSOR_STATUS_SIZE];
-char upgrade[PROCESSOR_UPGRADE_SIZE];
-char cache1[PROCESSOR_CACHE_SIZE];
-char cache2[PROCESSOR_CACHE_SIZE];
-char cache3[PROCESSOR_CACHE_SIZE];
-char serial[PROCESSOR_SERIAL_SIZE];
-char asset_tag[PROCESSOR_ASSET_TAG_SIZE];
-char part_number[PROCESSOR_PART_NUMBER_SIZE];
-char id[PROCESSOR_ID_SIZE];
-s_dmi_cpu_flags cpu_flags;
-s_signature signature;
+ char socket_designation[PROCESSOR_SOCKET_DESIGNATION_SIZE];
+ char type[PROCESSOR_TYPE_SIZE];
+ char family[PROCESSOR_FAMILY_SIZE];
+ char manufacturer[PROCESSOR_MANUFACTURER_SIZE];
+ char version[PROCESSOR_VERSION_SIZE];
+ float voltage;
+ uint16_t external_clock;
+ uint16_t max_speed;
+ uint16_t current_speed;
+ char status[PROCESSOR_STATUS_SIZE];
+ char upgrade[PROCESSOR_UPGRADE_SIZE];
+ char cache1[PROCESSOR_CACHE_SIZE];
+ char cache2[PROCESSOR_CACHE_SIZE];
+ char cache3[PROCESSOR_CACHE_SIZE];
+ char serial[PROCESSOR_SERIAL_SIZE];
+ char asset_tag[PROCESSOR_ASSET_TAG_SIZE];
+ char part_number[PROCESSOR_PART_NUMBER_SIZE];
+ char id[PROCESSOR_ID_SIZE];
+ s_dmi_cpu_flags cpu_flags;
+ s_signature signature;
/* The filled field have to be set to true when the dmitable implement that item */
-bool filled;
+ bool filled;
} s_processor;
const char *dmi_processor_type(uint8_t code);
const char *dmi_processor_family(uint8_t code, char *manufacturer);
const char *dmi_processor_status(uint8_t code);
const char *dmi_processor_upgrade(uint8_t code);
-void dmi_processor_cache(uint16_t code, const char *level, uint16_t ver, char *cache);
+void dmi_processor_cache(uint16_t code, const char *level, uint16_t ver,
+ char *cache);
#endif
diff --git a/com32/gplinclude/dmi/dmi_system.h b/com32/gplinclude/dmi/dmi_system.h
index 218fa4f9..28a562de 100644
--- a/com32/gplinclude/dmi/dmi_system.h
+++ b/com32/gplinclude/dmi/dmi_system.h
@@ -26,14 +26,14 @@
#define SYSTEM_CONFIGURATION_OPTIONS_SIZE 50
typedef struct {
-char manufacturer[SYSTEM_MANUFACTURER_SIZE];
-char product_name[SYSTEM_PRODUCT_NAME_SIZE];
-char version[SYSTEM_VERSION_SIZE];
-char serial[SYSTEM_SERIAL_SIZE];
-char uuid[SYSTEM_UUID_SIZE];
-char wakeup_type[SYSTEM_WAKEUP_TYPE_SIZE];
-char sku_number[SYSTEM_SKU_NUMBER_SIZE];
-char family[SYSTEM_FAMILY_SIZE];
+ char manufacturer[SYSTEM_MANUFACTURER_SIZE];
+ char product_name[SYSTEM_PRODUCT_NAME_SIZE];
+ char version[SYSTEM_VERSION_SIZE];
+ char serial[SYSTEM_SERIAL_SIZE];
+ char uuid[SYSTEM_UUID_SIZE];
+ char wakeup_type[SYSTEM_WAKEUP_TYPE_SIZE];
+ char sku_number[SYSTEM_SKU_NUMBER_SIZE];
+ char family[SYSTEM_FAMILY_SIZE];
/* The filled field have to be set to true when the dmitable implement that item */
bool filled;
char system_boot_status[SYSTEM_BOOT_STATUS_SIZE];