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.

168 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. acpidock.h
  5. Abstract:
  6. This module handles docking issues for ACPI.
  7. Author:
  8. Adrian J. Oney (AdriaO)
  9. Environment:
  10. Kernel mode only.
  11. Revision History:
  12. 20-Jan-98 Initial Revision
  13. --*/
  14. #ifndef _ACPIDOCK_H_
  15. #define _ACPIDOCK_H_
  16. NTSTATUS
  17. ACPIDockBuildDockPdo(
  18. IN PDRIVER_OBJECT DriverObject,
  19. IN PDEVICE_EXTENSION DeviceExtension,
  20. IN PDEVICE_OBJECT ParentPdoObject
  21. );
  22. PDEVICE_EXTENSION
  23. ACPIDockFindCorrespondingDock(
  24. IN PDEVICE_EXTENSION DeviceExtension
  25. );
  26. NTSTATUS
  27. ACPIDockGetDockObject(
  28. IN PNSOBJ AcpiObject,
  29. OUT PNSOBJ *dckObject
  30. );
  31. NTSTATUS
  32. ACPIDockIrpEject(
  33. IN PDEVICE_OBJECT DeviceObject,
  34. IN PIRP Irp
  35. );
  36. NTSTATUS
  37. ACPIDockIrpQueryCapabilities(
  38. IN PDEVICE_OBJECT DeviceObject,
  39. IN PIRP Irp
  40. );
  41. NTSTATUS
  42. ACPIDockIrpQueryDeviceRelations(
  43. IN PDEVICE_OBJECT DeviceObject,
  44. IN PIRP Irp
  45. );
  46. NTSTATUS
  47. ACPIDockIrpQueryEjectRelations(
  48. IN PDEVICE_OBJECT DeviceObject,
  49. IN PIRP Irp,
  50. IN OUT PDEVICE_RELATIONS *PdeviceRelations
  51. );
  52. NTSTATUS
  53. ACPIDockIrpQueryInterface(
  54. IN PDEVICE_OBJECT DeviceObject,
  55. IN PIRP Irp
  56. );
  57. NTSTATUS
  58. ACPIDockIrpQueryID(
  59. IN PDEVICE_OBJECT DeviceObject,
  60. IN PIRP Irp
  61. );
  62. NTSTATUS
  63. ACPIDockIrpQueryPnpDeviceState(
  64. IN PDEVICE_OBJECT DeviceObject,
  65. IN PIRP Irp
  66. );
  67. NTSTATUS
  68. ACPIDockIrpQueryPower(
  69. IN PDEVICE_OBJECT DeviceObject,
  70. IN PIRP Irp
  71. );
  72. NTSTATUS
  73. ACPIDockIrpRemoveDevice(
  74. IN PDEVICE_OBJECT DeviceObject,
  75. IN PIRP Irp
  76. );
  77. NTSTATUS
  78. ACPIDockIrpSetLock(
  79. IN PDEVICE_OBJECT DeviceObject,
  80. IN PIRP Irp
  81. );
  82. NTSTATUS
  83. ACPIDockIrpSetDevicePower(
  84. IN PDEVICE_OBJECT DeviceObject,
  85. IN PIRP Irp
  86. );
  87. NTSTATUS
  88. ACPIDockIrpSetPower(
  89. IN PDEVICE_OBJECT DeviceObject,
  90. IN PIRP Irp
  91. );
  92. NTSTATUS
  93. ACPIDockIrpSetSystemPower(
  94. IN PDEVICE_OBJECT DeviceObject,
  95. IN PIRP Irp
  96. );
  97. NTSTATUS
  98. ACPIDockIrpSetSystemPowerComplete(
  99. IN PDEVICE_OBJECT DeviceObject,
  100. IN UCHAR MinorFunction,
  101. IN POWER_STATE PowerState,
  102. IN PVOID Context,
  103. IN PIO_STATUS_BLOCK IoStatus
  104. );
  105. NTSTATUS
  106. ACPIDockIrpStartDevice(
  107. IN PDEVICE_OBJECT DeviceObject,
  108. IN PIRP Irp
  109. );
  110. BOOLEAN
  111. ACPIDockIsDockDevice(
  112. IN PNSOBJ AcpiObject
  113. );
  114. VOID
  115. ACPIDockIntfReference(
  116. IN PVOID Context
  117. );
  118. VOID
  119. ACPIDockIntfDereference(
  120. IN PVOID Context
  121. );
  122. NTSTATUS
  123. ACPIDockIntfSetMode(
  124. IN PVOID Context,
  125. IN PROFILE_DEPARTURE_STYLE Style
  126. );
  127. NTSTATUS
  128. ACPIDockIntfUpdateDeparture(
  129. IN PVOID Context
  130. );
  131. #endif // _ACPIDOCK_H_