aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host/pnv_phb.h
diff options
context:
space:
mode:
authorDaniel Henrique Barboza <danielhb413@gmail.com>2022-06-24 05:49:14 -0300
committerDaniel Henrique Barboza <danielhb413@gmail.com>2022-08-31 14:08:05 -0300
commit210aacb3b92707ecc5de811c743322ca395c0fa6 (patch)
tree646006642e4d40b1ba97caa1660191ecb66bf08f /hw/pci-host/pnv_phb.h
parentfe5bfd4bb816faa1b3fa8c3c23165cdbadfa5c91 (diff)
downloadqemu-210aacb3b92707ecc5de811c743322ca395c0fa6.zip
qemu-210aacb3b92707ecc5de811c743322ca395c0fa6.tar.gz
qemu-210aacb3b92707ecc5de811c743322ca395c0fa6.tar.bz2
ppc/pnv: turn PnvPHB4 into a PnvPHB backend
Change the parent type of the PnvPHB4 device to TYPE_PARENT since the PCI bus is going to be initialized by the PnvPHB parent. Functions that needs to access the bus via a PnvPHB4 object can do so via the phb4->phb_base pointer. pnv_phb4_pec now creates a PnvPHB object. The powernv9 machine class will create PnvPHB devices with version '4'. powernv10 will create using version '5'. Both are using global machine properties in their class_init() to do that. These changes will benefit us when adding PnvPHB user creatable devices for powernv9 and powernv10. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20220624084921.399219-6-danielhb413@gmail.com>
Diffstat (limited to 'hw/pci-host/pnv_phb.h')
0 files changed, 0 insertions, 0 deletions