diff options
author | Jason Baron <jbaron@redhat.com> | 2012-10-19 16:43:32 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-10-29 17:59:45 +0200 |
commit | c702ddb8daece08b16fce9d6654b38304d385f93 (patch) | |
tree | 6a13e2e046f196406c7b3979092c9512ecf96e88 /hw/pcie_host.h | |
parent | f7748569902f4854ac1223c143edbde4f588040f (diff) |
pcie: pass pcie window size to pcie_host_mmcfg_update()
This allows q35 to pass/set the size of the pcie window in its update routine.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pcie_host.h')
-rw-r--r-- | hw/pcie_host.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/pcie_host.h b/hw/pcie_host.h index 9978b9f2f1..73e88db73e 100644 --- a/hw/pcie_host.h +++ b/hw/pcie_host.h @@ -39,11 +39,12 @@ struct PCIExpressHost { MemoryRegion mmio; }; -int pcie_host_init(PCIExpressHost *e, uint32_t size); +int pcie_host_init(PCIExpressHost *e); void pcie_host_mmcfg_unmap(PCIExpressHost *e); -void pcie_host_mmcfg_map(PCIExpressHost *e, hwaddr addr); +void pcie_host_mmcfg_map(PCIExpressHost *e, hwaddr addr, uint32_t size); void pcie_host_mmcfg_update(PCIExpressHost *e, int enable, - hwaddr addr); + hwaddr addr, + uint32_t size); #endif /* PCIE_HOST_H */ |