PPC: e500: msync is 440 only, e500 has real sync
[qemu.git] / hw / apm.h
1 #ifndef APM_H
2 #define APM_H
3
4 #include <stdint.h>
5 #include "qemu-common.h"
6 #include "hw.h"
7
8 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
9
10 typedef struct APMState {
11 uint8_t apmc;
12 uint8_t apms;
13
14 apm_ctrl_changed_t callback;
15 void *arg;
16 } APMState;
17
18 void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
19
20 extern const VMStateDescription vmstate_apm;
21
22 #endif /* APM_H */