diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:21:05 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:07 -0600 |
commit | b3b1169731c976dfe8dc5b4b121cfc670abc84c9 (patch) | |
tree | 4f8f3a4ff368b54bc1d4c2e3ebeae8add3942ce7 /hw/pci.h | |
parent | 5029fe12dccbe261d5bd5bc840110ae48aa112c9 (diff) | |
download | qemu-b3b1169731c976dfe8dc5b4b121cfc670abc84c9.zip qemu-b3b1169731c976dfe8dc5b4b121cfc670abc84c9.tar.gz qemu-b3b1169731c976dfe8dc5b4b121cfc670abc84c9.tar.bz2 |
pci: make pci_bar() aware of header type 1.
make pci_bar() aware of header type 1. When PCI_ROM_SLOT
it should return PCI_ROM_ADDRESS1 (!= PCI_ROM_ADDRESS)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-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 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -120,6 +120,7 @@ typedef struct PCIIORegion { #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_ROM_ADDRESS1 0x38 /* Same as PCI_ROM_ADDRESS, but for htype 1 */ #define PCI_INTERRUPT_LINE 0x3c /* 8 bits */ #define PCI_INTERRUPT_PIN 0x3d /* 8 bits */ #define PCI_MIN_GNT 0x3e /* 8 bits */ |