From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIQyM-00020p-1t for qemu-devel@nongnu.org; Mon, 24 Oct 2011 16:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIQyK-0001Yz-Ey for qemu-devel@nongnu.org; Mon, 24 Oct 2011 16:18:13 -0400 Received: from smtp23.services.sfr.fr ([93.17.128.19]:58040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIQyK-0001Yi-81 for qemu-devel@nongnu.org; Mon, 24 Oct 2011 16:18:12 -0400 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 24 Oct 2011 22:18:22 +0200 Message-Id: <1319487505-5915-9-git-send-email-hpoussin@reactos.org> In-Reply-To: <1319487505-5915-1-git-send-email-hpoussin@reactos.org> References: <1319487505-5915-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 08/11] malta: give ISA bus to ISA methods List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Signed-off-by: Herv=C3=A9 Poussineau --- hw/mips_malta.c | 3 +-- hw/pc.h | 2 +- hw/piix4.c | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 98177f3..78d99e7 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -941,8 +941,7 @@ void mips_malta_init (ram_addr_t ram_size, /* Southbridge */ ide_drive_get(hd, MAX_IDE_BUS); =20 - piix4_devfn =3D piix4_init(pci_bus, 80); - isa_bus =3D NULL; + piix4_devfn =3D piix4_init(pci_bus, &isa_bus, 80); =20 /* Interrupt controller */ /* The 8259 is attached to the MIPS CPU INT0 pin, ie interrupt 2 */ diff --git a/hw/pc.h b/hw/pc.h index 127940c..bc67b2b 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -194,7 +194,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, i= nt *piix_devfn, =20 /* piix4.c */ extern PCIDevice *piix4_dev; -int piix4_init(PCIBus *bus, int devfn); +int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn); =20 /* vga.c */ enum vga_retrace_method { diff --git a/hw/piix4.c b/hw/piix4.c index 2fd1171..51af459 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -93,11 +93,12 @@ static int piix4_initfn(PCIDevice *dev) return 0; } =20 -int piix4_init(PCIBus *bus, int devfn) +int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn) { PCIDevice *d; =20 d =3D pci_create_simple_multifunction(bus, devfn, true, "PIIX4"); + *isa_bus =3D DO_UPCAST(ISABus, qbus, qdev_get_child_bus(&d->qdev, "i= sa.0")); return d->devfn; } =20 --=20 1.7.6.3