diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-09-16 13:40:57 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:51 -0500 |
commit | 5330de099adf22a41586525c7afed7d470df11cd (patch) | |
tree | f92572bffcc71ee825bf79cabcdd99e26066efb0 /hw/pci.h | |
parent | e489030df2448d22b3cb92fd5dcb22c6fa0fc9e1 (diff) | |
download | qemu-5330de099adf22a41586525c7afed7d470df11cd.zip qemu-5330de099adf22a41586525c7afed7d470df11cd.tar.gz qemu-5330de099adf22a41586525c7afed7d470df11cd.tar.bz2 |
qemu/pci: refactor code/symbolic constants
refactor code slightly, adding symbolic constants and functions, and
using macros where possible. This will also make following reset
patches easier.
No functional changes.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -117,6 +117,8 @@ typedef struct PCIIORegion { #define PCI_SEC_STATUS 0x1e /* Secondary status register, only bit 14 used */ #define PCI_SUBSYSTEM_VENDOR_ID 0x2c /* 16 bits */ #define PCI_SUBSYSTEM_ID 0x2e /* 16 bits */ +#define PCI_ROM_ADDRESS 0x30 /* Bits 31..11 are address, 10..1 reserved */ +#define PCI_ROM_ADDRESS_ENABLE 0x01 #define PCI_CAPABILITY_LIST 0x34 /* Offset of first capability list entry */ #define PCI_INTERRUPT_LINE 0x3c /* 8 bits */ #define PCI_INTERRUPT_PIN 0x3d /* 8 bits */ |