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.

98 lines
2.4 KiB

  1. /***************************************************************************
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. USBSERPW.H
  5. Abstract:
  6. Header file for Power Management
  7. Environment:
  8. kernel mode only
  9. Notes:
  10. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  11. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  13. PURPOSE.
  14. Copyright (c) 1998 Microsoft Corporation. All Rights Reserved.
  15. Revision History:
  16. 10/29/98 : created
  17. Authors:
  18. Tom Green
  19. ****************************************************************************/
  20. #ifndef __USBSERPW_H__
  21. #define __USBSERPW_H__
  22. NTSTATUS
  23. UsbSer_ProcessPowerIrp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
  24. NTSTATUS
  25. UsbSer_PoRequestCompletion(IN PDEVICE_OBJECT DeviceObject, IN UCHAR MinorFunction,
  26. IN POWER_STATE PowerState, IN PVOID Context, IN PIO_STATUS_BLOCK IoStatus);
  27. NTSTATUS
  28. UsbSer_PowerIrp_Complete(IN PDEVICE_OBJECT NullDeviceObject, IN PIRP Irp, IN PVOID Context);
  29. NTSTATUS
  30. UsbSer_SelfSuspendOrActivate(IN PDEVICE_OBJECT DeviceObject, IN BOOLEAN Suspend);
  31. NTSTATUS
  32. UsbSer_SelfRequestPowerIrp(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE PowerState);
  33. NTSTATUS
  34. UsbSer_PoSelfRequestCompletion(IN PDEVICE_OBJECT DeviceObject, IN UCHAR MinorFunction, IN POWER_STATE PowerState,
  35. IN PVOID Context, IN PIO_STATUS_BLOCK IoStatus);
  36. BOOLEAN
  37. UsbSer_SetDevicePowerState(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_POWER_STATE DeviceState);
  38. NTSTATUS
  39. UsbSerQueryCapabilities(IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_CAPABILITIES DeviceCapabilities);
  40. NTSTATUS
  41. UsbSerIrpCompletionRoutine(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context);
  42. NTSTATUS
  43. UsbSerWaitWakeIrpCompletionRoutine(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context);
  44. NTSTATUS
  45. UsbSerSendWaitWake(PDEVICE_EXTENSION DeviceExtension);
  46. VOID
  47. UsbSerFdoIdleNotificationCallback(IN PDEVICE_EXTENSION DevExt);
  48. NTSTATUS
  49. UsbSerFdoIdleNotificationRequestComplete(
  50. PDEVICE_OBJECT DeviceObject,
  51. PIRP Irp,
  52. PDEVICE_EXTENSION DevExt
  53. );
  54. NTSTATUS
  55. UsbSerFdoSubmitIdleRequestIrp(IN PDEVICE_EXTENSION DevExt);
  56. VOID
  57. UsbSerFdoRequestWake(IN PDEVICE_EXTENSION DevExt);
  58. #endif // __USBSERPW_H__