aboutsummaryrefslogtreecommitdiffstats
path: root/hw/apm.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/apm.h')
-rw-r--r--hw/apm.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/hw/apm.h b/hw/apm.h
new file mode 100644
index 000000000..f7c741e32
--- /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 */