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.

73 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. wake.h
  5. Abstract:
  6. External definitions for intermodule functions.
  7. Revision History:
  8. --*/
  9. #ifndef _SDBUS_WAKE_H_
  10. #define _SDBUS_WAKE_H_
  11. //
  12. // Wait-Wake states
  13. //
  14. typedef enum {
  15. WAKESTATE_DISARMED,
  16. WAKESTATE_WAITING,
  17. WAKESTATE_WAITING_CANCELLED,
  18. WAKESTATE_ARMED,
  19. WAKESTATE_ARMING_CANCELLED,
  20. WAKESTATE_COMPLETING
  21. } WAKESTATE;
  22. //
  23. // Device Wake
  24. //
  25. NTSTATUS
  26. SdbusFdoWaitWake(
  27. IN PDEVICE_OBJECT Fdo,
  28. IN PIRP Irp
  29. );
  30. NTSTATUS
  31. SdbusPdoWaitWake(
  32. IN PDEVICE_OBJECT Pdo,
  33. IN PIRP Irp,
  34. OUT BOOLEAN *CompleteIrp
  35. );
  36. NTSTATUS
  37. SdbusFdoArmForWake(
  38. IN PFDO_EXTENSION FdoExtension
  39. );
  40. NTSTATUS
  41. SdbusFdoDisarmWake(
  42. IN PFDO_EXTENSION FdoExtension
  43. );
  44. NTSTATUS
  45. SdbusPdoWaitWakeCompletion(
  46. IN PDEVICE_OBJECT Pdo,
  47. IN PIRP Irp,
  48. IN PPDO_EXTENSION PdoExtension
  49. );
  50. NTSTATUS
  51. SdbusFdoCheckForIdle(
  52. IN PFDO_EXTENSION FdoExtension
  53. );
  54. #endif // _SDBUS_WAKE_H_