]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
pciutils: Add decoding of vendor specific VPD fields
authorreturn.0 <return.0@me.com>
Mon, 18 Jun 2018 22:00:31 +0000 (17:00 -0500)
committerMartin Mares <mj@ucw.cz>
Tue, 19 Jun 2018 09:41:29 +0000 (11:41 +0200)
IBM has defined several VPD fields that are not part of the PCI
spec, but are frequently used on embedded and pluggable pcie
adapters.

Since these fields are "Unknown", they are listed in hex
and less readable.

This patch adds commonly used vendor specific VPD keywords
described in "Table 160. LoPAPR VPD Fields" of the Linux on Power
Architecture Platform Reference (LoPAPR).

Signed-off-by: John Walthour <return.0@me.com>
ls-vpd.c

index b79abfc5b19735166a82425a40949b90b7129e54..cc279c3bf945b76dc8e1c635c10ad964440553cd 100644 (file)
--- a/ls-vpd.c
+++ b/ls-vpd.c
@@ -41,6 +41,19 @@ static const struct vpd_item {
   { 'Y','A', F_TEXT,   "Asset tag" },
   { 'V', 0 , F_TEXT,   "Vendor specific" },
   { 'Y', 0 , F_TEXT,   "System specific" },
+/*
+ *  The following VPD keywords are vendor specific or not part of any
+ *  current PCI-SIG specification
+ */
+  { 'C','C', F_TEXT,   "CCIN" },
+  { 'F','C', F_TEXT,   "Feature code" },
+  { 'F','N', F_TEXT,   "FRU" },
+  { 'N','A', F_TEXT,   "Network address" },
+  { 'R','M', F_TEXT,   "Firmware version" },
+  { 'Z', 0 , F_TEXT,   "Product specific" },
+/*
+ *  End vendor specific VPD keywords
+ */
   {  0,  0 , F_BINARY, "Unknown" }
 };