summaryrefslogtreecommitdiff
path: root/hw/acpi_ich9.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-12-11 09:42:18 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-01-04 08:51:56 +0100
commit503b19fc5d018f4edc60fb771cf97f47cea71be2 (patch)
tree406b166d87d54d3c18c50aa12d286445bd5d2184 /hw/acpi_ich9.c
parent56e5b2a1a655b9158c0d274a6f630927c9a5fb4b (diff)
downloadqemu-503b19fc5d018f4edc60fb771cf97f47cea71be2.tar.gz
qemu-503b19fc5d018f4edc60fb771cf97f47cea71be2.tar.bz2
qemu-503b19fc5d018f4edc60fb771cf97f47cea71be2.zip
apci: assign memory regions to ich9 lpc device
Get rid of get_system_io() usage. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/acpi_ich9.c')
-rw-r--r--hw/acpi_ich9.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c
index 37a50e6d7b..d2f9808242 100644
--- a/hw/acpi_ich9.c
+++ b/hw/acpi_ich9.c
@@ -202,11 +202,13 @@ static void pm_powerdown_req(Notifier *n, void *opaque)
acpi_pm1_evt_power_down(&pm->acpi_regs);
}
-void ich9_pm_init(ICH9LPCPMRegs *pm, qemu_irq sci_irq, qemu_irq cmos_s3)
+void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm,
+ qemu_irq sci_irq, qemu_irq cmos_s3)
{
memory_region_init(&pm->io, "ich9-pm", ICH9_PMIO_SIZE);
memory_region_set_enabled(&pm->io, false);
- memory_region_add_subregion(get_system_io(), 0, &pm->io);
+ memory_region_add_subregion(pci_address_space_io(lpc_pci),
+ 0, &pm->io);
acpi_pm_tmr_init(&pm->acpi_regs, ich9_pm_update_sci_fn, &pm->io);
acpi_pm1_evt_init(&pm->acpi_regs, ich9_pm_update_sci_fn, &pm->io);