ReactOS  0.4.15-dev-5606-gf34e425
power.c File Reference
#include "scsiport.h"
Include dependency graph for power.c:

Go to the source code of this file.

Functions

NTSTATUS NTAPI ScsiPortDispatchPower (_In_ PDEVICE_OBJECT DeviceObject, _Inout_ PIRP Irp)
 

Function Documentation

◆ ScsiPortDispatchPower()

NTSTATUS NTAPI ScsiPortDispatchPower ( _In_ PDEVICE_OBJECT  DeviceObject,
_Inout_ PIRP  Irp 
)

Definition at line 13 of file power.c.

16 {
17  PSCSI_PORT_COMMON_EXTENSION comExt = DeviceObject->DeviceExtension;
18 
19  if (comExt->IsFDO)
20  {
23  return PoCallDriver(comExt->LowerDevice, Irp);
24  }
25  else
26  {
28  switch (ioStack->MinorFunction)
29  {
30  case IRP_MN_SET_POWER:
31  case IRP_MN_QUERY_POWER:
32  Irp->IoStatus.Status = STATUS_SUCCESS;
33  break;
34  }
35 
36  NTSTATUS status = Irp->IoStatus.Status;
39  return status;
40  }
41 }
#define IRP_MN_QUERY_POWER
PDEVICE_OBJECT LowerDevice
Definition: scsiport.h:139
LONG NTSTATUS
Definition: precomp.h:26
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_In_ PIRP Irp
Definition: csq.h:116
#define IoCompleteRequest
Definition: irp.c:1240
#define IRP_MN_SET_POWER
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2793
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:746
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
#define IO_NO_INCREMENT
Definition: iotypes.h:598
#define STATUS_SUCCESS
Definition: shellext.h:65
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97