00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #define APM_DEVICE_BIOS 0x0000
00026 #define APM_DEVICE_ALL 0x0001
00027
00028 #define APM_DEVICE_DISPLAY 1
00029 #define APM_DEVICE_STORAGE 2
00030 #define APM_DEVICE_PARALLEL 3
00031 #define APM_DEVICE_SERIAL 4
00032 #define APM_MAX_DEVICE_TYPE 4
00033
00034 #define APM_DEVICE_ID(Type,Inst) ((Type << 8) | Inst)
00035
00036
00037 #define APM_SET_READY 0
00038 #define APM_SET_STANDBY 1
00039 #define APM_SET_SUSPEND 2
00040 #define APM_SET_OFF 3
00041
00042
00043
#ifndef NEC_98
00044 #define APM_INSTALLATION_CHECK 0x5300
00045 #define APM_REAL_MODE_CONNECT 0x5301
00046 #define APM_PROTECT_MODE_16bit_CONNECT 0x5302
00047 #define APM_PROTECT_MODE_32bit_CONNECT 0x5303
00048 #define APM_DISCONNECT 0x5304
00049 #define APM_CPU_IDLE 0x5305
00050 #define APM_CPU_BUSY 0x5306
00051 #define APM_SET_POWER_STATE 0x5307
00052 #define APM_ENABLE_FUNCTION 0x5308
00053 #define APM_RESTORE_DEFAULTS 0x5309
00054 #define APM_GET_POWER_STATUS 0x530A
00055 #define APM_GET_EVENT 0x530B
00056 #define APM_DRIVER_VERSION 0x530E
00057
#else
00058
#define APM_INSTALLATION_CHECK 0x9A00
00059
#define APM_REAL_MODE_CONNECT 0x9A01
00060
#define APM_PROTECT_MODE_16bit_CONNECT 0x9A02
00061
#define APM_PROTECT_MODE_32bit_CONNECT 0x9A03
00062
#define APM_DISCONNECT 0x9A04
00063
#define APM_CPU_IDLE 0x9A05
00064
#define APM_CPU_BUSY 0x9A06
00065
#define APM_SET_POWER_STATE 0x9A07
00066
#define APM_ENABLE_FUNCTION 0x9A08
00067
#define APM_RESTORE_DEFAULTS 0x9A09
00068
#define APM_GET_POWER_STATUS 0x9A0A
00069
#define APM_GET_EVENT 0x9A0B
00070
#define APM_DRIVER_VERSION 0x9A3E
00071
#endif
00072
00073 #define APM_MODE_16BIT 0x0001
00074 #define APM_MODE_32BIT 0x0002
00075 #define APM_CPU_IDLE_SLOW 0x0004
00076 #define APM_DISABLED 0x0008
00077 #define APM_DISENGAGED 0x0010
00078
00079