Support default block interfaces per QEMUMachine
[qemu/ar7.git] / hw / apm.h
blob5431b6d7c854f82c3c247e29cae1081edad83f79
1 #ifndef APM_H
2 #define APM_H
4 #include <stdint.h>
5 #include "qemu-common.h"
6 #include "hw.h"
7 #include "memory.h"
9 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
11 typedef struct APMState {
12 uint8_t apmc;
13 uint8_t apms;
15 apm_ctrl_changed_t callback;
16 void *arg;
17 MemoryRegion io;
18 } APMState;
20 void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
21 void *arg);
23 extern const VMStateDescription vmstate_apm;
25 #endif /* APM_H */