diff options
author | Andreas Färber <afaerber@suse.de> | 2012-08-20 19:08:02 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-22 10:47:16 -0500 |
commit | 42c281a2832a67ee1d0cc08744c5b9ebb4f6b802 (patch) | |
tree | c90d4c1f6d9cd3032360290a9a4d8a684c629e09 /hw/ppc4xx.h | |
parent | 8d43d7e591c2078cc64534b867365d46ad394d04 (diff) | |
download | qemu-42c281a2832a67ee1d0cc08744c5b9ebb4f6b802.zip |
ppc4xx_pci: QOM'ify ppc4xx PCI host bridge
Introduce type constant and cast macro. Avoid accessing its parent field
directly.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ppc4xx.h')
-rw-r--r-- | hw/ppc4xx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc4xx.h b/hw/ppc4xx.h index b511020aeb..5cd78b6291 100644 --- a/hw/ppc4xx.h +++ b/hw/ppc4xx.h @@ -53,6 +53,8 @@ void ppc4xx_sdram_init (CPUPPCState *env, qemu_irq irq, int nbanks, target_phys_addr_t *ram_sizes, int do_init); +#define TYPE_PPC4xx_PCI_HOST_BRIDGE "ppc4xx-pcihost" + PCIBus *ppc4xx_pci_init(CPUPPCState *env, qemu_irq pci_irqs[4], target_phys_addr_t config_space, target_phys_addr_t int_ack, |