ReactOS 0.4.16-dev-1946-g52006dd
pnppriv.hpp File Reference
#include "shared/irphandlers/irphandlerspriv.hpp"
#include "wdfdevice.h"
#include "wdfchildlist.h"
#include "wdfpdo.h"
#include "wdffdo.h"
#include "wdfqueryinterface.h"
#include "wdfmemory.h"
#include "wdfwmi.h"
#include "wdfinterrupt.h"
#include "wdfrequest.h"
#include "wdfio.h"
#include "fxwaitlock.hpp"
#include "fxtransactionedlist.hpp"
#include "fxrelateddevicelist.hpp"
#include "fxcollection.hpp"
#include "stringutil.hpp"
#include "fxstring.hpp"
#include "fxdevicetext.hpp"
#include "fxcallback.hpp"
#include "fxsystemthread.hpp"
#include "fxresource.hpp"
#include "fxpkgioshared.hpp"
#include "fxdeviceinitshared.hpp"
#include "fxchildlist.hpp"
#include "fxdevicetomxinterface.hpp"
#include "fxspinlock.hpp"
#include "fxtelemetry.hpp"
#include "fxrelateddevice.hpp"
#include "fxdeviceinterface.hpp"
#include "fxqueryinterface.hpp"
#include "fxpnpcallbacks.hpp"
#include "fxpackage.hpp"
#include "fxpkgpnp.hpp"
#include "fxwatchdog.hpp"
#include "fxpkgpdo.hpp"
#include "fxpkgfdo.hpp"
#include "fxwmiirphandler.hpp"
#include "fxwmiprovider.hpp"
#include "fxwmiinstance.hpp"
Include dependency graph for pnppriv.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7
 
struct  _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9
 
struct  _WDF_PDO_EVENT_CALLBACKS_V1_9
 
struct  _WDF_INTERRUPT_INFO_V1_7
 

Macros

#define FX_IS_USER_MODE   (TRUE)
 
#define FX_IS_KERNEL_MODE   (FALSE)
 
#define SET_TRI_STATE_FROM_STATE_BITS(state, S, FieldName)
 
#define GET_PNP_STATE_BITS_FROM_STRUCT(S, FieldName)
 
#define GET_PNP_CAP_BITS_FROM_STRUCT(S, FieldName)
 
#define GET_POWER_CAP_BITS_FROM_STRUCT(S, FieldName)
 
#define SET_PNP_DEVICE_STATE_BIT(State, ExternalState, value, Name)
 
#define SET_PNP_CAP_IF_TRUE(caps, pCaps, FieldName)
 
#define SET_PNP_CAP_IF_FALSE(caps, pCaps, FieldName)
 
#define SET_PNP_CAP(caps, pCaps, FieldName)
 
#define SET_POWER_CAP(caps, pCaps, FieldName)
 

Typedefs

typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7 WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7
 
typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7
 
typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9 WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9
 
typedef struct _WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9
 
typedef struct _WDF_PDO_EVENT_CALLBACKS_V1_9 WDF_PDO_EVENT_CALLBACKS_V1_9
 
typedef struct _WDF_PDO_EVENT_CALLBACKS_V1_9PWDF_PDO_EVENT_CALLBACKS_V1_9
 
typedef struct _WDF_INTERRUPT_INFO_V1_7 WDF_INTERRUPT_INFO_V1_7
 
typedef struct _WDF_INTERRUPT_INFO_V1_7PWDF_INTERRUPT_INFO_V1_7
 
typedef const struct _WDF_INTERRUPT_INFO_V1_7PCWDF_INTERRUPT_INFO_V1_7
 

Functions

VOID PnpPassThroughQIWorker (__in MxDeviceObject *Device, __inout FxIrp *Irp, __inout FxIrp *ForwardIrp)
 
VOID CopyQueryInterfaceToIrpStack (__in PPOWER_THREAD_INTERFACE PowerThreadInterface, __in FxIrp *Irp)
 
_Must_inspect_result_ NTSTATUS NTAPI SendDeviceUsageNotification (__in MxDeviceObject *RelatedDevice, __in FxIrp *RelatedIrp, __in MxWorkItem *Workitem, __in FxIrp *OriginalIrp, __in BOOLEAN Revert)
 
_Must_inspect_result_ NTSTATUS NTAPI GetStackCapabilities (__in PFX_DRIVER_GLOBALS DriverGlobals, __in MxDeviceObject *DeviceInStack, __in_opt PD3COLD_SUPPORT_INTERFACE D3ColdInterface, __out PSTACK_DEVICE_CAPABILITIES Capabilities)
 
