[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dmidecode] [PATCH 5/7] dmidecode: Enumerate the new struct types
From: |
Jean Delvare |
Subject: |
[dmidecode] [PATCH 5/7] dmidecode: Enumerate the new struct types |
Date: |
Mon, 30 May 2022 14:16:45 +0200 |
Add types 44, 45 and 46 to dmi_smbios_structure_type().
Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
dmidecode.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- dmidecode.orig/dmidecode.c 2022-05-30 13:02:37.042501022 +0200
+++ dmidecode/dmidecode.c 2022-05-30 13:06:10.898177601 +0200
@@ -203,12 +203,15 @@ static const char *dmi_smbios_structure_
"Additional Information",
"Onboard Device",
"Management Controller Host Interface",
- "TPM Device", /* 43 */
+ "TPM Device",
+ "Processor",
+ "Firmware",
+ "String Property" /* 46 */
};
if (code >= 128)
return "OEM-specific";
- if (code <= 43)
+ if (code <= 46)
return type[code];
return out_of_spec;
}
--
Jean Delvare
SUSE L3 Support
- [dmidecode] [PATCH 0/7] dmidecode: Add support for SMBIOS 3.5.0, Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 1/7] dmidecode: Make dmi_slot_bus_width() reusable, Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 2/7] dmidecode: Add missing bits from SMBIOS 3.4.0 specification, Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 3/7] dmidecode: Add new fields and enumerated values from SMBIOS 3.5.0, Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 4/7] dmidecode: Add support for type 45 records (Firmware Inventory Information), Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 5/7] dmidecode: Enumerate the new struct types,
Jean Delvare <=
- [dmidecode] [PATCH 6/7] dmidecode: Drop outdated references, Jean Delvare, 2022/05/30
- [dmidecode] [PATCH 7/7] dmidecode: Set supported version to 3.5.0, Jean Delvare, 2022/05/30