summaryrefslogtreecommitdiffstats
path: root/include/hw/pci
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2015-01-06 17:03:08 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-01-26 20:25:52 +0200
commit27fb9688f9162515901ebf29e3879788fd326ea7 (patch)
treefd594b554a76cc56605b7d426e19f1fbfb2bcc05 /include/hw/pci
parent7828d75045380ac659f2ad85fb5fec9bbb0746ac (diff)
downloadhqemu-27fb9688f9162515901ebf29e3879788fd326ea7.zip
hqemu-27fb9688f9162515901ebf29e3879788fd326ea7.tar.gz
pci: Split pcie_host_mmcfg_map()
The mmcfg space is a memory region that allows access to PCI config space in the PCIe world. To maintain abstraction layers, I would like to expose the mmcfg space as a sysbus mmio region rather than have it mapped straight into the system's memory address space though. So this patch splits the initialization of the mmcfg space from the actual mapping, allowing us to only have an mmfg memory region without the map. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Diffstat (limited to 'include/hw/pci')
-rw-r--r--include/hw/pci/pcie_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pcie_host.h b/include/hw/pci/pcie_host.h
index ff44ef6..4d23c80 100644
--- a/include/hw/pci/pcie_host.h
+++ b/include/hw/pci/pcie_host.h
@@ -50,6 +50,7 @@ struct PCIExpressHost {
};
void pcie_host_mmcfg_unmap(PCIExpressHost *e);
+void pcie_host_mmcfg_init(PCIExpressHost *e, uint32_t size);
void pcie_host_mmcfg_map(PCIExpressHost *e, hwaddr addr, uint32_t size);
void pcie_host_mmcfg_update(PCIExpressHost *e,
int enable,
OpenPOWER on IntegriCloud