diff options
author | Jerry Hoemann <jerry.hoemann@hpe.com> | 2022-06-07 13:22:02 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2022-06-07 13:22:02 +0200 |
commit | dc57b962727248809fc1f586d5860ee99f45d954 (patch) | |
tree | edd38ac223f7e38b3da80ad51ededd8d9f59af3a | |
parent | c812ec0f444e42238a2a671d58c389e8f2109bbe (diff) | |
download | dmidecode-git-dc57b962727248809fc1f586d5860ee99f45d954.tar.gz |
dmioem: Decode HPE OEM Record 194
Decode HPE OEM Record 194: Super IO Enable/Disable Features.
Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r-- | dmioem.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -364,6 +364,27 @@ static int dmi_decode_hp(const struct dmi_header *h) switch (h->type) { + case 194: + /* + * Vendor Specific: Super IO Enable/Disable Features + * + * Offset | Name | Width | Description + * ------------------------------------- + * 0x00 | Type | BYTE | 0xC2, Super IO Enable/Disable Indicator + * 0x01 | Length | BYTE | Length of structure + * 0x02 | Handle | WORD | Unique handle + * 0x04 | Dev Status | BYTE | Device Status + */ + pr_handle_name("%s ProLiant Super IO Enable/Disable Indicator", company); + if (h->length < 0x05) break; + feat = data[0x04]; + pr_attr("Serial Port A", "%s", feat & (1 << 0) ? "Enabled" : "Disabled"); + pr_attr("Serial Port B", "%s", feat & (1 << 1) ? "Enabled" : "Disabled"); + pr_attr("Parallel Port", "%s", feat & (1 << 2) ? "Enabled" : "Disabled"); + pr_attr("Floppy Disk Port", "%s", feat & (1 << 3) ? "Enabled" : "Disabled"); + pr_attr("Virtual Serial Port", "%s", feat & (1 << 4) ? "Enabled" : "Disabled"); + break; + case 199: /* * Vendor Specific: CPU Microcode Patch |