|
|
9ae3a8 |
From b1aa978a4310bc3c6811be75be978970022df6d2 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
Message-Id: <b1aa978a4310bc3c6811be75be978970022df6d2.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
In-Reply-To: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
References: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
From: "Michael S. Tsirkin" <mst@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 17 Dec 2013 15:17:27 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 15/56] pc: replace i440fx_common_init() with i440fx_init()
|
|
|
9ae3a8 |
MIME-Version: 1.0
|
|
|
9ae3a8 |
Content-Type: text/plain; charset=UTF-8
|
|
|
9ae3a8 |
Content-Transfer-Encoding: 8bit
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1387293161-4085-16-git-send-email-mst@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 56321
|
|
|
9ae3a8 |
O-Subject: [PATCH qemu-kvm RHEL7.0 v2 15/57] pc: replace i440fx_common_init() with i440fx_init()
|
|
|
9ae3a8 |
Bugzilla: 1034876
|
|
|
9ae3a8 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
It isn't used anywhere else.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Andreas Färber <afaerber@suse.de>
|
|
|
9ae3a8 |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Andreas Färber <afaerber@suse.de>
|
|
|
9ae3a8 |
Message-id: 1375109277-25561-4-git-send-email-imammedo@redhat.com
|
|
|
9ae3a8 |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
|
|
9ae3a8 |
(cherry picked from commit 44fc8c5e743b84c1d29f603e4014125dcf152d26)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/pci-host/piix.c | 50 +++++++++++++-------------------------------------
|
|
|
9ae3a8 |
1 file changed, 13 insertions(+), 37 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Michal Novotny <minovotn@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/pci-host/piix.c | 50 +++++++++++++-------------------------------------
|
|
|
9ae3a8 |
1 file changed, 13 insertions(+), 37 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
|
|
|
9ae3a8 |
index c89b76b..8894c03 100644
|
|
|
9ae3a8 |
--- a/hw/pci-host/piix.c
|
|
|
9ae3a8 |
+++ b/hw/pci-host/piix.c
|
|
|
9ae3a8 |
@@ -224,19 +224,18 @@ static int i440fx_initfn(PCIDevice *dev)
|
|
|
9ae3a8 |
return 0;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-static PCIBus *i440fx_common_init(const char *device_name,
|
|
|
9ae3a8 |
- PCII440FXState **pi440fx_state,
|
|
|
9ae3a8 |
- int *piix3_devfn,
|
|
|
9ae3a8 |
- ISABus **isa_bus, qemu_irq *pic,
|
|
|
9ae3a8 |
- MemoryRegion *address_space_mem,
|
|
|
9ae3a8 |
- MemoryRegion *address_space_io,
|
|
|
9ae3a8 |
- ram_addr_t ram_size,
|
|
|
9ae3a8 |
- hwaddr pci_hole_start,
|
|
|
9ae3a8 |
- hwaddr pci_hole_size,
|
|
|
9ae3a8 |
- hwaddr pci_hole64_start,
|
|
|
9ae3a8 |
- hwaddr pci_hole64_size,
|
|
|
9ae3a8 |
- MemoryRegion *pci_address_space,
|
|
|
9ae3a8 |
- MemoryRegion *ram_memory)
|
|
|
9ae3a8 |
+PCIBus *i440fx_init(PCII440FXState **pi440fx_state,
|
|
|
9ae3a8 |
+ int *piix3_devfn,
|
|
|
9ae3a8 |
+ ISABus **isa_bus, qemu_irq *pic,
|
|
|
9ae3a8 |
+ MemoryRegion *address_space_mem,
|
|
|
9ae3a8 |
+ MemoryRegion *address_space_io,
|
|
|
9ae3a8 |
+ ram_addr_t ram_size,
|
|
|
9ae3a8 |
+ hwaddr pci_hole_start,
|
|
|
9ae3a8 |
+ hwaddr pci_hole_size,
|
|
|
9ae3a8 |
+ hwaddr pci_hole64_start,
|
|
|
9ae3a8 |
+ hwaddr pci_hole64_size,
|
|
|
9ae3a8 |
+ MemoryRegion *pci_address_space,
|
|
|
9ae3a8 |
+ MemoryRegion *ram_memory)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
DeviceState *dev;
|
|
|
9ae3a8 |
PCIBus *b;
|
|
|
9ae3a8 |
@@ -254,7 +253,7 @@ static PCIBus *i440fx_common_init(const char *device_name,
|
|
|
9ae3a8 |
object_property_add_child(qdev_get_machine(), "i440fx", OBJECT(dev), NULL);
|
|
|
9ae3a8 |
qdev_init_nofail(dev);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- d = pci_create_simple(b, 0, device_name);
|
|
|
9ae3a8 |
+ d = pci_create_simple(b, 0, TYPE_I440FX_PCI_DEVICE);
|
|
|
9ae3a8 |
*pi440fx_state = I440FX_PCI_DEVICE(d);
|
|
|
9ae3a8 |
f = *pi440fx_state;
|
|
|
9ae3a8 |
f->system_memory = address_space_mem;
|
|
|
9ae3a8 |
@@ -314,29 +313,6 @@ static PCIBus *i440fx_common_init(const char *device_name,
|
|
|
9ae3a8 |
return b;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn,
|
|
|
9ae3a8 |
- ISABus **isa_bus, qemu_irq *pic,
|
|
|
9ae3a8 |
- MemoryRegion *address_space_mem,
|
|
|
9ae3a8 |
- MemoryRegion *address_space_io,
|
|
|
9ae3a8 |
- ram_addr_t ram_size,
|
|
|
9ae3a8 |
- hwaddr pci_hole_start,
|
|
|
9ae3a8 |
- hwaddr pci_hole_size,
|
|
|
9ae3a8 |
- hwaddr pci_hole64_start,
|
|
|
9ae3a8 |
- hwaddr pci_hole64_size,
|
|
|
9ae3a8 |
- MemoryRegion *pci_memory, MemoryRegion *ram_memory)
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
-{
|
|
|
9ae3a8 |
- PCIBus *b;
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
- b = i440fx_common_init(TYPE_I440FX_PCI_DEVICE, pi440fx_state,
|
|
|
9ae3a8 |
- piix3_devfn, isa_bus, pic,
|
|
|
9ae3a8 |
- address_space_mem, address_space_io, ram_size,
|
|
|
9ae3a8 |
- pci_hole_start, pci_hole_size,
|
|
|
9ae3a8 |
- pci_hole64_start, pci_hole64_size,
|
|
|
9ae3a8 |
- pci_memory, ram_memory);
|
|
|
9ae3a8 |
- return b;
|
|
|
9ae3a8 |
-}
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
/* PIIX3 PCI to ISA bridge */
|
|
|
9ae3a8 |
static void piix3_set_irq_pic(PIIX3State *piix3, int pic_irq)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.11.7
|
|
|
9ae3a8 |
|