aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc4xx.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-08-20 19:08:02 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-22 10:47:16 -0500
commit42c281a2832a67ee1d0cc08744c5b9ebb4f6b802 (patch)
treec90d4c1f6d9cd3032360290a9a4d8a684c629e09 /hw/ppc4xx.h
parent8d43d7e591c2078cc64534b867365d46ad394d04 (diff)
downloadqemu-42c281a2832a67ee1d0cc08744c5b9ebb4f6b802.zip
qemu-42c281a2832a67ee1d0cc08744c5b9ebb4f6b802.tar.gz
qemu-42c281a2832a67ee1d0cc08744c5b9ebb4f6b802.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc4xx.h b/hw/ppc4xx.h
index b511020..5cd78b6 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,