diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2016-05-31 11:57:57 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-06-07 15:36:54 +0300 |
| commit | eaf23bf794c749c621a5605c1076a16e3d81e12b (patch) | |
| tree | b26aa5b26af67ebb663013d04a50feef28eec911 /hw/acpi/core.c | |
| parent | 6d42eefad8ead3dd8a1fc887efb9a017a35319fc (diff) | |
| download | focaccia-qemu-eaf23bf794c749c621a5605c1076a16e3d81e12b.tar.gz focaccia-qemu-eaf23bf794c749c621a5605c1076a16e3d81e12b.zip | |
acpi: extend ACPI interface to provide send_event hook
send_event() hook will allow to send ACPI event in a target specific way (GPE or GPIO based impl.) it will also simplify proxy wrappers in piix4pm/ich9 that access ACPI regs and SCI which are part of piix4pm/lcp_ich9 devices and call acpi_foo() API directly. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Diffstat (limited to 'hw/acpi/core.c')
| -rw-r--r-- | hw/acpi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 1ffd155c11..d24b9a98c8 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -698,7 +698,7 @@ uint32_t acpi_gpe_ioport_readb(ACPIREGS *ar, uint32_t addr) } void acpi_send_gpe_event(ACPIREGS *ar, qemu_irq irq, - AcpiGPEStatusBits status) + AcpiEventStatusBits status) { ar->gpe.sts[0] |= status; acpi_update_sci(ar, irq); |