summaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-10-30 21:20:58 +0900
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-09 08:43:04 -0600
commit182f9c8a64d530d992df35a1a4b17a562c7d1aef (patch)
tree5edad9c70d781f9ea77dcb715d288b575351adf9 /hw/pci.h
parentpci: use PCI_SLOT() and PCI_FUNC(). (diff)
downloadqemu-kvm-182f9c8a64d530d992df35a1a4b17a562c7d1aef.tar.gz
qemu-kvm-182f9c8a64d530d992df35a1a4b17a562c7d1aef.tar.bz2
qemu-kvm-182f9c8a64d530d992df35a1a4b17a562c7d1aef.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 476ff594d..bab9caba9 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -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;