ReactOS 0.4.16-dev-336-gb667d82
power.c File Reference
#include "pciidex.h"
#include <debug.h>
Include dependency graph for power.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static NTSTATUS PciIdeXPdoDispatchPower (_In_ PPDO_DEVICE_EXTENSION PdoExtension, _In_ PIRP Irp)
 
static NTSTATUS PciIdeXFdoDispatchPower (_In_ PFDO_DEVICE_EXTENSION FdoExtension, _In_ PIRP Irp)
 
NTSTATUS NTAPI PciIdeXDispatchPower (_In_ PDEVICE_OBJECT DeviceObject, _Inout_ PIRP Irp)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 10 of file power.c.

Function Documentation

◆ PciIdeXDispatchPower()

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

Definition at line 56 of file power.c.

59{
60 PVOID DeviceExtension = DeviceObject->DeviceExtension;
61
62 if (IS_FDO(DeviceExtension))
63 return PciIdeXFdoDispatchPower(DeviceExtension, Irp);
64 else
65 return PciIdeXPdoDispatchPower(DeviceExtension, Irp);
66}
_In_ PIRP Irp
Definition: csq.h:116
static NTSTATUS PciIdeXFdoDispatchPower(_In_ PFDO_DEVICE_EXTENSION FdoExtension, _In_ PIRP Irp)
Definition: power.c:45
static NTSTATUS PciIdeXPdoDispatchPower(_In_ PPDO_DEVICE_EXTENSION PdoExtension, _In_ PIRP Irp)
Definition: power.c:15
#define IS_FDO(p)
Definition: pciidex.h:21
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055

Referenced by PciIdeXInitialize().

◆ PciIdeXFdoDispatchPower()

static NTSTATUS PciIdeXFdoDispatchPower ( _In_ PFDO_DEVICE_EXTENSION  FdoExtension,
_In_ PIRP  Irp 
)
static

Definition at line 45 of file power.c.

48{
51 return PoCallDriver(FdoExtension->Ldo, Irp);
52}
@ FdoExtension
Definition: precomp.h:48
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:758

Referenced by PciIdeXDispatchPower().

◆ PciIdeXPdoDispatchPower()

static NTSTATUS PciIdeXPdoDispatchPower ( _In_ PPDO_DEVICE_EXTENSION  PdoExtension,
_In_ PIRP  Irp 
)
static

Definition at line 15 of file power.c.

18{
20 PIO_STACK_LOCATION IoStack;
21
23
25 switch (IoStack->MinorFunction)
26 {
30 Irp->IoStatus.Status = Status;
31 break;
32
33 default:
34 Status = Irp->IoStatus.Status;
35 break;
36 }
37
40 return Status;
41}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
LONG NTSTATUS
Definition: precomp.h:26
@ PdoExtension
Definition: precomp.h:49
Status
Definition: gdiplustypes.h:25
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define IoCompleteRequest
Definition: irp.c:1240
#define STATUS_SUCCESS
Definition: shellext.h:65
#define IO_NO_INCREMENT
Definition: iotypes.h:598
#define IRP_MN_SET_POWER
#define IRP_MN_QUERY_POWER

Referenced by PciIdeXDispatchPower().