diff mbox

[47/61] pci.h: add more status constats.

Message ID 1254305917-14784-48-git-send-email-yamahata@valinux.co.jp
State Superseded
Headers show

Commit Message

Isaku Yamahata Sept. 30, 2009, 10:18 a.m. UTC
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 hw/pci.h |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/hw/pci.h b/hw/pci.h
index 15deb03..aed4a44 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -176,15 +176,25 @@  static inline int pci_bar_is_64bit(const PCIIORegion *r)
 /* Bits in the PCI Status Register (PCI 2.3 spec) */
 #define PCI_STATUS_RESERVED1	0x007
 #define PCI_STATUS_INT_STATUS	0x008
-#define PCI_STATUS_CAP_LIST	0x010
-#define PCI_STATUS_66MHZ	0x020
-#define PCI_STATUS_RESERVED2	0x040
-#define PCI_STATUS_FAST_BACK	0x080
+#define PCI_STATUS_CAP_LIST	0x010   /* Support Capability List */
+#define PCI_STATUS_66MHZ	0x020   /* Support 66 Mhz PCI 2.1 bus */
+#define PCI_STATUS_UDF		0x040	/* Support User Definable Features [obsolete] */
+#define PCI_STATUS_FAST_BACK	0x080   /* Accept fast-back to back */
+#define PCI_STATUS_PARITY	0x100	/* Detected parity error */
 #define PCI_STATUS_DEVSEL	0x600
+#define PCI_STATUS_DEVSEL_MASK	0x600	/* DEVSEL timing */
+#define PCI_STATUS_DEVSEL_FAST		0x000
+#define PCI_STATUS_DEVSEL_MEDIUM	0x200
+#define PCI_STATUS_DEVSEL_SLOW		0x400
+#define PCI_STATUS_SIG_TARGET_ABORT	0x800 /* Set on target abort */
+#define PCI_STATUS_REC_TARGET_ABORT	0x1000 /* Master ack of " */
+#define PCI_STATUS_REC_MASTER_ABORT	0x2000 /* Set on master abort */
+#define PCI_STATUS_SIG_SYSTEM_ERROR	0x4000 /* Set when we drive SERR */
+#define PCI_STATUS_DETECTED_PARITY	0x8000 /* Set on parity error */
 
 #define PCI_STATUS_RESERVED_MASK_LO (PCI_STATUS_RESERVED1 | \
-                PCI_STATUS_INT_STATUS | PCI_STATUS_CAPABILITIES | \
-                PCI_STATUS_66MHZ | PCI_STATUS_RESERVED2 | PCI_STATUS_FAST_BACK)
+                PCI_STATUS_INT_STATUS | PCI_STATUS_CAP_LIST | \
+                PCI_STATUS_66MHZ | PCI_STATUS_UDF | PCI_STATUS_FAST_BACK)
 
 #define PCI_STATUS_RESERVED_MASK_HI (PCI_STATUS_DEVSEL >> 8)