Go to the documentation of this file.
21 #define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8)
22 #define APM_CS_16 (APM_CS + 8)
23 #define APM_DS (APM_CS_16 + 8)
26 #define APM_16_BIT_SUPPORT 0x0001
27 #define APM_32_BIT_SUPPORT 0x0002
28 #define APM_IDLE_SLOWS_CLOCK 0x0004
29 #define APM_BIOS_DISABLED 0x0008
30 #define APM_BIOS_DISENGAGED 0x0010
49 #define APM_FUNC_INST_CHECK 0x5300
50 #define APM_FUNC_REAL_CONN 0x5301
51 #define APM_FUNC_16BIT_CONN 0x5302
52 #define APM_FUNC_32BIT_CONN 0x5303
53 #define APM_FUNC_DISCONN 0x5304
54 #define APM_FUNC_IDLE 0x5305
55 #define APM_FUNC_BUSY 0x5306
56 #define APM_FUNC_SET_STATE 0x5307
57 #define APM_FUNC_ENABLE_PM 0x5308
58 #define APM_FUNC_RESTORE_BIOS 0x5309
59 #define APM_FUNC_GET_STATUS 0x530a
60 #define APM_FUNC_GET_EVENT 0x530b
61 #define APM_FUNC_GET_STATE 0x530c
62 #define APM_FUNC_ENABLE_DEV_PM 0x530d
63 #define APM_FUNC_VERSION 0x530e
64 #define APM_FUNC_ENGAGE_PM 0x530f
65 #define APM_FUNC_GET_CAP 0x5310
66 #define APM_FUNC_RESUME_TIMER 0x5311
67 #define APM_FUNC_RESUME_ON_RING 0x5312
68 #define APM_FUNC_TIMER 0x5313
73 #define APM_FUNC_DISABLE_TIMER 0
74 #define APM_FUNC_GET_TIMER 1
75 #define APM_FUNC_SET_TIMER 2
80 #define APM_FUNC_DISABLE_RING 0
81 #define APM_FUNC_ENABLE_RING 1
82 #define APM_FUNC_GET_RING 2
87 #define APM_FUNC_TIMER_DISABLE 0
88 #define APM_FUNC_TIMER_ENABLE 1
89 #define APM_FUNC_TIMER_GET 2
99 #define APM_DEVICE_BALL ((apm_info.connection_version > 0x0100) ? \
100 APM_DEVICE_ALL : APM_DEVICE_OLD_ALL)