[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 18/39] pcie_host: expose UNMAPPED macro
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL v2 18/39] pcie_host: expose UNMAPPED macro |
Date: |
Tue, 15 Oct 2013 09:31:15 +0300 |
Make it possible to test unmapped status through QMP.
Reviewed-by: Gerd Hoffmann <address@hidden>
Tested-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Tested-by: Igor Mammedov <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
include/hw/pci/pcie_host.h | 3 +++
hw/pci/pcie_host.c | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/hw/pci/pcie_host.h b/include/hw/pci/pcie_host.h
index 1228e36..bac3c67 100644
--- a/include/hw/pci/pcie_host.h
+++ b/include/hw/pci/pcie_host.h
@@ -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;
diff --git a/hw/pci/pcie_host.c b/hw/pci/pcie_host.c
index b70e5ad..410ac08 100644
--- a/hw/pci/pcie_host.c
+++ b/hw/pci/pcie_host.c
@@ -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;
--
MST
- [Qemu-devel] [PULL v2 08/39] hw/vfio: set interrupts using pci irq wrappers, (continued)
- [Qemu-devel] [PULL v2 08/39] hw/vfio: set interrupts using pci irq wrappers, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 10/39] hw/pcie: AER and hot-plug events must use device's interrupt, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 11/39] hw/pci: removed irq field from PCIDevice, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 09/39] hw: set interrupts using pci irq wrappers, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 12/39] cleanup object.h: include error.h directly, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 13/39] qom: cleanup struct Error references, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 14/39] qom: add pointer to int property helpers, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 15/39] pci: fix up w64 size calculation helper, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 16/39] fw_cfg: interface to trigger callback on read, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 17/39] loader: support for unmapped ROM blobs, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 18/39] pcie_host: expose UNMAPPED macro,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL v2 19/39] pcie_host: expose address format, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 20/39] q35: use macro for MCFG property name, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 21/39] q35: expose mmcfg size as a property, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 23/39] acpi: add rules to compile ASL source, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 22/39] i386: add ACPI table files from seabios, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 25/39] acpi: ssdt pcihp: updat generated file, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 26/39] loader: use file path size from fw_cfg.h, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 24/39] acpi: pre-compiled ASL files, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 27/39] i386: add bios linker/loader, Michael S. Tsirkin, 2013/10/15
- [Qemu-devel] [PULL v2 28/39] loader: allow adding ROMs in done callbacks, Michael S. Tsirkin, 2013/10/15