Skip to content

Commit c3fd5fb

Browse files
committed
dmidecode: Add Mini PCIe system slot enumerated values
Add 3 new enumerated values for system slots from SMBIOS specification version 3.1.0. Signed-off-by: Jean Delvare <jdelvare@suse.de>
1 parent 2bd3185 commit c3fd5fb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* dmidecode.c: Decode the MIDR register on ARM processors
1212
(DMI type 4).
1313
* dmidecode.c: Add support for large cache sizes (DMI type 7).
14+
* dmidecode.c: Add Mini PCIe system slot enumerated values
15+
(DMI type 9).
1416

1517
2017-04-11 Jean Delvare <jdelvare@suse.de>
1618

dmidecode.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,10 @@ static const char *dmi_slot_type(u8 code)
17871787
"MXM 3.0 Type A",
17881788
"MXM 3.0 Type B",
17891789
"PCI Express 2 SFF-8639",
1790-
"PCI Express 3 SFF-8639" /* 0x20 */
1790+
"PCI Express 3 SFF-8639",
1791+
"PCI Express Mini 52-pin with bottom-side keep-outs",
1792+
"PCI Express Mini 52-pin without bottom-side keep-outs",
1793+
"PCI Express Mini 76-pin" /* 0x23 */
17911794
};
17921795
static const char *type_0xA0[] = {
17931796
"PC-98/C20", /* 0xA0 */
@@ -1819,7 +1822,7 @@ static const char *dmi_slot_type(u8 code)
18191822
* function dmi_slot_id below needs updating too.
18201823
*/
18211824

1822-
if (code >= 0x01 && code <= 0x20)
1825+
if (code >= 0x01 && code <= 0x23)
18231826
return type[code - 0x01];
18241827
if (code >= 0xA0 && code <= 0xB6)
18251828
return type_0xA0[code - 0xA0];
@@ -1901,6 +1904,9 @@ static void dmi_slot_id(u8 code1, u8 code2, u8 type, const char *prefix)
19011904
case 0x13: /* AGP */
19021905
case 0x1F: /* PCI Express 2 */
19031906
case 0x20: /* PCI Express 3 */
1907+
case 0x21: /* PCI Express Mini */
1908+
case 0x22: /* PCI Express Mini */
1909+
case 0x23: /* PCI Express Mini */
19041910
case 0xA5: /* PCI Express */
19051911
case 0xA6: /* PCI Express */
19061912
case 0xA7: /* PCI Express */

0 commit comments

Comments
 (0)