Merge remote-tracking branch 'remotes/famz/tags/docker-pull-request' into staging
[qemu/ar7.git] / include / hw / isa / apm.h
blob4839ff1df2522202ff028aa3667396c87d7f82d5
1 #ifndef APM_H
2 #define APM_H
4 #include "qemu-common.h"
5 #include "hw/hw.h"
6 #include "exec/memory.h"
8 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
10 typedef struct APMState {
11 uint8_t apmc;
12 uint8_t apms;
14 apm_ctrl_changed_t callback;
15 void *arg;
16 MemoryRegion io;
17 } APMState;
19 void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
20 void *arg);
22 extern const VMStateDescription vmstate_apm;
24 #endif /* APM_H */