mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
04762841d8
Split out apm register emulation for acpi.c into apm.c. The apm emulation will be used later. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
22 lines
411 B
C
22 lines
411 B
C
#ifndef APM_H
|
|
#define APM_H
|
|
|
|
#include <stdint.h>
|
|
#include "qemu-common.h"
|
|
#include "hw.h"
|
|
|
|
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;
|
|
} APMState;
|
|
|
|
void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
|
|
|
|
extern const VMStateDescription vmstate_apm;
|
|
|
|
#endif /* APM_H */
|