From: Anthony Liguori <anthony@codemonkey.ws>
To: "Hervé Poussineau" <hpoussin@reactos.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 04/11] pc: give ISA bus to ISA methods
Date: Mon, 12 Dec 2011 10:40:11 -0600 [thread overview]
Message-ID: <4EE62E6B.5020104@codemonkey.ws> (raw)
In-Reply-To: <1319487505-5915-5-git-send-email-hpoussin@reactos.org>
On 10/24/2011 03:18 PM, Hervé Poussineau wrote:
>
> Signed-off-by: Hervé Poussineau<hpoussin@reactos.org>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Regards,
Anthony Liguori
> ---
> hw/pc.h | 2 +-
> hw/pc_piix.c | 3 +--
> hw/piix_pci.c | 8 +++++---
> 3 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/hw/pc.h b/hw/pc.h
> index c43fa73..127940c 100644
> --- a/hw/pc.h
> +++ b/hw/pc.h
> @@ -181,7 +181,7 @@ struct PCII440FXState;
> typedef struct PCII440FXState PCII440FXState;
>
> PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix_devfn,
> - qemu_irq *pic,
> + ISABus **isa_bus, qemu_irq *pic,
> MemoryRegion *address_space_mem,
> MemoryRegion *address_space_io,
> ram_addr_t ram_size,
> diff --git a/hw/pc_piix.c b/hw/pc_piix.c
> index 6bc1f60..be91d3b 100644
> --- a/hw/pc_piix.c
> +++ b/hw/pc_piix.c
> @@ -135,7 +135,7 @@ static void pc_init1(MemoryRegion *system_memory,
> gsi = qemu_allocate_irqs(gsi_handler, gsi_state, GSI_NUM_PINS);
>
> if (pci_enabled) {
> - pci_bus = i440fx_init(&i440fx_state,&piix3_devfn, gsi,
> + pci_bus = i440fx_init(&i440fx_state,&piix3_devfn,&isa_bus, gsi,
> system_memory, system_io, ram_size,
> below_4g_mem_size,
> 0x100000000ULL - below_4g_mem_size,
> @@ -144,7 +144,6 @@ static void pc_init1(MemoryRegion *system_memory,
> ? 0
> : ((uint64_t)1<< 62)),
> pci_memory, ram_memory);
> - isa_bus = NULL;
> } else {
> pci_bus = NULL;
> i440fx_state = NULL;
> diff --git a/hw/piix_pci.c b/hw/piix_pci.c
> index d183443..aef2d7f 100644
> --- a/hw/piix_pci.c
> +++ b/hw/piix_pci.c
> @@ -263,7 +263,7 @@ static int i440fx_initfn(PCIDevice *dev)
> static PCIBus *i440fx_common_init(const char *device_name,
> PCII440FXState **pi440fx_state,
> int *piix3_devfn,
> - qemu_irq *pic,
> + ISABus **isa_bus, qemu_irq *pic,
> MemoryRegion *address_space_mem,
> MemoryRegion *address_space_io,
> ram_addr_t ram_size,
> @@ -325,6 +325,8 @@ static PCIBus *i440fx_common_init(const char *device_name,
> PIIX_NUM_PIRQS);
> }
> piix3->pic = pic;
> + *isa_bus = DO_UPCAST(ISABus, qbus,
> + qdev_get_child_bus(&piix3->dev.qdev, "isa.0"));
>
> (*pi440fx_state)->piix3 = piix3;
>
> @@ -341,7 +343,7 @@ static PCIBus *i440fx_common_init(const char *device_name,
> }
>
> PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn,
> - qemu_irq *pic,
> + ISABus **isa_bus, qemu_irq *pic,
> MemoryRegion *address_space_mem,
> MemoryRegion *address_space_io,
> ram_addr_t ram_size,
> @@ -354,7 +356,7 @@ PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn,
> {
> PCIBus *b;
>
> - b = i440fx_common_init("i440FX", pi440fx_state, piix3_devfn, pic,
> + b = i440fx_common_init("i440FX", pi440fx_state, piix3_devfn, isa_bus, pic,
> address_space_mem, address_space_io, ram_size,
> pci_hole_start, pci_hole_size,
> pci_hole64_size, pci_hole64_size,
next prev parent reply other threads:[~2011-12-12 16:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-24 20:18 [Qemu-devel] [PATCH 00/11] isa: preliminary work for multiple buses Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 01/11] isa: give ISABus/ISADevice to isa_create(), isa_bus_irqs() and isa_get_irq() functions Hervé Poussineau
2011-12-12 16:38 ` Anthony Liguori
2011-10-24 20:18 ` [Qemu-devel] [PATCH 02/11] isa: move ISABus structure definition to header file Hervé Poussineau
2011-12-12 16:39 ` Anthony Liguori
2011-10-24 20:18 ` [Qemu-devel] [PATCH 03/11] i8259: give ISA device to isa_register_ioport() Hervé Poussineau
2011-12-12 16:39 ` Anthony Liguori
2011-10-24 20:18 ` [Qemu-devel] [PATCH 04/11] pc: give ISA bus to ISA methods Hervé Poussineau
2011-12-12 16:40 ` Anthony Liguori [this message]
2011-10-24 20:18 ` [Qemu-devel] [PATCH 05/11] alpha: " Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 06/11] sun4u: " Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 07/11] fulong2e: " Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 08/11] malta: " Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 09/11] isa: always use provided ISA bus when creating an isa device Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 10/11] isa: always use provided ISA bus in isa_bus_irqs() Hervé Poussineau
2011-10-24 20:18 ` [Qemu-devel] [PATCH 11/11] audio: remove unused parameter isa_pic Hervé Poussineau
2011-10-28 17:24 ` [Qemu-devel] [PATCH 00/11] isa: preliminary work for multiple buses Hervé Poussineau
2011-11-05 8:27 ` Hervé Poussineau
2011-12-12 16:41 ` Anthony Liguori
-- strict thread matches above, loose matches on Subject: below --
2011-12-14 23:02 [Qemu-devel] [PATCH v2 " Hervé Poussineau
2011-12-14 23:02 ` [Qemu-devel] [PATCH 04/11] pc: give ISA bus to ISA methods Hervé Poussineau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE62E6B.5020104@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=hpoussin@reactos.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.