]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Add PCI 2.2 VPD register definitions
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 18 Nov 2008 20:25:07 +0000 (20:25 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 21 Nov 2008 21:00:38 +0000 (22:00 +0100)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
lib/header.h

index 4e84f07ebe0a0a6a81192f3cf694af9fd8576599..23e0a80ba787cba520bbd16694037cd0801cb260 100644 (file)
 #define  PCI_AGP_COMMAND_RATE1 0x0001  /* Use 1x rate (4x in AGP3 mode) */
 #define PCI_AGP_SIZEOF         12
 
+/* Vital Product Data */
+
+#define PCI_VPD_ADDR           2       /* Address to access (15 bits!) */
+#define  PCI_VPD_ADDR_MASK     0x7fff  /* Address mask */
+#define  PCI_VPD_ADDR_F                0x8000  /* Write 0, 1 indicates completion */
+#define PCI_VPD_DATA           4       /* 32-bits of data returned here */
+
 /* Slot Identification */
 
 #define PCI_SID_ESR            2       /* Expansion Slot Register */