]> git.proxmox.com Git - mirror_qemu.git/commit
spapr_pci: QOM'ify sPAPR PCI host bridge
authorAndreas Färber <afaerber@suse.de>
Mon, 20 Aug 2012 17:08:05 +0000 (19:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Aug 2012 15:47:17 +0000 (10:47 -0500)
commit8c9f64df3dd76c253e4961c5d2f075bffcc29e1d
treeeadc12864a91f1073c2706bde8043d46e1c42337
parent03a6b667702b0af0e7b36754489aed6aa82d30a1
spapr_pci: QOM'ify sPAPR PCI host bridge

Introduce type constant. Introduce cast macro to drop bogus busdev field
that would've broken SYS_BUS_DEVICE(). Avoid accessing parent fields
directly.

Free the identifier phb as acronym for PCI_HOST_BRIDGE.

Updated against conflicting merge from branch 'agraf/ppc-for-upstream'
(0d16fdd732d1b211842fa96b7c90ddf9e6bde0e4), which removed busdev field
differently, moved some code around and added new occurrences of 'phb'.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/spapr.c
hw/spapr_pci.c
hw/spapr_pci.h