apm.h 487 B

12345678910111213141516171819202122232425
  1. #ifndef APM_H
  2. #define APM_H
  3. #include <stdint.h>
  4. #include "qemu-common.h"
  5. #include "hw.h"
  6. #include "exec/memory.h"
  7. typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
  8. typedef struct APMState {
  9. uint8_t apmc;
  10. uint8_t apms;
  11. apm_ctrl_changed_t callback;
  12. void *arg;
  13. MemoryRegion io;
  14. } APMState;
  15. void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
  16. void *arg);
  17. extern const VMStateDescription vmstate_apm;
  18. #endif /* APM_H */