Revision 8098ed41 hw/pci.h

b/hw/pci.h
54 54
#define PCI_MIN_GNT		0x3e	/* 8 bits */
55 55
#define PCI_MAX_LAT		0x3f	/* 8 bits */
56 56

  
57
/* Bits in the PCI Status Register (PCI 2.3 spec) */
58
#define PCI_STATUS_RESERVED1	0x007
59
#define PCI_STATUS_INT_STATUS	0x008
60
#define PCI_STATUS_CAPABILITIES	0x010
61
#define PCI_STATUS_66MHZ	0x020
62
#define PCI_STATUS_RESERVED2	0x040
63
#define PCI_STATUS_FAST_BACK	0x080
64
#define PCI_STATUS_DEVSEL	0x600
65

  
66
#define PCI_STATUS_RESERVED_MASK_LO (PCI_STATUS_RESERVED1 | \
67
                PCI_STATUS_INT_STATUS | PCI_STATUS_CAPABILITIES | \
68
                PCI_STATUS_66MHZ | PCI_STATUS_RESERVED2 | PCI_STATUS_FAST_BACK)
69

  
70
#define PCI_STATUS_RESERVED_MASK_HI (PCI_STATUS_DEVSEL >> 8)
71

  
57 72
struct PCIDevice {
58 73
    /* PCI config space */
59 74
    uint8_t config[256];

Also available in: Unified diff