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.

123 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. button.h
  5. Abstract:
  6. This module contains the enumerated for the ACPI driver, NT version
  7. Author:
  8. Stephane Plante (splante)
  9. Environment:
  10. NT Kernel Model Driver only
  11. --*/
  12. #ifndef _CMBUTTON_H_
  13. #define _CMBUTTON_H_
  14. //
  15. // Lid Events
  16. //
  17. #define LID_SIGNAL_EVENT 0x1
  18. VOID
  19. ACPICMButtonNotify(
  20. IN PVOID Context,
  21. IN ULONG EventData
  22. );
  23. NTSTATUS
  24. ACPICMButtonSetPower(
  25. IN PDEVICE_OBJECT DeviceObject,
  26. IN PIRP Irp
  27. );
  28. NTSTATUS
  29. ACPICMButtonStart(
  30. IN PDEVICE_OBJECT DeviceObject,
  31. IN PIRP Irp,
  32. IN ULONG ButtonType
  33. );
  34. VOID
  35. ACPICMButtonStartCompletion(
  36. IN PDEVICE_EXTENSION DeviceExtension,
  37. IN PVOID Context,
  38. IN NTSTATUS Status
  39. );
  40. VOID
  41. ACPICMButtonStartWorker(
  42. IN PVOID Context
  43. );
  44. NTSTATUS
  45. ACPICMButtonWaitWakeCancel(
  46. IN PDEVICE_EXTENSION DeviceExtension
  47. );
  48. NTSTATUS
  49. ACPICMButtonWaitWakeComplete(
  50. IN PDEVICE_OBJECT DeviceObject,
  51. IN UCHAR MinorFunction,
  52. IN POWER_STATE PowerState,
  53. IN PVOID Context,
  54. IN PIO_STATUS_BLOCK IoStatus
  55. );
  56. VOID
  57. ACPICMLidPowerStateCallBack(
  58. IN PVOID CallBackContext,
  59. IN PVOID Argument1,
  60. IN PVOID Argument2
  61. );
  62. NTSTATUS
  63. ACPICMLidSetPower(
  64. IN PDEVICE_OBJECT DeviceObject,
  65. IN PIRP Irp
  66. );
  67. VOID
  68. EXPORT
  69. ACPICMLidSetPowerCompletion(
  70. IN PNSOBJ AcpiObject,
  71. IN NTSTATUS Status,
  72. IN POBJDATA Result,
  73. IN PVOID Context
  74. );
  75. NTSTATUS
  76. ACPICMLidStart(
  77. IN PDEVICE_OBJECT DeviceObject,
  78. IN PIRP Irp
  79. );
  80. VOID
  81. ACPICMLidWorker(
  82. IN PDEVICE_EXTENSION DevExt,
  83. IN ULONG Events
  84. );
  85. NTSTATUS
  86. ACPICMPowerButtonStart(
  87. IN PDEVICE_OBJECT DeviceObject,
  88. IN PIRP Irp
  89. );
  90. NTSTATUS
  91. ACPICMSleepButtonStart(
  92. IN PDEVICE_OBJECT DeviceObject,
  93. IN PIRP Irp
  94. );
  95. #endif