xref: /openbmc/qemu/include/hw/isa/apm.h (revision dc5bd18f)
1 #ifndef APM_H
2 #define APM_H
3 
4 #include "qemu-common.h"
5 #include "hw/hw.h"
6 #include "exec/memory.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     MemoryRegion io;
17 } APMState;
18 
19 void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
20               void *arg);
21 
22 extern const VMStateDescription vmstate_apm;
23 
24 #endif /* APM_H */
25