]> git.proxmox.com Git - qemu.git/blame - hw/apm.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / apm.h
CommitLineData
04762841
IY
1#ifndef APM_H
2#define APM_H
3
4#include <stdint.h>
5#include "qemu-common.h"
6#include "hw.h"
7
8typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
9
10typedef struct APMState {
11 uint8_t apmc;
12 uint8_t apms;
13
14 apm_ctrl_changed_t callback;
15 void *arg;
16} APMState;
17
18void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
19
20extern const VMStateDescription vmstate_apm;
21
22#endif /* APM_H */