diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:20:58 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:04 -0600 |
commit | 182f9c8a64d530d992df35a1a4b17a562c7d1aef (patch) | |
tree | 5edad9c70d781f9ea77dcb715d288b575351adf9 /hw/pci.h | |
parent | 2217dcfff5e24a16217cba5e53c3579f97d8880e (diff) | |
download | qemu-182f9c8a64d530d992df35a1a4b17a562c7d1aef.zip qemu-182f9c8a64d530d992df35a1a4b17a562c7d1aef.tar.gz qemu-182f9c8a64d530d992df35a1a4b17a562c7d1aef.tar.bz2 |
pci: define a constant to represent a unmapped bar and use it.
define a constant to represent a unmapped bar instead of -1 and use it.
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
@@ -85,6 +85,7 @@ typedef int PCIUnregisterFunc(PCIDevice *pci_dev); typedef struct PCIIORegion { uint32_t addr; /* current PCI mapping address. -1 means not mapped */ +#define PCI_BAR_UNMAPPED (~(uint32_t)0) uint32_t size; uint8_t type; PCIMapIORegionFunc *map_func; |