diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-05-14 16:29:00 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-05-15 15:27:19 +0000 |
commit | 04762841d8803429fd9bf71eff481d3c5915fa3e (patch) | |
tree | cc0ca1c2fe8454d2633b8b1f0fd15aad850a1a62 /hw/apm.h | |
parent | fc0bdd995ca36a34cc576ee706df239dd5ff79a9 (diff) | |
download | qemu-04762841d8803429fd9bf71eff481d3c5915fa3e.zip qemu-04762841d8803429fd9bf71eff481d3c5915fa3e.tar.gz qemu-04762841d8803429fd9bf71eff481d3c5915fa3e.tar.bz2 |
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 <yamahata@valinux.co.jp>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/apm.h')
-rw-r--r-- | hw/apm.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <stdint.h> +#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 */ |