aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/dmi/dmi_base_board.h16
-rw-r--r--com32/gplinclude/dmi/dmi_battery.h12
-rw-r--r--com32/gplinclude/dmi/dmi_bios.h6
-rw-r--r--com32/gplinclude/dmi/dmi_cache.h4
-rw-r--r--com32/gplinclude/dmi/dmi_chassis.h8
-rw-r--r--com32/gplinclude/dmi/dmi_memory.h15
-rw-r--r--com32/gplinclude/dmi/dmi_processor.h15
-rw-r--r--com32/gplinclude/dmi/dmi_system.h12
8 files changed, 48 insertions, 40 deletions
diff --git a/com32/gplinclude/dmi/dmi_base_board.h b/com32/gplinclude/dmi/dmi_base_board.h
index 3d5fb557..0b45ccad 100644
--- a/com32/gplinclude/dmi/dmi_base_board.h
+++ b/com32/gplinclude/dmi/dmi_base_board.h
@@ -14,17 +14,19 @@
#define DMI_BASE_BOARD_H
#include "stdbool.h"
-#define BASE_BOARD_MANUFACTURER_SIZE 32
-#define BASE_BOARD_PRODUCT_NAME_SIZE 32
-#define BASE_BOARD_VERSION_SIZE 16
-#define BASE_BOARD_SERIAL_SIZE 32
-#define BASE_BOARD_ASSET_TAG_SIZE 32
-#define BASE_BOARD_LOCATION_SIZE 32
+#define BASE_BOARD_MANUFACTURER_SIZE 65
+#define BASE_BOARD_PRODUCT_NAME_SIZE 65
+#define BASE_BOARD_VERSION_SIZE 65
+#define BASE_BOARD_SERIAL_SIZE 65
+#define BASE_BOARD_ASSET_TAG_SIZE 65
+#define BASE_BOARD_LOCATION_SIZE 65
#define BASE_BOARD_FEATURES_SIZE 32
#define BASE_BOARD_TYPE_SIZE 32
#define BASE_BOARD_NB_ELEMENTS 5
+#define BASE_BOARD_DEVICE_DESCRIPTION 65
+
extern const char *base_board_features_strings[];
/* this struct have BASE_BOARD_NB_ELEMENTS */
@@ -51,7 +53,7 @@ typedef struct {
struct {
char type[16];
uint8_t status;
- char description[10];
+ char description[BASE_BOARD_DEVICE_DESCRIPTION];
} devices_information[10];
} s_base_board;
diff --git a/com32/gplinclude/dmi/dmi_battery.h b/com32/gplinclude/dmi/dmi_battery.h
index fae7acb5..c321aa9c 100644
--- a/com32/gplinclude/dmi/dmi_battery.h
+++ b/com32/gplinclude/dmi/dmi_battery.h
@@ -16,11 +16,11 @@
#include <stdbool.h>
#include <inttypes.h>
-#define BATTERY_LOCATION_SIZE 255
-#define BATTERY_MANUFACTURER_SIZE 255
-#define BATTERY_MANUFACTURE_DATE_SIZE 255
-#define BATTERY_SERIAL_SIZE 255
-#define BATTERY_DEVICE_NAME_SIZE 255
+#define BATTERY_LOCATION_SIZE 65
+#define BATTERY_MANUFACTURER_SIZE 65
+#define BATTERY_MANUFACTURE_DATE_SIZE 65
+#define BATTERY_SERIAL_SIZE 65
+#define BATTERY_DEVICE_NAME_SIZE 65
#define BATTERY_CHEMISTRY_SIZE 32
#define BATTERY_CAPACITY_SIZE 16
#define BATTERY_DESIGN_VOLTAGE_SIZE 16
@@ -28,7 +28,7 @@
#define BATTERY_MAXIMUM_ERROR_SIZE 32
#define BATTERY_SBDS_SERIAL_SIZE 32
#define BATTERY_SBDS_MANUFACTURE_DATE_SIZE 255
-#define BATTERY_SBDS_CHEMISTRY_SIZE 16
+#define BATTERY_SBDS_CHEMISTRY_SIZE 65
#define BATTERY_OEM_INFO_SIZE 255
typedef struct {
diff --git a/com32/gplinclude/dmi/dmi_bios.h b/com32/gplinclude/dmi/dmi_bios.h
index 53201acb..5d47e899 100644
--- a/com32/gplinclude/dmi/dmi_bios.h
+++ b/com32/gplinclude/dmi/dmi_bios.h
@@ -14,9 +14,9 @@
#define DMI_BIOS_H
#include "stdbool.h"
-#define BIOS_VENDOR_SIZE 32
-#define BIOS_VERSION_SIZE 32
-#define BIOS_RELEASE_SIZE 16
+#define BIOS_VENDOR_SIZE 65
+#define BIOS_VERSION_SIZE 65
+#define BIOS_RELEASE_SIZE 65
#define BIOS_RUNTIME_SIZE_UNIT_SIZE 16
#define BIOS_ROM_UNIT_SIZE 16
#define BIOS_BIOS_REVISION_SIZE 16
diff --git a/com32/gplinclude/dmi/dmi_cache.h b/com32/gplinclude/dmi/dmi_cache.h
index cfd7114e..df3cfbfb 100644
--- a/com32/gplinclude/dmi/dmi_cache.h
+++ b/com32/gplinclude/dmi/dmi_cache.h
@@ -22,8 +22,10 @@
#include "stdbool.h"
+#define CACHE_SOCKET_DESIGNATION_SIZE 65
+
typedef struct {
- char socket_designation[32];
+ char socket_designation[CACHE_SOCKET_DESIGNATION_SIZE];
char configuration[32];
char mode[32];
char location[8];
diff --git a/com32/gplinclude/dmi/dmi_chassis.h b/com32/gplinclude/dmi/dmi_chassis.h
index 88433ea1..c9a768af 100644
--- a/com32/gplinclude/dmi/dmi_chassis.h
+++ b/com32/gplinclude/dmi/dmi_chassis.h
@@ -13,12 +13,12 @@
#ifndef DMI_CHASSIS_H
#define DMI_CHASSIS_H
-#define CHASSIS_MANUFACTURER_SIZE 32
+#define CHASSIS_MANUFACTURER_SIZE 65
#define CHASSIS_TYPE_SIZE 16
#define CHASSIS_LOCK_SIZE 16
-#define CHASSIS_VERSION_SIZE 16
-#define CHASSIS_SERIAL_SIZE 32
-#define CHASSIS_ASSET_TAG_SIZE 32
+#define CHASSIS_VERSION_SIZE 65
+#define CHASSIS_SERIAL_SIZE 65
+#define CHASSIS_ASSET_TAG_SIZE 65
#define CHASSIS_BOOT_UP_STATE_SIZE 32
#define CHASSIS_POWER_SUPPLY_STATE_SIZE 32
#define CHASSIS_THERMAL_STATE_SIZE 32
diff --git a/com32/gplinclude/dmi/dmi_memory.h b/com32/gplinclude/dmi/dmi_memory.h
index 4d0ad442..aea16a07 100644
--- a/com32/gplinclude/dmi/dmi_memory.h
+++ b/com32/gplinclude/dmi/dmi_memory.h
@@ -13,21 +13,22 @@
#ifndef DMI_MEMORY_H
#define DMI_MEMORY_H
-#define MEMORY_MANUFACTURER_SIZE 32
+#define MEMORY_MANUFACTURER_SIZE 65
#define MEMORY_ERROR_SIZE 16
#define MEMORY_TOTAL_WIDTH_SIZE 16
#define MEMORY_DATA_WIDTH_SIZE 16
#define MEMORY_SIZE_SIZE 32
#define MEMORY_FORM_FACTOR_SIZE 32
#define MEMORY_DEVICE_SET_SIZE 32
-#define MEMORY_DEVICE_LOCATOR_SIZE 32
-#define MEMORY_BANK_LOCATOR_SIZE 32
+#define MEMORY_DEVICE_LOCATOR_SIZE 65
+#define MEMORY_BANK_LOCATOR_SIZE 65
#define MEMORY_TYPE_SIZE 32
#define MEMORY_TYPE_DETAIL_SIZE 16
#define MEMORY_SPEED_SIZE 16
-#define MEMORY_SERIAL_SIZE 16
-#define MEMORY_ASSET_TAG_SIZE 16
-#define MEMORY_PART_NUMBER_SIZE 16
+#define MEMORY_SERIAL_SIZE 65
+#define MEMORY_ASSET_TAG_SIZE 65
+#define MEMORY_PART_NUMBER_SIZE 65
+#define MEMORY_SOCKET_DESIGNATION_SIZE 65
typedef struct {
char manufacturer[MEMORY_MANUFACTURER_SIZE];
@@ -50,7 +51,7 @@ typedef struct {
} s_memory;
typedef struct {
- char socket_designation[8];
+ char socket_designation[MEMORY_SOCKET_DESIGNATION_SIZE];
char bank_connections[8];
char speed[8];
char type[48];
diff --git a/com32/gplinclude/dmi/dmi_processor.h b/com32/gplinclude/dmi/dmi_processor.h
index 6107d31d..dee76649 100644
--- a/com32/gplinclude/dmi/dmi_processor.h
+++ b/com32/gplinclude/dmi/dmi_processor.h
@@ -15,18 +15,18 @@
#include "stdbool.h"
#include "string.h"
-#define PROCESSOR_SOCKET_DESIGNATION_SIZE 32
+#define PROCESSOR_SOCKET_DESIGNATION_SIZE 65
#define PROCESSOR_TYPE_SIZE 32
#define PROCESSOR_FAMILY_SIZE 32
-#define PROCESSOR_MANUFACTURER_SIZE 64
-#define PROCESSOR_VERSION_SIZE 64
+#define PROCESSOR_MANUFACTURER_SIZE 65
+#define PROCESSOR_VERSION_SIZE 65
#define PROCESSOR_VOLTAGE_SIZE 16
#define PROCESSOR_STATUS_SIZE 16
#define PROCESSOR_UPGRADE_SIZE 16
#define PROCESSOR_CACHE_SIZE 16
-#define PROCESSOR_SERIAL_SIZE 32
-#define PROCESSOR_ASSET_TAG_SIZE 32
-#define PROCESSOR_PART_NUMBER_SIZE 32
+#define PROCESSOR_SERIAL_SIZE 65
+#define PROCESSOR_ASSET_TAG_SIZE 65
+#define PROCESSOR_PART_NUMBER_SIZE 65
#define PROCESSOR_ID_SIZE 32
#define PROCESSOR_FLAGS_ELEMENTS 32
@@ -97,6 +97,9 @@ typedef struct {
char asset_tag[PROCESSOR_ASSET_TAG_SIZE];
char part_number[PROCESSOR_PART_NUMBER_SIZE];
char id[PROCESSOR_ID_SIZE];
+ uint16_t core_count;
+ uint16_t core_enabled;
+ uint16_t thread_count;
s_dmi_cpu_flags cpu_flags;
s_signature signature;
/* The filled field have to be set to true when the dmitable implement that item */
diff --git a/com32/gplinclude/dmi/dmi_system.h b/com32/gplinclude/dmi/dmi_system.h
index 6bb053ff..5c892e00 100644
--- a/com32/gplinclude/dmi/dmi_system.h
+++ b/com32/gplinclude/dmi/dmi_system.h
@@ -13,14 +13,14 @@
#ifndef DMI_SYSTEM_H
#define DMI_SYSTEM_H
-#define SYSTEM_MANUFACTURER_SIZE 32
-#define SYSTEM_PRODUCT_NAME_SIZE 32
-#define SYSTEM_VERSION_SIZE 16
-#define SYSTEM_SERIAL_SIZE 32
+#define SYSTEM_MANUFACTURER_SIZE 65
+#define SYSTEM_PRODUCT_NAME_SIZE 65
+#define SYSTEM_VERSION_SIZE 65
+#define SYSTEM_SERIAL_SIZE 65
#define SYSTEM_UUID_SIZE 40
#define SYSTEM_WAKEUP_TYPE_SIZE 32
-#define SYSTEM_SKU_NUMBER_SIZE 32
-#define SYSTEM_FAMILY_SIZE 32
+#define SYSTEM_SKU_NUMBER_SIZE 65
+#define SYSTEM_FAMILY_SIZE 65
#define SYSTEM_BOOT_STATUS_SIZE 50
#define SYSTEM_CONFIGURATION_OPTIONS_SIZE 50