This patch series adds VPD support to libpci and lspci. It depends on the addition of VPD to sysfs in Linux 2.6.26. It would be possible to add a generic implementation which builds on read() and write() methods, but that would have unavoidable race conditions. Ben. Ben Hutchings (5): Add pci_read_vpd() function and internal read_vpd() method Add PCI 2.2 VPD register definitions Rename pci_access::fd_rw to fd_flags to allow for expansion Add implementation of read_vpd() method for sysfs In verbose mode, display contents of VPD if possible lib/access.c | 6 +++ lib/aix-device.c | 1 + lib/dump.c | 1 + lib/fbsd-device.c | 1 + lib/header.h | 7 +++ lib/i386-ports.c | 2 + lib/internal.h | 1 + lib/nbsd-libpci.c | 1 + lib/obsd-device.c | 1 + lib/pci.h | 3 +- lib/proc.c | 7 ++- lib/sysfs.c | 38 ++++++++++++++++-- lspci.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 13 files changed, 166 insertions(+), 10 deletions(-) -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html