]> Git Repo - qemu.git/commitdiff
pcie_host: expose UNMAPPED macro
authorMichael S. Tsirkin <[email protected]>
Tue, 10 Sep 2013 05:43:48 +0000 (08:43 +0300)
committerMichael S. Tsirkin <[email protected]>
Mon, 14 Oct 2013 14:48:51 +0000 (17:48 +0300)
Make it possible to test unmapped status through QMP.

Reviewed-by: Gerd Hoffmann <[email protected]>
Tested-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
Tested-by: Igor Mammedov <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/pci/pcie_host.c
include/hw/pci/pcie_host.h

index b70e5adc4bd06134ab808e601b981eacfb6fb0f3..410ac08cc663e2935e734876afd4ab86dd0991fc 100644 (file)
@@ -104,9 +104,6 @@ static const MemoryRegionOps pcie_mmcfg_ops = {
     .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
-/* pcie_host::base_addr == PCIE_BASE_ADDR_UNMAPPED when it isn't mapped. */
-#define PCIE_BASE_ADDR_UNMAPPED  ((hwaddr)-1ULL)
-
 int pcie_host_init(PCIExpressHost *e)
 {
     e->base_addr = PCIE_BASE_ADDR_UNMAPPED;
index 1228e36cb260106c9c4133f2c6e51ccbfa2aa633..bac3c673d6b0af2e30f98083e47d0e2b1a143b79 100644 (file)
@@ -28,6 +28,9 @@
 #define PCIE_HOST_BRIDGE(obj) \
     OBJECT_CHECK(PCIExpressHost, (obj), TYPE_PCIE_HOST_BRIDGE)
 
+/* pcie_host::base_addr == PCIE_BASE_ADDR_UNMAPPED when it isn't mapped. */
+#define PCIE_BASE_ADDR_UNMAPPED  ((hwaddr)-1ULL)
+
 struct PCIExpressHost {
     PCIHostState pci;
 
This page took 0.031132 seconds and 4 git commands to generate.