diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-06-16 19:12:27 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:22 +0300 |
commit | 43f50410088847376c8b146e817a9042bd2a5f36 (patch) | |
tree | a8e170b918adc00773966b0ce966f0ee616975d9 /hw/acpi/ich9.c | |
parent | 521b3673ac16ec7fa33b1ec2cdfe75ec708f073e (diff) | |
download | qemu-43f50410088847376c8b146e817a9042bd2a5f36.zip qemu-43f50410088847376c8b146e817a9042bd2a5f36.tar.gz qemu-43f50410088847376c8b146e817a9042bd2a5f36.tar.bz2 |
acpi: implement ospm_status() method for PIIX4/ICH9_LPC devices
... using TYPE_ACPI_DEVICE_IF interface.
Which provides status reporting of ACPI declared memory devices
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi/ich9.c')
-rw-r--r-- | hw/acpi/ich9.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 0ecc241..e7d6c77 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -309,3 +309,10 @@ void ich9_pm_device_plug_cb(ICH9LPCPMRegs *pm, DeviceState *dev, Error **errp) " type: %s", object_get_typename(OBJECT(dev))); } } + +void ich9_pm_ospm_status(AcpiDeviceIf *adev, ACPIOSTInfoList ***list) +{ + ICH9LPCState *s = ICH9_LPC_DEVICE(adev); + + acpi_memory_ospm_status(&s->pm.acpi_memory_hotplug, list); +} |