ReactOS 0.4.15-dev-7942-gd23573b
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 {
32 Irp->IoStatus.Status = STATUS_SUCCESS;
33 break;
34 }
35
36 NTSTATUS status = Irp->IoStatus.Status;
39 return status;
40 }
41}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
LONG NTSTATUS
Definition: precomp.h:26
_In_ PIRP Irp
Definition: csq.h:116
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
#define IoCompleteRequest
Definition: irp.c:1240
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:758
#define STATUS_SUCCESS
Definition: shellext.h:65
PDEVICE_OBJECT LowerDevice
Definition: scsiport.h:139
Definition: ps.c:97
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
#define IO_NO_INCREMENT
Definition: iotypes.h:598
#define IRP_MN_SET_POWER
#define IRP_MN_QUERY_POWER