diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 19:43:00 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-21 19:43:00 +0000 |
commit | 46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806 (patch) | |
tree | 98b646b43c0032b4d2fafb8ad16d7bde2fbd69bc /hw/openpic.c | |
parent | 7c29d0c0cff07660e8f012f0befb01962ac5f7f6 (diff) | |
download | qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.zip qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.gz qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.bz2 |
added PCI bus
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@961 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/openpic.c')
-rw-r--r-- | hw/openpic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/openpic.c b/hw/openpic.c index cc2137e..eab6d08 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -964,7 +964,8 @@ static void openpic_map(PCIDevice *pci_dev, int region_num, #endif } -openpic_t *openpic_init (uint32_t isu_base, uint32_t idu_base, int nb_cpus) +openpic_t *openpic_init (PCIBus *bus, + uint32_t isu_base, uint32_t idu_base, int nb_cpus) { openpic_t *opp; uint8_t *pci_conf; @@ -973,8 +974,8 @@ openpic_t *openpic_init (uint32_t isu_base, uint32_t idu_base, int nb_cpus) /* XXX: for now, only one CPU is supported */ if (nb_cpus != 1) return NULL; - opp = (openpic_t *)pci_register_device("OpenPIC", sizeof(openpic_t), - 0, -1, NULL, NULL); + opp = (openpic_t *)pci_register_device(bus, "OpenPIC", sizeof(openpic_t), + -1, NULL, NULL); if (opp == NULL) return NULL; pci_conf = opp->pci_dev.config; |