VOID NTAPI SetD3ColdSupport (__in PFX_DRIVER_GLOBALS DriverGlobals, __in MxDeviceObject *DeviceInStack, __in PD3COLD_SUPPORT_INTERFACE D3ColdInterface, __in BOOLEAN UseD3Cold)
 
LONG __inline FxGetValueBits (__in WDF_TRI_STATE State, __in LONG TrueValue, __in LONG UseDefaultValue)
 
__inline VOID FxSetPnpDeviceStateBit (__in PNP_DEVICE_STATE *PnpDeviceState, __in LONG ExternalState, __in LONG InternalState, __in LONG BitMask, __in LONG TrueValue)
 
_Must_inspect_result_ PVOID GetIoMgrObjectForWorkItemAllocation (VOID)
 

Macro Definition Documentation

◆ FX_IS_KERNEL_MODE

#define FX_IS_KERNEL_MODE   (FALSE)

Definition at line 32 of file pnppriv.hpp.

◆ FX_IS_USER_MODE

#define FX_IS_USER_MODE   (TRUE)

Definition at line 31 of file pnppriv.hpp.

◆ GET_PNP_CAP_BITS_FROM_STRUCT

#define GET_PNP_CAP_BITS_FROM_STRUCT (   S,
  FieldName 
)
Value:
FxGetValueBits(S->FieldName, \
FxPnpCap##FieldName##True, \
FxPnpCap##FieldName##UseDefault)
#define True
Definition: types.h:24
LONG __inline FxGetValueBits(__in WDF_TRI_STATE State, __in LONG TrueValue, __in LONG UseDefaultValue)
Definition: pnppriv.hpp:210
Definition: movable.cpp:9

Definition at line 229 of file pnppriv.hpp.

◆ GET_PNP_STATE_BITS_FROM_STRUCT

#define GET_PNP_STATE_BITS_FROM_STRUCT (   S,
  FieldName 
)
Value:
FxGetValueBits(S->FieldName, \
FxPnpState##FieldName##True, \
FxPnpState##FieldName##UseDefault)

Definition at line 224 of file pnppriv.hpp.

◆ GET_POWER_CAP_BITS_FROM_STRUCT

#define GET_POWER_CAP_BITS_FROM_STRUCT (   S,
  FieldName 
)
Value:
FxGetValueBits(S->FieldName, \
FxPowerCap##FieldName##True, \
FxPowerCap##FieldName##UseDefault)

Definition at line 234 of file pnppriv.hpp.

◆ SET_PNP_CAP

#define SET_PNP_CAP (   caps,
  pCaps,
  FieldName 
)
Value:
{ \
if ((caps & FxPnpCap##FieldName##Mask) == FxPnpCap##FieldName##False) { \
pCaps->FieldName = FALSE; \
} \
else if ((caps & FxPnpCap##FieldName##Mask) == FxPnpCap##FieldName##True) { \
pCaps->FieldName = TRUE; \
} \
}
#define False
Definition: types.h:25
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned int Mask
Definition: fpcontrol.c:82

Definition at line 282 of file pnppriv.hpp.

◆ SET_PNP_CAP_IF_FALSE

#define SET_PNP_CAP_IF_FALSE (   caps,
  pCaps,
  FieldName 
)
Value:
{ \
if ((caps & FxPnpCap##FieldName##Mask) == FxPnpCap##FieldName##False) { \
pCaps->FieldName = FALSE; \
} \
}

Definition at line 275 of file pnppriv.hpp.

◆ SET_PNP_CAP_IF_TRUE

#define SET_PNP_CAP_IF_TRUE (   caps,
  pCaps,
  FieldName 
)
Value:
{ \
if ((caps & FxPnpCap##FieldName##Mask) == FxPnpCap##FieldName##True) { \
pCaps->FieldName = TRUE; \
} \
}

Definition at line 268 of file pnppriv.hpp.

◆ SET_PNP_DEVICE_STATE_BIT

#define SET_PNP_DEVICE_STATE_BIT (   State,
  ExternalState,
  value,
  Name 
)
Value:
ExternalState, \
state, \
FxPnpState##Name##Mask, \
FxPnpState##Name##True)
static int state
Definition: maze.c:121
LPWSTR Name
Definition: desk.c:124
__inline VOID FxSetPnpDeviceStateBit(__in PNP_DEVICE_STATE *PnpDeviceState, __in LONG ExternalState, __in LONG InternalState, __in LONG BitMask, __in LONG TrueValue)
Definition: pnppriv.hpp:241

Definition at line 261 of file pnppriv.hpp.

◆ SET_POWER_CAP

#define SET_POWER_CAP (   caps,
  pCaps,
  FieldName 
)
Value:
{ \
if ((caps & FxPowerCap##FieldName##Mask) == FxPowerCap##FieldName##False) { \
pCaps->FieldName = FALSE; \
} \
else if ((caps & FxPowerCap##FieldName##Mask) == FxPowerCap##FieldName##True) { \
pCaps->FieldName = TRUE; \
} \
}

Definition at line 292 of file pnppriv.hpp.

◆ SET_TRI_STATE_FROM_STATE_BITS

#define SET_TRI_STATE_FROM_STATE_BITS (   state,
  S,
  FieldName 
)
Value:
{ \
switch (state & (FxPnpState##FieldName##Mask)) { \
case FxPnpState##FieldName##False : \
S->FieldName = WdfFalse; \
break; \
case FxPnpState##FieldName##True: \
S->FieldName = WdfTrue; \
break; \
case FxPnpState##FieldName##UseDefault : \
default: \
S->FieldName = WdfUseDefault; \
break; \
} \
}
@ WdfTrue
Definition: wdftypes.h:88
@ WdfUseDefault
Definition: wdftypes.h:89
@ WdfFalse
Definition: wdftypes.h:87

Definition at line 192 of file pnppriv.hpp.

Typedef Documentation

◆ PCWDF_INTERRUPT_INFO_V1_7

◆ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7

◆ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9

◆ PWDF_INTERRUPT_INFO_V1_7

◆ PWDF_PDO_EVENT_CALLBACKS_V1_9

◆ WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_7

◆ WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS_V1_9

◆ WDF_INTERRUPT_INFO_V1_7

◆ WDF_PDO_EVENT_CALLBACKS_V1_9

Function Documentation

◆ CopyQueryInterfaceToIrpStack()

VOID CopyQueryInterfaceToIrpStack ( __in PPOWER_THREAD_INTERFACE  PowerThreadInterface,
__in FxIrp Irp 
)

Definition at line 32 of file supportkm.cpp.

36{
38
39 stack = Irp->GetCurrentIrpStackLocation();
40
41 RtlCopyMemory(stack->Parameters.QueryInterface.Interface,
42 PowerThreadInterface,
43 PowerThreadInterface->Interface.Size);
44}
_In_ PIRP Irp
Definition: csq.h:116
Definition: format.c:80
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263

Referenced by FxPkgPnp::HandleQueryInterfaceForPowerThread().

◆ FxGetValueBits()

LONG __inline FxGetValueBits ( __in WDF_TRI_STATE  State,
__in LONG  TrueValue,
__in LONG  UseDefaultValue 
)

Definition at line 210 of file pnppriv.hpp.

215{
216 switch (State) {
217 case WdfFalse: return 0x0;
218 case WdfTrue: return TrueValue;
219 case WdfUseDefault:
220 default: return UseDefaultValue;
221 }
222}

◆ FxSetPnpDeviceStateBit()

__inline VOID FxSetPnpDeviceStateBit ( __in PNP_DEVICE_STATE PnpDeviceState,
__in LONG  ExternalState,
__in LONG  InternalState,
__in LONG  BitMask,
__in LONG  TrueValue 
)

Definition at line 241 of file pnppriv.hpp.

248{
249 LONG bits;
250
251 bits = InternalState & BitMask;
252
253 if (bits == TrueValue) {
254 *PnpDeviceState |= ExternalState;
255 }
256 else if (bits == 0) { // 0 is the always false for every bit-set
257 *PnpDeviceState &= ~ExternalState;
258 }
259}
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:10929
#define bits
Definition: infblock.c:15
long LONG
Definition: pedump.c:60

◆ GetIoMgrObjectForWorkItemAllocation()

_Must_inspect_result_ PVOID GetIoMgrObjectForWorkItemAllocation ( VOID  )

Definition at line 98 of file supportum.cpp.

111{
112 //
113 // In user-mode we don't need an IO manager object for work item allocation
114 // so we return NULL.
115 //
116 return NULL;
117}
#define NULL
Definition: types.h:112

Referenced by FxWorkItemEventQueue::Init().

◆ GetStackCapabilities()

_Must_inspect_result_ NTSTATUS NTAPI GetStackCapabilities ( __in PFX_DRIVER_GLOBALS  DriverGlobals,
__in MxDeviceObject DeviceInStack,
__in_opt PD3COLD_SUPPORT_INTERFACE  D3ColdInterface,
__out PSTACK_DEVICE_CAPABILITIES  Capabilities 
)

Definition at line 49 of file supportkm.cpp.

55{
56 ULONG i;
59
61
63
64 //
65 // Normally this would be assigned to a local variable on the stack. Since
66 // query caps iteratively moves down the device's tree until it hits the
67 // root. As such, stack usage is consumed quickly. While this is only one
68 // pointer value we are saving, it does eventually add up on very deep stacks.
69 //
70 DeviceInStack->SetObject(DeviceInStack->GetAttachedDeviceReference());
71 if (DeviceInStack->GetObject() == NULL) {
72 goto Done;
73 }
74
75 irp.SetIrp(FxIrp::AllocateIrp(DeviceInStack->GetStackSize()));
76 if (irp.GetIrp() == NULL) {
77 goto Done;
78 }
79
80 //
81 // Initialize device capabilities.
82 //
84 Capabilities->DeviceCaps.Size = sizeof(DEVICE_CAPABILITIES);
85 Capabilities->DeviceCaps.Version = 1;
86 Capabilities->DeviceCaps.Address = (ULONG) -1;
87 Capabilities->DeviceCaps.UINumber = (ULONG) -1;
88
89 //
90 // Initialize the Irp.
91 //
93
98
99 status = irp.SendIrpSynchronously(DeviceInStack->GetObject());
100
101 if (!NT_SUCCESS(status)) {
103 DriverGlobals, TRACE_LEVEL_ERROR, TRACINGPNP,
104 "Failed to get DEVICE_CAPABILITIES from !devobj %p, %!STATUS!",
105 DeviceInStack->GetObject(), status);
106 goto Done;
107 }
108
109 //
110 // Invoke the D3cold support interface. If present, it will tell
111 // us specifically which D-states will work for generating wake signals
112 // from specific S-states.
113 //
114 // Earlier versions of WDF didn't make this query, so for compatibility,
115 // we only make it now if the driver was built against WDF 1.11 or
116 // later. In truth, this just shifts the failure from initialization
117 // time to run time, because the information that we're presumably
118 // getting from the BIOS with this interrogation is saying that the
119 // code in earlier verisions of WDF would have blindly enabled a device
120 // for wake which simply wasn't capable of generating its wake signal
121 // from the chosen D-state. Thus the device would have been put into
122 // a low power state and then failed to resume in response to its wake
123 // signal.
124 //
125
126 for (i = 0; i <= PowerSystemHibernate; i++) {
127 Capabilities->DeepestWakeableDstate[i] = DeviceWakeDepthMaximum;
128 }
129
130 if (ARGUMENT_PRESENT(D3ColdInterface) &&
131 (D3ColdInterface->GetIdleWakeInfo != NULL) &&
132 DriverGlobals->IsVersionGreaterThanOrEqualTo(1,11)) {
133
134 DEVICE_WAKE_DEPTH deepestWakeableDstate;
135
137
138 //
139 // Failure from D3ColdInterface->GetIdleWakeInfo just means that
140 // the bus drivers didn't have any information beyond what can
141 // gleaned from the older Query-Capabilities code path.
142 //
143 // In specific ACPI terms, ACPI will respond to this function with
144 // success whenever there is an _SxW object (where x is the sleep
145 // state, a value from 0 to 4.)
146 //
147 // PCI will respond to this interface if ACPI doesn't override its
148 // answer and if a parent bus is capable of leaving D0 in S0, and
149 // if the PCI device has
150 status = D3ColdInterface->GetIdleWakeInfo(
151 D3ColdInterface->Context,
153 &deepestWakeableDstate
154 );
155
156 if (NT_SUCCESS(status)) {
157 Capabilities->DeepestWakeableDstate[i] = deepestWakeableDstate;
158 }
159 }
160 }
161
163
164Done:
165 if (DeviceInStack->GetObject() != NULL) {
166 DeviceInStack->DereferenceObject();
167 }
168
169 return status;
170}
LONG NTSTATUS
Definition: precomp.h:26
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
CHECK_RETURN_IF_USER_MODE NTSTATUS SendIrpSynchronously(__in MdDeviceObject DeviceObject)
Definition: fxirpum.cpp:151
VOID SetMinorFunction(__in UCHAR MinorFunction)
Definition: fxirpum.cpp:967
static _Must_inspect_result_ MdIrp AllocateIrp(_In_ CCHAR StackSize, _In_opt_ FxDevice *Device=NULL)
Definition: fxirpum.cpp:1089
VOID ClearNextStack(VOID)
Definition: fxirpum.cpp:1183
VOID SetMajorFunction(__in UCHAR MajorFunction)
Definition: fxirpum.cpp:905
VOID SetStatus(__in NTSTATUS Status)
Definition: fxirpum.cpp:457
MdIrp GetIrp(VOID)
Definition: fxirpum.cpp:15
MdIrp SetIrp(MdIrp irp)
Definition: fxirpkm.hpp:71
VOID SetParameterDeviceCapabilities(__in PDEVICE_CAPABILITIES DeviceCapabilities)
Definition: fxirpum.cpp:1145
#define STATUS_NOT_SUPPORTED
Definition: d3dkmdt.h:48
#define TRACINGPNP
Definition: dbgtrace.h:67
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
FxIrp * irp
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
_Must_inspect_result_ typedef _Out_ PHIDP_CAPS Capabilities
Definition: hidclass.h:103
#define ASSERT(a)
Definition: mode.c:44
#define ARGUMENT_PRESENT(ArgumentPointer)
@ PowerSystemWorking
Definition: ntpoapi.h:36
@ PowerSystemHibernate
Definition: ntpoapi.h:40
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
Definition: ps.c:97
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
enum _DEVICE_WAKE_DEPTH DEVICE_WAKE_DEPTH
DEVICE_CAPABILITIES
Definition: iotypes.h:965
#define IRP_MN_QUERY_CAPABILITIES
@ DeviceWakeDepthMaximum
Definition: iotypes.h:7488

