Go to the documentation of this file.
11 #ifndef __LINUX_APM_EMULATION_H
12 #define __LINUX_APM_EMULATION_H
14 #include <linux/apm_bios.h>
22 #define APM_AC_OFFLINE 0
23 #define APM_AC_ONLINE 1
24 #define APM_AC_BACKUP 2
25 #define APM_AC_UNKNOWN 0xff
28 #define APM_BATTERY_STATUS_HIGH 0
29 #define APM_BATTERY_STATUS_LOW 1
30 #define APM_BATTERY_STATUS_CRITICAL 2
31 #define APM_BATTERY_STATUS_CHARGING 3
32 #define APM_BATTERY_STATUS_NOT_PRESENT 4
33 #define APM_BATTERY_STATUS_UNKNOWN 0xff
36 #define APM_BATTERY_FLAG_HIGH (1 << 0)
37 #define APM_BATTERY_FLAG_LOW (1 << 1)
38 #define APM_BATTERY_FLAG_CRITICAL (1 << 2)
39 #define APM_BATTERY_FLAG_CHARGING (1 << 3)
40 #define APM_BATTERY_FLAG_NOT_PRESENT (1 << 7)
41 #define APM_BATTERY_FLAG_UNKNOWN 0xff
46 #define APM_UNITS_MINS 0
47 #define APM_UNITS_SECS 1
48 #define APM_UNITS_UNKNOWN -1