diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-11-22 13:25:10 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-12-04 13:52:42 +0100 |
commit | b5a7c024d2606e84e0bbe4a0e87d252dfda41479 (patch) | |
tree | 783990524715b6b0bf66044196b519ae83c976be /hw/acpi.h | |
parent | afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4 (diff) | |
download | qemu-b5a7c024d2606e84e0bbe4a0e87d252dfda41479.zip qemu-b5a7c024d2606e84e0bbe4a0e87d252dfda41479.tar.gz qemu-b5a7c024d2606e84e0bbe4a0e87d252dfda41479.tar.bz2 |
apci: switch evt to memory api
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/acpi.h')
-rw-r--r-- | hw/acpi.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -91,8 +91,10 @@ struct ACPIPMTimer { }; struct ACPIPM1EVT { + MemoryRegion io; uint16_t sts; uint16_t en; + acpi_update_sci_fn update_sci; }; struct ACPIPM1CNT { @@ -135,10 +137,10 @@ static inline int64_t acpi_pm_tmr_get_clock(void) /* PM1a_EVT: piix and ich9 don't implement PM1b. */ uint16_t acpi_pm1_evt_get_sts(ACPIREGS *ar); -void acpi_pm1_evt_write_sts(ACPIREGS *ar, uint16_t val); -void acpi_pm1_evt_write_en(ACPIREGS *ar, uint16_t val); void acpi_pm1_evt_power_down(ACPIREGS *ar); void acpi_pm1_evt_reset(ACPIREGS *ar); +void acpi_pm1_evt_init(ACPIREGS *ar, acpi_update_sci_fn update_sci, + MemoryRegion *parent); /* PM1a_CNT: piix and ich9 don't implement PM1b CNT. */ void acpi_pm1_cnt_init(ACPIREGS *ar, MemoryRegion *parent); |