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.

118 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. acpictl.c
  5. Abstract:
  6. This module handles all of the INTERNAL_DEVICE_CONTROLS requested to
  7. the ACPI driver
  8. Author:
  9. Stephane Plante (splante)
  10. Environment:
  11. NT Kernel Mode Driver only
  12. --*/
  13. #ifndef _ACPICTL_H_
  14. #define _ACPICTL_H_
  15. NTSTATUS
  16. ACPIIoctlAcquireGlobalLock(
  17. IN PDEVICE_OBJECT DeviceObject,
  18. IN PIRP Irp,
  19. IN PIO_STACK_LOCATION IrpStack
  20. );
  21. NTSTATUS
  22. ACPIIoctlAsyncEvalControlMethod(
  23. IN PDEVICE_OBJECT DeviceObject,
  24. IN PIRP Irp,
  25. IN PIO_STACK_LOCATION IrpStack
  26. );
  27. VOID EXPORT
  28. ACPIIoctlAsyncEvalControlMethodCompletion(
  29. IN PNSOBJ AcpiObject,
  30. IN NTSTATUS Status,
  31. IN POBJDATA ObjectData,
  32. IN PVOID Context
  33. );
  34. NTSTATUS
  35. ACPIIoctlCalculateOutputBuffer(
  36. IN POBJDATA ObjectData,
  37. IN PACPI_METHOD_ARGUMENT Argument,
  38. IN BOOLEAN TopLevel
  39. );
  40. NTSTATUS
  41. ACPIIoctlCalculateOutputBufferSize(
  42. IN POBJDATA ObjectData,
  43. IN PULONG BufferSize,
  44. IN PULONG BufferCount,
  45. IN BOOLEAN TopLevel
  46. );
  47. NTSTATUS
  48. ACPIIoctlEvalControlMethod(
  49. IN PDEVICE_OBJECT DeviceObject,
  50. IN PIRP Irp,
  51. IN PIO_STACK_LOCATION IrpStack
  52. );
  53. NTSTATUS
  54. ACPIIoctlEvalPostProcessing(
  55. IN PIRP Irp,
  56. IN POBJDATA ObjectData
  57. );
  58. NTSTATUS
  59. ACPIIoctlEvalPreProcessing(
  60. IN PDEVICE_OBJECT DeviceObject,
  61. IN PIRP Irp,
  62. IN PIO_STACK_LOCATION IrpStack,
  63. IN POOL_TYPE PoolType,
  64. OUT PNSOBJ *MethodObject,
  65. OUT POBJDATA *ResultData,
  66. OUT POBJDATA *ArgumentData,
  67. OUT ULONG *ArgumentCount
  68. );
  69. NTSTATUS
  70. ACPIIoctlRegisterOpRegionHandler(
  71. IN PDEVICE_OBJECT DeviceObject,
  72. IN PIRP Irp,
  73. IN PIO_STACK_LOCATION IrpStack
  74. );
  75. NTSTATUS
  76. ACPIIoctlReleaseGlobalLock(
  77. IN PDEVICE_OBJECT DeviceObject,
  78. IN PIRP Irp,
  79. IN PIO_STACK_LOCATION IrpStack
  80. );
  81. NTSTATUS
  82. ACPIIoctlUnRegisterOpRegionHandler(
  83. IN PDEVICE_OBJECT DeviceObject,
  84. IN PIRP Irp,
  85. IN PIO_STACK_LOCATION IrpStack
  86. );
  87. NTSTATUS
  88. ACPIIrpDispatchDeviceControl(
  89. IN PDEVICE_OBJECT DeviceObject,
  90. IN PIRP Irp
  91. );
  92. #endif