qemu/include/hw/isa/apm.h
<<
>>
Prefs
   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
   8typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
   9
  10typedef 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
  19void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
  20              void *arg);
  21
  22extern const VMStateDescription vmstate_apm;
  23
  24#endif /* APM_H */
  25