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.

92 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: fdopower.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined (___fdopower_h___)
  11. #define ___fdopower_h___
  12. typedef struct _FDO_POWER_CONTEXT *PFDO_POWER_CONTEXT;
  13. //POWER_STATE
  14. NTSTATUS
  15. IdePortIssueSetPowerState (
  16. IN PDEVICE_EXTENSION_HEADER DoExtension,
  17. IN POWER_STATE_TYPE Type,
  18. IN POWER_STATE State,
  19. IN BOOLEAN Sync
  20. );
  21. NTSTATUS
  22. IdePortPowerCompletionRoutine (
  23. IN PDEVICE_OBJECT DeviceObject,
  24. IN PIRP Irp,
  25. IN PVOID Context
  26. );
  27. NTSTATUS
  28. IdePortSetFdoPowerState (
  29. IN PDEVICE_OBJECT DeviceObject,
  30. IN OUT PIRP Irp
  31. );
  32. NTSTATUS
  33. FdoContingentPowerCompletionRoutine (
  34. IN PDEVICE_OBJECT DeviceObject,
  35. IN UCHAR MinorFunction,
  36. IN POWER_STATE PowerState,
  37. IN PVOID Context,
  38. IN PIO_STATUS_BLOCK IoStatus
  39. );
  40. NTSTATUS
  41. FdoPowerCompletionRoutine (
  42. IN PDEVICE_OBJECT DeviceObject,
  43. IN PIRP Irp,
  44. IN PVOID Context
  45. );
  46. VOID
  47. FdoChildReportPowerDown (
  48. IN PFDO_EXTENSION FdoExtension,
  49. IN PPDO_EXTENSION PdoExtension
  50. );
  51. NTSTATUS
  52. FdoChildRequestPowerUp (
  53. IN PFDO_EXTENSION FdoExtension,
  54. IN PPDO_EXTENSION PdoExtension,
  55. IN PVOID Context
  56. );
  57. NTSTATUS
  58. FdoChildRequestPowerUpCompletionRoutine (
  59. IN PDEVICE_OBJECT DeviceObject,
  60. IN UCHAR MinorFunction,
  61. IN POWER_STATE PowerState,
  62. IN PVOID Context,
  63. IN PIO_STATUS_BLOCK IoStatus
  64. );
  65. NTSTATUS
  66. ChannelQueryPowerState (
  67. IN PDEVICE_OBJECT DeviceObject,
  68. IN OUT PIRP Irp
  69. );
  70. NTSTATUS
  71. FdoSystemPowerUpCompletionRoutine (
  72. IN PDEVICE_OBJECT DeviceObject,
  73. IN UCHAR MinorFunction,
  74. IN POWER_STATE PowerState,
  75. IN PVOID Context,
  76. IN PIO_STATUS_BLOCK IoStatus
  77. );
  78. #endif // ___fdopower_h___