2010-05-14 09:29:00 +02:00
|
|
|
#ifndef APM_H
|
|
|
|
#define APM_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "qemu-common.h"
|
|
|
|
#include "hw.h"
|
2012-09-19 13:50:03 +02:00
|
|
|
#include "memory.h"
|
2010-05-14 09:29:00 +02:00
|
|
|
|
|
|
|
typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
|
|
|
|
|
|
|
|
typedef struct APMState {
|
|
|
|
uint8_t apmc;
|
|
|
|
uint8_t apms;
|
|
|
|
|
|
|
|
apm_ctrl_changed_t callback;
|
|
|
|
void *arg;
|
2012-09-19 13:50:03 +02:00
|
|
|
MemoryRegion io;
|
2010-05-14 09:29:00 +02:00
|
|
|
} APMState;
|
|
|
|
|
2012-09-19 13:50:03 +02:00
|
|
|
void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
|
|
|
|
void *arg);
|
2010-05-14 09:29:00 +02:00
|
|
|
|
|
|
|
extern const VMStateDescription vmstate_apm;
|
|
|
|
|
|
|
|
#endif /* APM_H */
|