Leaked source code of windows server 2003
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.

79 lines
2.4 KiB

  1. /*++
  2. Module Name:
  3. apm.h
  4. Abstract:
  5. This is the APM bus specific header file
  6. Author:
  7. Revision History:
  8. --*/
  9. //
  10. // APM 1.0 defines
  11. //
  12. // devices
  13. #define APM_DEVICE_BIOS 0x0000
  14. #define APM_DEVICE_ALL 0x0001
  15. #define APM_DEVICE_DISPLAY 1
  16. #define APM_DEVICE_STORAGE 2
  17. #define APM_DEVICE_PARALLEL 3
  18. #define APM_DEVICE_SERIAL 4
  19. #define APM_MAX_DEVICE_TYPE 4
  20. #define APM_DEVICE_ID(Type,Inst) ((Type << 8) | Inst)
  21. #define APM_SET_READY 0
  22. #define APM_SET_STANDBY 1
  23. #define APM_SET_SUSPEND 2
  24. #define APM_SET_OFF 3
  25. // interface api numbers
  26. #ifndef NEC_98
  27. #define APM_INSTALLATION_CHECK 0x5300
  28. #define APM_REAL_MODE_CONNECT 0x5301
  29. #define APM_PROTECT_MODE_16bit_CONNECT 0x5302
  30. #define APM_PROTECT_MODE_32bit_CONNECT 0x5303
  31. #define APM_DISCONNECT 0x5304
  32. #define APM_CPU_IDLE 0x5305
  33. #define APM_CPU_BUSY 0x5306
  34. #define APM_SET_POWER_STATE 0x5307
  35. #define APM_ENABLE_FUNCTION 0x5308
  36. #define APM_RESTORE_DEFAULTS 0x5309
  37. #define APM_GET_POWER_STATUS 0x530A
  38. #define APM_GET_EVENT 0x530B
  39. #define APM_DRIVER_VERSION 0x530E
  40. #else
  41. #define APM_INSTALLATION_CHECK 0x9A00
  42. #define APM_REAL_MODE_CONNECT 0x9A01
  43. #define APM_PROTECT_MODE_16bit_CONNECT 0x9A02
  44. #define APM_PROTECT_MODE_32bit_CONNECT 0x9A03
  45. #define APM_DISCONNECT 0x9A04
  46. #define APM_CPU_IDLE 0x9A05
  47. #define APM_CPU_BUSY 0x9A06
  48. #define APM_SET_POWER_STATE 0x9A07
  49. #define APM_ENABLE_FUNCTION 0x9A08
  50. #define APM_RESTORE_DEFAULTS 0x9A09
  51. #define APM_GET_POWER_STATUS 0x9A0A
  52. #define APM_GET_EVENT 0x9A0B
  53. #define APM_DRIVER_VERSION 0x9A3E
  54. #endif
  55. #define APM_MODE_16BIT 0x0001
  56. #define APM_MODE_32BIT 0x0002
  57. #define APM_CPU_IDLE_SLOW 0x0004
  58. #define APM_DISABLED 0x0008
  59. #define APM_DISENGAGED 0x0010