From: return.0 Date: Mon, 18 Jun 2018 22:00:31 +0000 (-0500) Subject: pciutils: Add decoding of vendor specific VPD fields X-Git-Tag: v3.6.0~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=eff7cc9ee7f8b6efeb7d5854abbcfb8cdc486a95;p=pciutils.git pciutils: Add decoding of vendor specific VPD fields 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 --- diff --git a/ls-vpd.c b/ls-vpd.c index b79abfc..cc279c3 100644 --- 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" } };