summaryrefslogtreecommitdiffstats
path: root/include/hw/pci-host
diff options
context:
space:
mode:
authorDaniel Henrique Barboza2022-01-18 12:56:30 +0100
committerCédric Le Goater2022-01-18 12:56:30 +0100
commite0d2379fa7cd46e94401dcc5aa1cf525db89d176 (patch)
treed3be94db0801f5b71784c64891c9489aab1586b8 /include/hw/pci-host
parentppc/pnv: move PCI registers to PnvPHB4 (diff)
downloadqemu-e0d2379fa7cd46e94401dcc5aa1cf525db89d176.tar.gz
qemu-e0d2379fa7cd46e94401dcc5aa1cf525db89d176.tar.xz
qemu-e0d2379fa7cd46e94401dcc5aa1cf525db89d176.zip
ppc/pnv: move phbbar to PnvPHB4
This MemoryRegion is simple enough to be moved in a single step. A 'stack->phb' pointer had to be introduced in pnv_pec_stk_update_map() because this function isn't ready to be fully converted to use a PnvPHB4 pointer instead. This will be dealt with in the following patches. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220113192952.911188-4-danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/pci-host')
-rw-r--r--include/hw/pci-host/pnv_phb4.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/pci-host/pnv_phb4.h b/include/hw/pci-host/pnv_phb4.h
index 4487c3a6e2..b11fa80e81 100644
--- a/include/hw/pci-host/pnv_phb4.h
+++ b/include/hw/pci-host/pnv_phb4.h
@@ -112,6 +112,9 @@ struct PnvPHB4 {
uint64_t pci_regs[PHB4_PEC_PCI_STK_REGS_COUNT];
MemoryRegion pci_regs_mr;
+ /* Memory windows from PowerBus to PHB */
+ MemoryRegion phbbar;
+
/* On-chip IODA tables */
uint64_t ioda_LIST[PNV_PHB4_MAX_LSIs];
uint64_t ioda_MIST[PNV_PHB4_MAX_MIST];
@@ -166,7 +169,6 @@ struct PnvPhb4PecStack {
/* Memory windows from PowerBus to PHB */
MemoryRegion mmbar0;
MemoryRegion mmbar1;
- MemoryRegion phbbar;
MemoryRegion intbar;
uint64_t mmio0_base;
uint64_t mmio0_size;