[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 07/26] pcie_host: expose UNMAPPED macro
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH v6 07/26] pcie_host: expose UNMAPPED macro |
Date: |
Sun, 29 Sep 2013 13:58:41 +0300 |
Make it possible to test unmapped status through QMP.
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] [PATCH v6 00/26] qemu: generate acpi tables for the guest, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 03/26] qom: cleanup struct Error references, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 04/26] qom: add pointer to int property helpers, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 02/26] qom: pull in qemu/typedefs, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 05/26] fw_cfg: interface to trigger callback on read, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 01/26] qemu: add Error to typedefs, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 06/26] loader: support for unmapped ROM blobs, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 07/26] pcie_host: expose UNMAPPED macro,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v6 08/26] pcie_host: expose address format, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 09/26] q35: use macro for MCFG property name, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 10/26] q35: expose mmcfg size as a property, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 12/26] acpi: add rules to compile ASL source, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 11/26] i386: add ACPI table files from seabios, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 14/26] acpi: ssdt pcihp: updat generated file, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 15/26] loader: use file path size from fw_cfg.h, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 13/26] acpi: pre-compiled ASL files, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 16/26] i386: add bios linker/loader, Michael S. Tsirkin, 2013/09/29
- [Qemu-devel] [PATCH v6 17/26] loader: allow adding ROMs in done callbacks, Michael S. Tsirkin, 2013/09/29