summaryrefslogtreecommitdiff
path: root/dmidecode.c
diff options
context:
space:
mode:
authorPrabhakar Pujeri <prabhakar.pujeri@dell.com>2020-10-13 10:51:36 +0530
committerPrabhakar Pujeri <prabhakar.pujeri@dell.com>2020-10-13 10:51:36 +0530
commit85a05114311a78c493eeb6c9b664b22c0d1c2e35 (patch)
tree398ffa2e77359bd73f427f40b6b734fce1463aa2 /dmidecode.c
parentd70d5e686148eabe90c89fbf4cdcf5258db5aa05 (diff)
downloaddmidecode-git-85a05114311a78c493eeb6c9b664b22c0d1c2e35.tar.gz
updating system slot types with smbios spec 3.4.0
In SMBIOS SPEC 3.4.0 section 7.10.1 System Slots — Slot Type some of fields are missing in current dmidecode source.
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/dmidecode.c b/dmidecode.c
index 981fe96..cf32821 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -1935,10 +1935,15 @@ static const char *dmi_slot_type(u8 code)
"PCI Express 3 SFF-8639",
"PCI Express Mini 52-pin with bottom-side keep-outs",
"PCI Express Mini 52-pin without bottom-side keep-outs",
- "PCI Express Mini 76-pin" /* 0x23 */
- };
- static const char *type_0x30[] = {
+ "PCI Express Mini 76-pin"
+ "PCI Express Gen 4 SFF-8639 (U.2)",
+ "PCI Express Gen 5 SFF-8639 (U.2)",
+ "OCP NIC 3.0 Small Form Factor (SFF)",
+ "OCP NIC 3.0 Large Form Factor (LFF)",
+ "OCP NIC Prior to 3.0",
+ out_of_spec, /* 0x29 */
"CXL FLexbus 1.0" /* 0x30 */
+
};
static const char *type_0xA0[] = {
"PC-98/C20", /* 0xA0 */
@@ -1977,10 +1982,8 @@ static const char *dmi_slot_type(u8 code)
* function dmi_slot_id below needs updating too.
*/
- if (code >= 0x01 && code <= 0x23)
+ if (code >= 0x01 && code <= 0x30)
return type[code - 0x01];
- if (code == 0x30)
- return type_0x30[code - 0x30];
if (code >= 0xA0 && code <= 0xBD)
return type_0xA0[code - 0xA0];
return out_of_spec;