[DMILIB] Process SKU and Family strings

This commit is contained in:
Stanislav Motylkov 2018-09-27 22:02:17 +03:00
parent 133611fed8
commit c356804550
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
3 changed files with 6 additions and 0 deletions

View file

@ -87,6 +87,8 @@ enum _DMI_FIELD_OFFSETS
DMI_SYS_PRODUCT = 0x05,
DMI_SYS_VERSION = 0x06,
DMI_SYS_SERIAL = 0x07,
DMI_SYS_SKU = 0x19,
DMI_SYS_FAMILY = 0x1a,
DMI_SYS_SIZE = 0x1b,
/* Type = 2: DMI_ENTRY_BASEBOARD */

View file

@ -73,6 +73,8 @@ ParseSMBiosTables(
Strings[SYS_PRODUCT] = GetDmiString(Header, DMI_SYS_PRODUCT);
Strings[SYS_VERSION] = GetDmiString(Header, DMI_SYS_VERSION);
Strings[SYS_SERIAL] = GetDmiString(Header, DMI_SYS_SERIAL);
Strings[SYS_SKU] = GetDmiString(Header, DMI_SYS_SKU);
Strings[SYS_FAMILY] = GetDmiString(Header, DMI_SYS_FAMILY);
break;
case DMI_ENTRY_BASEBOARD:

View file

@ -18,6 +18,8 @@ enum _ID_STRINGS
SYS_PRODUCT,
SYS_VERSION,
SYS_SERIAL,
SYS_SKU,
SYS_FAMILY,
BOARD_VENDOR,
BOARD_NAME,
BOARD_VERSION,