virtio-serial: Turn props any virtio-serial-bus device must have into bus props
[qemu.git] / hw / apm.h
blobf7c741e3276f22fe1f7458f1f17524ca2041a840
1 #ifndef APM_H
2 #define APM_H
4 #include <stdint.h>
5 #include "qemu-common.h"
6 #include "hw.h"
8 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
10 typedef struct APMState {
11 uint8_t apmc;
12 uint8_t apms;
14 apm_ctrl_changed_t callback;
15 void *arg;
16 } APMState;
18 void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
20 extern const VMStateDescription vmstate_apm;
22 #endif /* APM_H */