root / hw / apm.h @ ee77dfb2
History | View | Annotate | Download (411 Bytes)
1 | 04762841 | Isaku Yamahata | #ifndef APM_H
|
---|---|---|---|
2 | 04762841 | Isaku Yamahata | #define APM_H
|
3 | 04762841 | Isaku Yamahata | |
4 | 04762841 | Isaku Yamahata | #include <stdint.h> |
5 | 04762841 | Isaku Yamahata | #include "qemu-common.h" |
6 | 04762841 | Isaku Yamahata | #include "hw.h" |
7 | 04762841 | Isaku Yamahata | |
8 | 04762841 | Isaku Yamahata | typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg); |
9 | 04762841 | Isaku Yamahata | |
10 | 04762841 | Isaku Yamahata | typedef struct APMState { |
11 | 04762841 | Isaku Yamahata | uint8_t apmc; |
12 | 04762841 | Isaku Yamahata | uint8_t apms; |
13 | 04762841 | Isaku Yamahata | |
14 | 04762841 | Isaku Yamahata | apm_ctrl_changed_t callback; |
15 | 04762841 | Isaku Yamahata | void *arg;
|
16 | 04762841 | Isaku Yamahata | } APMState; |
17 | 04762841 | Isaku Yamahata | |
18 | 04762841 | Isaku Yamahata | void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg); |
19 | 04762841 | Isaku Yamahata | |
20 | 04762841 | Isaku Yamahata | extern const VMStateDescription vmstate_apm; |
21 | 04762841 | Isaku Yamahata | |
22 | 04762841 | Isaku Yamahata | #endif /* APM_H */ |