Referenced by FxPkgPdo::_QueryCapsWorkItem(), FxPkgPdo::PnpQueryCapabilities(), and FxPkgPnp::QueryForCapabilities().

◆ PnpPassThroughQIWorker()

VOID PnpPassThroughQIWorker ( __in MxDeviceObject Device,
__inout FxIrp Irp,
__inout FxIrp ForwardIrp 
)

Definition at line 498 of file fxpkgpnpkm.cpp.

503{
504 PIO_STACK_LOCATION pFwdStack, pCurStack;
505
506 pCurStack = Irp->GetCurrentIrpStackLocation();
507
508 ForwardIrp->SetStatus(STATUS_NOT_SUPPORTED);
509
510 pFwdStack = ForwardIrp->GetNextIrpStackLocation();
511 pFwdStack->MajorFunction = Irp->GetMajorFunction();
512 pFwdStack->MinorFunction = Irp->GetMinorFunction();
513
515 &pCurStack->Parameters.QueryInterface,
516 sizeof(pFwdStack->Parameters.QueryInterface));
517
518 ForwardIrp->SetInformation(Irp->GetInformation());
519 ForwardIrp->SendIrpSynchronously(Device->GetObject());
520
521 pFwdStack = ForwardIrp->GetNextIrpStackLocation();
522
524 &pFwdStack->Parameters.QueryInterface,
525 sizeof(pCurStack->Parameters.QueryInterface));
526}
struct _IO_STACK_LOCATION::@4278::@4304 QueryInterface
union _IO_STACK_LOCATION::@1694 Parameters
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474

Referenced by PnpPassThroughQI().

◆ SendDeviceUsageNotification()

_Must_inspect_result_ NTSTATUS NTAPI SendDeviceUsageNotification ( __in MxDeviceObject RelatedDevice,
__in FxIrp RelatedIrp,
__in MxWorkItem Workitem,
__in FxIrp OriginalIrp,
__in BOOLEAN  Revert 
)

◆ SetD3ColdSupport()

VOID NTAPI SetD3ColdSupport ( __in PFX_DRIVER_GLOBALS  DriverGlobals,
__in MxDeviceObject DeviceInStack,
__in PD3COLD_SUPPORT_INTERFACE  D3ColdInterface,
__in BOOLEAN  UseD3Cold 
)

Definition at line 174 of file supportkm.cpp.

180{
181 UNREFERENCED_PARAMETER(DriverGlobals);
182 UNREFERENCED_PARAMETER(DeviceInStack);
183
184 if (D3ColdInterface->SetD3ColdSupport != NULL) {
185 D3ColdInterface->SetD3ColdSupport(D3ColdInterface->Context, UseD3Cold);
186 }
187}
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:329

Referenced by FxPkgPnp::PowerPolicySetS0IdleSettings().