Source code of Windows XP (NT5)
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.

53 lines
999 B

  1. /*++
  2. Copyright (C) Microsoft Corporation, 2000
  3. Module Name:
  4. power.c
  5. Abstract:
  6. This file contains the routines for power support
  7. Environment:
  8. Kernel mode only
  9. Revision History:
  10. --*/
  11. #include "port.h"
  12. NTSTATUS
  13. iScsiPortPower(
  14. IN PDEVICE_OBJECT DeviceObject,
  15. IN OUT PIRP Irp
  16. )
  17. {
  18. PIO_STACK_LOCATION irpStack = IoGetCurrentIrpStackLocation(Irp);
  19. PCOMMON_EXTENSION commonExtension = DeviceObject->DeviceExtension;
  20. NTSTATUS status;
  21. DebugPrint((1, "iScsiPortPower : DeviceObject %x, Irp %x\n",
  22. DeviceObject, Irp));
  23. switch (irpStack->MinorFunction) {
  24. case IRP_MN_SET_POWER: {
  25. Irp->IoStatus.Status = STATUS_SUCCESS;
  26. break;
  27. }
  28. default: {
  29. Irp->IoStatus.Status = STATUS_SUCCESS;
  30. break;
  31. }
  32. }
  33. PoStartNextPowerIrp(Irp);
  34. IoSkipCurrentIrpStackLocation(Irp);
  35. return PoCallDriver(commonExtension->LowerDeviceObject,
  36. Irp);
  37. }