summaryrefslogtreecommitdiff
path: root/hw/acpi.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-11-22 13:17:57 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-12-04 13:52:42 +0100
commitafafe4bbe0cf7d3318e1ac7b40925561f86a6bd4 (patch)
tree2a60fad66478806872933bca752d76e3af13df52 /hw/acpi.h
parent77d58b1e47c8d1c661f98f12b47ab519d3561488 (diff)
downloadqemu-afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4.tar.gz
qemu-afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4.tar.bz2
qemu-afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4.zip
apci: switch cnt to memory api
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/acpi.h')
-rw-r--r--hw/acpi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/acpi.h b/hw/acpi.h
index 91f42c3db1..97aaab847c 100644
--- a/hw/acpi.h
+++ b/hw/acpi.h
@@ -96,7 +96,9 @@ struct ACPIPM1EVT {
};
struct ACPIPM1CNT {
+ MemoryRegion io;
uint16_t cnt;
+ uint8_t s4_val;
};
struct ACPIGPE {
@@ -139,8 +141,7 @@ void acpi_pm1_evt_power_down(ACPIREGS *ar);
void acpi_pm1_evt_reset(ACPIREGS *ar);
/* PM1a_CNT: piix and ich9 don't implement PM1b CNT. */
-void acpi_pm1_cnt_init(ACPIREGS *ar);
-void acpi_pm1_cnt_write(ACPIREGS *ar, uint16_t val, char s4);
+void acpi_pm1_cnt_init(ACPIREGS *ar, MemoryRegion *parent);
void acpi_pm1_cnt_update(ACPIREGS *ar,
bool sci_enable, bool sci_disable);
void acpi_pm1_cnt_reset(ACPIREGS *ar);