mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

Convert the existing includes with sed -i ,exec/memory.h,system/memory.h,g Move the include within cpu-all.h into a !CONFIG_USER_ONLY block. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
25 lines
499 B
C
25 lines
499 B
C
#ifndef APM_H
|
|
#define APM_H
|
|
|
|
#include "system/memory.h"
|
|
|
|
#define APM_CNT_IOPORT 0xb2
|
|
#define ACPI_PORT_SMI_CMD APM_CNT_IOPORT
|
|
|
|
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;
|
|
MemoryRegion io;
|
|
} APMState;
|
|
|
|
void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
|
|
void *arg);
|
|
|
|
extern const VMStateDescription vmstate_apm;
|
|
|
|
#endif /* APM_H */
|