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.

113 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. bulkdev.h
  5. Abstract:
  6. Environment:
  7. Kernel mode
  8. Notes:
  9. Copyright (c) 2000 Microsoft Corporation.
  10. All Rights Reserved.
  11. --*/
  12. #ifndef _BULKUSB_DEV_H
  13. #define _BULKUSB_DEV_H
  14. NTSTATUS
  15. BulkUsb_DispatchCreate(
  16. IN PDEVICE_OBJECT DeviceObject,
  17. IN PIRP Irp
  18. );
  19. NTSTATUS
  20. BulkUsb_DispatchClose(
  21. IN PDEVICE_OBJECT DeviceObject,
  22. IN PIRP Irp
  23. );
  24. NTSTATUS
  25. BulkUsb_DispatchDevCtrl(
  26. IN PDEVICE_OBJECT DeviceObject,
  27. IN PIRP Irp
  28. );
  29. NTSTATUS
  30. BulkUsb_ResetPipe(
  31. IN PDEVICE_OBJECT DeviceObject,
  32. IN PUSBD_PIPE_INFORMATION PipeInfo
  33. );
  34. NTSTATUS
  35. BulkUsb_ResetDevice(
  36. IN PDEVICE_OBJECT DeviceObject
  37. );
  38. NTSTATUS
  39. BulkUsb_GetPortStatus(
  40. IN PDEVICE_OBJECT DeviceObject,
  41. IN PULONG PortStatus
  42. );
  43. NTSTATUS
  44. BulkUsb_ResetParentPort(
  45. IN IN PDEVICE_OBJECT DeviceObject
  46. );
  47. NTSTATUS
  48. SubmitIdleRequestIrp(
  49. IN PDEVICE_EXTENSION DeviceExtension
  50. );
  51. VOID
  52. IdleNotificationCallback(
  53. IN PDEVICE_EXTENSION DeviceExtension
  54. );
  55. NTSTATUS
  56. IdleNotificationRequestComplete(
  57. IN PDEVICE_OBJECT DeviceObject,
  58. IN PIRP Irp,
  59. IN PDEVICE_EXTENSION DeviceExtension
  60. );
  61. VOID
  62. CancelSelectSuspend(
  63. IN PDEVICE_EXTENSION DeviceExtension
  64. );
  65. VOID
  66. PoIrpCompletionFunc(
  67. IN PDEVICE_OBJECT DeviceObject,
  68. IN UCHAR MinorFunction,
  69. IN POWER_STATE PowerState,
  70. IN PVOID Context,
  71. IN PIO_STATUS_BLOCK IoStatus
  72. );
  73. VOID
  74. PoIrpAsyncCompletionFunc(
  75. IN PDEVICE_OBJECT DeviceObject,
  76. IN UCHAR MinorFunction,
  77. IN POWER_STATE PowerState,
  78. IN PVOID Context,
  79. IN PIO_STATUS_BLOCK IoStatus
  80. );
  81. VOID
  82. WWIrpCompletionFunc(
  83. IN PDEVICE_OBJECT DeviceObject,
  84. IN UCHAR MinorFunction,
  85. IN POWER_STATE PowerState,
  86. IN PVOID Context,
  87. IN PIO_STATUS_BLOCK IoStatus
  88. );
  89. #endif