Add 4 new enumerated values for chassis types from SMBIOS specification version 3.1.0.
Signed-off-by: Jean Delvare <[email protected]> --- dmidecode.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- dmidecode.orig/dmidecode.c 2017-04-07 10:52:32.038909760 +0200 +++ dmidecode/dmidecode.c 2017-04-07 10:52:34.452934367 +0200 @@ -565,12 +565,16 @@ static const char *dmi_chassis_type(u8 c "Blade Enclosing", "Tablet", "Convertible", - "Detachable" /* 0x20 */ + "Detachable", + "IoT Gateway", + "Embedded PC", + "Mini PC", + "Stick PC" /* 0x24 */ }; code &= 0x7F; /* bits 6:0 are chassis type, 7th bit is the lock bit */ - if (code >= 0x01 && code <= 0x20) + if (code >= 0x01 && code <= 0x24) return type[code - 0x01]; return out_of_spec; } -- Jean Delvare SUSE L3 Support _______________________________________________ https://lists.nongnu.org/mailman/listinfo/dmidecode-devel
