diff options
author | Alexander Graf <agraf@suse.de> | 2015-01-06 17:03:08 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-01-26 20:25:52 +0200 |
commit | 27fb9688f9162515901ebf29e3879788fd326ea7 (patch) | |
tree | fd594b554a76cc56605b7d426e19f1fbfb2bcc05 /include | |
parent | 7828d75045380ac659f2ad85fb5fec9bbb0746ac (diff) | |
download | hqemu-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')
-rw-r--r-- | include/hw/pci/pcie_host.h | 1 |
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, |