From 04762841d8803429fd9bf71eff481d3c5915fa3e Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 14 May 2010 16:29:00 +0900 Subject: acpi: split out apm register emulation from acpi.c Split out apm register emulation for acpi.c into apm.c. The apm emulation will be used later. Signed-off-by: Isaku Yamahata Acked-by: Gerd Hoffmann Cc: Aurelien Jarno Signed-off-by: Blue Swirl --- hw/apm.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hw/apm.h (limited to 'hw/apm.h') diff --git a/hw/apm.h b/hw/apm.h new file mode 100644 index 0000000..f7c741e --- /dev/null +++ b/hw/apm.h @@ -0,0 +1,22 @@ +#ifndef APM_H +#define APM_H + +#include +#include "qemu-common.h" +#include "hw.h" + +typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg); + +typedef struct APMState { + uint8_t apmc; + uint8_t apms; + + apm_ctrl_changed_t callback; + void *arg; +} APMState; + +void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg); + +extern const VMStateDescription vmstate_apm; + +#endif /* APM_H */ -- cgit v1.1