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.

194 lines
3.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. bulkpnp.h
  5. Abstract:
  6. Environment:
  7. Kernel mode
  8. Notes:
  9. Copyright (c) 2000 Microsoft Corporation.
  10. All Rights Reserved.
  11. --*/
  12. #ifndef _BULKUSB_PNP_H
  13. #define _BULKUSB_PNP_H
  14. #define REMOTE_WAKEUP_MASK 0x20
  15. NTSTATUS
  16. BulkUsb_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. BulkUsb_GetRegistryDword(
  93. IN PWCHAR RegPath,
  94. IN PWCHAR ValueName,
  95. IN OUT PULONG Value
  96. );
  97. NTSTATUS
  98. BulkUsb_DispatchClean(
  99. IN PDEVICE_OBJECT DeviceObject,
  100. IN PIRP Irp
  101. );
  102. VOID
  103. DpcRoutine(
  104. IN PKDPC Dpc,
  105. IN PVOID DeferredContext,
  106. IN PVOID SystemArgument1,
  107. IN PVOID SystemArgument2
  108. );
  109. VOID
  110. IdleRequestWorkerRoutine(
  111. IN PDEVICE_OBJECT DeviceObject,
  112. IN PVOID Context
  113. );
  114. NTSTATUS
  115. BulkUsb_AbortPipes(
  116. IN PDEVICE_OBJECT DeviceObject
  117. );
  118. NTSTATUS
  119. IrpCompletionRoutine(
  120. IN PDEVICE_OBJECT DeviceObject,
  121. IN PIRP Irp,
  122. IN PVOID Context
  123. );
  124. NTSTATUS
  125. CanStopDevice(
  126. IN PDEVICE_OBJECT DeviceObject,
  127. IN PIRP Irp
  128. );
  129. NTSTATUS
  130. CanRemoveDevice(
  131. IN PDEVICE_OBJECT DeviceObject,
  132. IN PIRP Irp
  133. );
  134. NTSTATUS
  135. ReleaseMemory(
  136. IN PDEVICE_OBJECT DeviceObject
  137. );
  138. LONG
  139. BulkUsb_IoIncrement(
  140. IN OUT PDEVICE_EXTENSION DeviceExtension
  141. );
  142. LONG
  143. BulkUsb_IoDecrement(
  144. IN OUT PDEVICE_EXTENSION DeviceExtension
  145. );
  146. BOOLEAN
  147. CanDeviceSuspend(
  148. IN PDEVICE_EXTENSION DeviceExtension
  149. );
  150. PCHAR
  151. PnPMinorFunctionString (
  152. IN UCHAR MinorFunction
  153. );
  154. #endif