summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Hoemann <jerry.hoemann@hpe.com>2023-04-07 17:52:04 +0200
committerJean Delvare <jdelvare@suse.de>2023-04-07 17:52:04 +0200
commita4c2bede047914ddb4bf3589ba3b033fb034a4af (patch)
tree129817727803d1302dc99d45e6c1a7e9917fe034
parent9af40b6484c8e1f8f1530a2c2ef97b5cc1aa28db (diff)
downloaddmidecode-git-a4c2bede047914ddb4bf3589ba3b033fb034a4af.tar.gz
dmioem: Update HPE OEM Record 203
Add new device locations and flag value. Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--dmioem.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/dmioem.c b/dmioem.c
index 4b9248e..ae9b355 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -292,7 +292,13 @@ static void dmi_hp_203_devloc(const char *fname, unsigned int code)
"USB",
"Dynamic Smart Array Controller",
"URL",
- "NVMe Drive Bay" /* 0x0F */
+ "NVMe Drive Bay", /* 0x0F */
+ "NVDIMM Processor",
+ "NVDIMM Board",
+ "NVMe Riser",
+ "NVDIMM Name Space",
+ "VROC SATA",
+ "VROC NVMe", /* 0x15 */
};
if (code < ARRAY_SIZE(location))
@@ -869,6 +875,10 @@ static int dmi_decode_hp(const struct dmi_header *h)
}
dmi_hp_203_assoc_hndl("Parent Handle", WORD(data + 0x12));
pr_attr("Flags", "0x%04X", WORD(data + 0x14));
+ if (WORD(data + 0x14) & 0x01)
+ pr_subattr("Peer Bifurcated Device", "Yes");
+ if (WORD(data + 0x14) & 0x02)
+ pr_subattr("Upstream Device", "Yes");
dmi_hp_203_devtyp("Device Type", data[0x16]);
dmi_hp_203_devloc("Device Location", data[0x17]);
pr_attr("Device Instance", "%d", data[0x18]);