qemu-patch-raspberry4/hw/apm.h
Isaku Yamahata 04762841d8 acpi: split out apm register emulation from acpi.c
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>
2010-05-15 15:27:19 +00:00

23 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 */