From: Ben Hutchings Date: Tue, 18 Nov 2008 20:25:07 +0000 (+0000) Subject: Add PCI 2.2 VPD register definitions X-Git-Tag: v3.1-alpha2~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=522f02770bf2c4bd4e8b96ba9ce365484202375a;p=pciutils.git Add PCI 2.2 VPD register definitions Signed-off-by: Ben Hutchings --- diff --git a/lib/header.h b/lib/header.h index 4e84f07..23e0a80 100644 --- a/lib/header.h +++ b/lib/header.h @@ -281,6 +281,13 @@ #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 */