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.

189 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. sSPnP.h
  5. Abstract:
  6. Environment:
  7. Kernel mode
  8. Notes:
  9. Copyright (c) 2000 Microsoft Corporation.
  10. All Rights Reserved.
  11. --*/
  12. #ifndef __PNP_H
  13. #define __PNP_H
  14. #define REMOTE_WAKEUP_MASK 0x20
  15. NTSTATUS
  16. SS_DispatchPnP(
  17. IN PDEVICE_OBJECT DeviceObject,
  18. IN PIRP Irp
  19. );
  20. NTSTATUS
  21. HandleStartDevice(
  22. IN PDEVICE_OBJECT DeviceObject,
  23. IN PIRP Irp
  24. );
  25. NTSTATUS
  26. HandleQueryStopDevice(
  27. IN PDEVICE_OBJECT DeviceObject,
  28. IN PIRP Irp
  29. );
  30. NTSTATUS
  31. HandleQueryRemoveDevice(
  32. IN PDEVICE_OBJECT DeviceObject,
  33. IN PIRP Irp
  34. );
  35. NTSTATUS
  36. HandleCancelRemoveDevice(
  37. IN PDEVICE_OBJECT DeviceObject,
  38. IN PIRP Irp
  39. );
  40. NTSTATUS
  41. HandleSurpriseRemoval(
  42. IN PDEVICE_OBJECT DeviceObject,
  43. IN PIRP Irp
  44. );
  45. NTSTATUS
  46. HandleRemoveDevice(
  47. IN PDEVICE_OBJECT DeviceObject,
  48. IN PIRP Irp
  49. );
  50. NTSTATUS
  51. HandleCancelStopDevice(
  52. IN PDEVICE_OBJECT DeviceObject,
  53. IN PIRP Irp
  54. );
  55. NTSTATUS
  56. HandleStopDevice(
  57. IN PDEVICE_OBJECT DeviceObject,
  58. IN PIRP Irp
  59. );
  60. NTSTATUS
  61. HandleQueryCapabilities(
  62. IN PDEVICE_OBJECT DeviceObject,
  63. IN PIRP Irp
  64. );
  65. NTSTATUS
  66. ReadandSelectDescriptors(
  67. IN PDEVICE_OBJECT DeviceObject
  68. );
  69. NTSTATUS
  70. ConfigureDevice(
  71. IN PDEVICE_OBJECT DeviceObject
  72. );
  73. NTSTATUS
  74. SelectInterfaces(
  75. IN PDEVICE_OBJECT DeviceObject,
  76. IN PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor
  77. );
  78. NTSTATUS
  79. DeconfigureDevice(
  80. IN PDEVICE_OBJECT DeviceObject
  81. );
  82. NTSTATUS
  83. CallUSBD(
  84. IN PDEVICE_OBJECT DeviceObject,
  85. IN PURB Urb
  86. );
  87. VOID
  88. ProcessQueuedRequests(
  89. IN OUT PDEVICE_EXTENSION DeviceExtension
  90. );
  91. NTSTATUS
  92. SS_DispatchClean(
  93. IN PDEVICE_OBJECT DeviceObject,
  94. IN PIRP Irp
  95. );
  96. VOID
  97. DpcRoutine(
  98. IN PKDPC Dpc,
  99. IN PVOID DeferredContext,
  100. IN PVOID SystemArgument1,
  101. IN PVOID SystemArgument2
  102. );
  103. VOID
  104. IdleRequestWorkerRoutine(
  105. IN PDEVICE_OBJECT DeviceObject,
  106. IN PVOID Context
  107. );
  108. NTSTATUS
  109. SS_GetRegistryDword(
  110. IN PWCHAR RegPath,
  111. IN PWCHAR ValueName,
  112. IN OUT PULONG Value
  113. );
  114. NTSTATUS
  115. IrpCompletionRoutine(
  116. IN PDEVICE_OBJECT DeviceObject,
  117. IN PIRP Irp,
  118. IN PVOID Context
  119. );
  120. NTSTATUS
  121. CanStopDevice(
  122. IN PDEVICE_OBJECT DeviceObject,
  123. IN PIRP Irp
  124. );
  125. NTSTATUS
  126. CanRemoveDevice(
  127. IN PDEVICE_OBJECT DeviceObject,
  128. IN PIRP Irp
  129. );
  130. NTSTATUS
  131. ReleaseMemory(
  132. IN PDEVICE_OBJECT DeviceObject
  133. );
  134. LONG
  135. SSIoIncrement(
  136. IN OUT PDEVICE_EXTENSION DeviceExtension
  137. );
  138. LONG
  139. SSIoDecrement(
  140. IN OUT PDEVICE_EXTENSION DeviceExtension
  141. );
  142. BOOLEAN
  143. CanDeviceSuspend(
  144. IN PDEVICE_EXTENSION DeviceExtension
  145. );
  146. PCHAR
  147. PnPMinorFunctionString (
  148. IN UCHAR MinorFunction
  149. );
  150. #endif