summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Hoemann <jerry.hoemann@hpe.com>2022-06-07 13:22:02 +0200
committerJean Delvare <jdelvare@suse.de>2022-06-07 13:22:02 +0200
commitdc57b962727248809fc1f586d5860ee99f45d954 (patch)
treeedd38ac223f7e38b3da80ad51ededd8d9f59af3a
parentc812ec0f444e42238a2a671d58c389e8f2109bbe (diff)
downloaddmidecode-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.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/dmioem.c b/dmioem.c
index 759d778..b542c5a 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -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