diff options
author | return.0 <return.0@me.com> | 2018-06-18 17:00:31 -0500 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2018-06-19 11:41:29 +0200 |
commit | eff7cc9ee7f8b6efeb7d5854abbcfb8cdc486a95 (patch) | |
tree | 4fc236b47191cb7b81b77ae346d5fb47ca148e75 /ls-vpd.c | |
parent | 4cd087d884827e5e4cc493fcbe46e7fb6e331416 (diff) | |
download | pciutils-eff7cc9ee7f8b6efeb7d5854abbcfb8cdc486a95.tar.gz |
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 <return.0@me.com>
Diffstat (limited to 'ls-vpd.c')
-rw-r--r-- | ls-vpd.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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" } }; |