mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.7 KiB
73 lines
1.7 KiB
/*++
|
|
|
|
Module Name:
|
|
|
|
apm.h
|
|
|
|
Abstract:
|
|
|
|
This is the APM bus specific header file
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
//
|
|
// APM Registery information stored by ntdetect
|
|
//
|
|
|
|
typedef struct _APM_REGISTRY_INFO {
|
|
UCHAR ApmRevMajor;
|
|
UCHAR ApmRevMinor;
|
|
|
|
USHORT ApmInstallFlags;
|
|
|
|
//
|
|
// Defines for 16 bit interface connect
|
|
//
|
|
|
|
USHORT Code16BitSegmentBase;
|
|
USHORT Code16BitOffset;
|
|
USHORT Data16BitSegment;
|
|
|
|
} APM_REGISTRY_INFO, *PAPM_REGISTRY_INFO;
|
|
|
|
|
|
//
|
|
// APM 1.0 defines
|
|
//
|
|
|
|
// devices
|
|
#define APM_DEVICE_BIOS 0x0000
|
|
#define APM_DEVICE_ALL 0x0001
|
|
|
|
#define APM_DEVICE_DISPLAY 1
|
|
#define APM_DEVICE_STORAGE 2
|
|
#define APM_DEVICE_PARALLEL 3
|
|
#define APM_DEVICE_SERIAL 4
|
|
#define APM_MAX_DEVICE_TYPE 4
|
|
|
|
#define APM_DEVICE_ID(Type,Inst) ((Type << 8) | Inst)
|
|
|
|
|
|
#define APM_SET_READY 0
|
|
#define APM_SET_STANDBY 1
|
|
#define APM_SET_SUSPEND 2
|
|
#define APM_SET_OFF 3
|
|
|
|
// interface api numbers
|
|
#define APM_INSTALLATION_CHECK 0x5300
|
|
#define APM_REAL_MODE_CONNECT 0x5301
|
|
#define APM_PROTECT_MODE_16bit_CONNECT 0x5302
|
|
#define APM_PROTECT_MODE_32bit_CONNECT 0x5303
|
|
#define APM_DISCONNECT 0x5304
|
|
#define APM_CPU_IDLE 0x5305
|
|
#define APM_CPU_BUSY 0x5306
|
|
#define APM_SET_POWER_STATE 0x5307
|
|
#define APM_ENABLE_FUNCTION 0x5308
|
|
#define APM_RESTORE_DEFAULTS 0x5309
|
|
#define APM_GET_POWER_STATUS 0x530A
|
|
#define APM_GET_EVENT 0x530B
|