mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
ppc/pnv: add PHB3 bus init helper
The PnvPHB3 bus init consists of initializing the pci_io and pci_mmio regions, registering it via pci_register_root_bus() and then setup the iommu. We'll want to init the bus from outside pnv_phb3.c when the bus is removed from the PnvPHB3 device and put into a new parent PnvPHB device. The new pnv_phb3_bus_init() helper will be used by the parent to init the bus when using the PHB3 backend. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20220624084921.399219-2-danielhb413@gmail.com>
This commit is contained in:
parent
08e185cadb
commit
91bcee7157
2 changed files with 24 additions and 16 deletions
|
@ -164,5 +164,6 @@ uint64_t pnv_phb3_reg_read(void *opaque, hwaddr off, unsigned size);
|
|||
void pnv_phb3_reg_write(void *opaque, hwaddr off, uint64_t val, unsigned size);
|
||||
void pnv_phb3_update_regions(PnvPHB3 *phb);
|
||||
void pnv_phb3_remap_irqs(PnvPHB3 *phb);
|
||||
void pnv_phb3_bus_init(DeviceState *dev, PnvPHB3 *phb);
|
||||
|
||||
#endif /* PCI_HOST_PNV_PHB3_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue