From 522f02770bf2c4bd4e8b96ba9ce365484202375a Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 18 Nov 2008 20:25:07 +0000 Subject: [PATCH] Add PCI 2.2 VPD register definitions Signed-off-by: Ben Hutchings --- lib/header.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.39.2