4 #include "qemu-common.h"
6 #include "exec/memory.h"
8 #define APM_CNT_IOPORT 0xb2
9 #define ACPI_PORT_SMI_CMD APM_CNT_IOPORT
11 typedef void (*apm_ctrl_changed_t
)(uint32_t val
, void *arg
);
13 typedef struct APMState
{
17 apm_ctrl_changed_t callback
;
22 void apm_init(PCIDevice
*dev
, APMState
*s
, apm_ctrl_changed_t callback
,
25 extern const VMStateDescription vmstate_apm
;