ReactOS 0.4.15-dev-7788-g1ad9096
fxpkgpnpkm.cpp
Go to the documentation of this file.
1//
2// Copyright (C) Microsoft. All rights reserved.
3//
4#include "../pnppriv.hpp"
5
6#include <initguid.h>
7#include <wdmguid.h>
8
9extern "C" {
10#if defined(EVENT_TRACING)
11#include "FxPkgPnpKM.tmh"
12#endif
13}
14
18 )
19/*++
20
21Routine Description:
22
23 This routine traverses one or more alternate _IO_RESOURCE_LISTs in the input
24 IO_RESOURCE_REQUIREMENTS_LIST looking for interrupt descriptor and applies
25 the policy set by driver in the interrupt object to the resource descriptor.
26
27 LBI - Line based interrupt
28 MSI - Message Signalled interrupt
29
30 Here are the assumptions made about the order of descriptors.
31
32 - An IoRequirementList can have one or more alternate IoResourceList
33 - Each IoResourceList can have one or more resource descriptors
34 - A descriptor can be default (unique), preferred, or alternate descriptors
35 - A preferred descriptor can have zero or more alternate descriptors (P, A, A, A..)
36 - In an IoResourceList, there can be one or more LBI descriptors
37 (non-pci devices)(P,A,P,A)
38 - In an IoResourceList, there can be only one preferred MSI 2.2
39 (single or multi message) descriptor
40 - In an IoResourceList, there cannot be MSI2.2 and MSI-X descriptors
41 - In an IoResourceList, there can be one or more MSI-X descriptor
42 - An alternate descriptor cannot be a very first descriptor in the list
43
44
45 Now with that assumption, this routines parses the list looking for interrupt
46 descriptor.
47
48 - If it finds a LBI, it starts with the very first interrupt object and applies
49 the policy set by the driver to the resource descriptor.
50 - If it's finds an MSI2.2 then it starts with the first interrupt object and applies
51 the policy. If the MSI2.2 is a multi-message one then it loops thru looking for
52 as many interrupt object as there are messages. It doesn't fail the IRP, if the
53 interrupt objects are less than the messages.
54 - If there is an alternate descriptor then it applies the same policy from the
55 interrupt object that it used for the preceding preferred descriptor.
56 - Framework always uses FULLY_SPECIFIED connection type for both LBI and MSI
57 interrupts including MSI-X
58 - Framework will apply the policy on the descriptor set by the driver only
59 if the policy is already not included in the resource descriptor. This is
60 to allow the policy set in the registry to take precedence over the hard
61 coded driver policy.
62 - If the driver registers filter resource requirement and applies the policy
63 on its own (by escaping to WDM) then framework doesn't override that.
64
65Arguments:
66
67 IoList - Pointer to the list part of an IRP_MN_FILTER_RESOURCE_REQUIREMENTS.
68
69Return Value:
70
71 NTSTATUS
72
73--*/
74{
75 ULONG altResListIndex;
76 PIO_RESOURCE_REQUIREMENTS_LIST pIoRequirementList;
78
79 pIoRequirementList = *IoList;
80
81 if (pIoRequirementList == NULL) {
82 return STATUS_SUCCESS;
83 }
84
86 //
87 // No interrupt objects created to filter resource requirements.
88 //
89 return STATUS_SUCCESS;
90 }
91
92 pIoResList = pIoRequirementList->List;
93
94 //
95 // Parse one or more alternative resource lists.
96 //
97 for (altResListIndex = 0;
98 altResListIndex < pIoRequirementList->AlternativeLists;
99 altResListIndex++) {
100 PLIST_ENTRY pIntListEntryForMSI;
101 PLIST_ENTRY pIntListEntryForLBI;
102 BOOLEAN multiMessageMSI22Found;
103 BOOLEAN previousDescMSI;
104 ULONG descIndex;
105
106 multiMessageMSI22Found = FALSE;
107 previousDescMSI = FALSE;
108
109 pIntListEntryForMSI = &m_InterruptListHead;
110 pIntListEntryForLBI = &m_InterruptListHead;
111
112 //
113 // Traverse each _IO_RESOURCE_LISTs looking for interrupt descriptors
114 // and call FilterResourceRequirements method so that it can apply
115 // policy set on the interrupt object into the resource-descriptor.
116 //
117
118 for (descIndex = 0; descIndex < pIoResList->Count; descIndex++) {
119 ULONG messageCount;
121 FxInterrupt* pInterruptInstance;
122
123 pIoDesc = &pIoResList->Descriptors[descIndex];
124
125 switch (pIoDesc->Type) {
127
129
130 previousDescMSI = TRUE;
131
132 //
133 // We will advance to the next interrupt object if the resource
134 // is not an alternate resource descriptor. A resource list can
135 // have a preferred and zero or more alternate resource descriptors
136 // for the same resource. We need to apply the same policy on the
137 // alternate desc that we applied on the preferred one in case one
138 // of the alernate desc is selected for this device. An alternate
139 // resource descriptor can't be the first descriptor in a list.
140 //
141 if ((pIoDesc->Option & IO_RESOURCE_ALTERNATIVE) == 0) {
142 pIntListEntryForMSI = pIntListEntryForMSI->Flink;
143 }
144
145 if (pIntListEntryForMSI == &m_InterruptListHead) {
148 "Not enough interrupt objects created for MSI by WDFDEVICE 0x%p ",
150 break;
151 }
152
153 pInterruptInstance = CONTAINING_RECORD(pIntListEntryForMSI, FxInterrupt, m_PnpList);
154 messageCount = pIoDesc->u.Interrupt.MaximumVector - pIoDesc->u.Interrupt.MinimumVector + 1;
155
156 if (messageCount > 1) {
157 //
158 // PCI spec guarantees that there can be only one preferred/default
159 // MSI 2.2 descriptor in a single list.
160 //
161 if ((pIoDesc->Option & IO_RESOURCE_ALTERNATIVE) == 0) {
162#if DBG
163 ASSERT(multiMessageMSI22Found == FALSE);
164#else
165 UNREFERENCED_PARAMETER(multiMessageMSI22Found);
166#endif
167 multiMessageMSI22Found = TRUE;
168
169 }
170 }
171 else {
172 //
173 // This is either single message MSI 2.2 or MSI-X interrupts
174 //
175 DO_NOTHING();
176 }
177
178 pInterruptInstance->FilterResourceRequirements(pIoDesc);
179 }
180 else {
181
182 //
183 // We will advance to next interrupt object if the desc is not an alternate
184 // descriptor. For non PCI devices, the first LBI interrupt desc can't be an
185 // alternate descriptor.
186 //
187 if ((pIoDesc->Option & IO_RESOURCE_ALTERNATIVE) == 0) {
188 pIntListEntryForLBI = pIntListEntryForLBI->Flink;
189 }
190
191 //
192 // An LBI can be first alternate resource if there are preceding MSI(X) descriptors
193 // listed in the list. In that case, this descriptor is the alternate interrupt resource
194 // for all of the MSI messages. As a result, we will use the first interrupt object from
195 // the list if this ends up being assigned by the system instead of MSI.
196 //
197 if (previousDescMSI) {
199 pIntListEntryForLBI = m_InterruptListHead.Flink;
200 previousDescMSI = FALSE;
201 }
202
203 //
204 // There can be one or more LBI interrupts and each LBI interrupt
205 // could have zero or more alternate descriptors.
206 //
207 if (pIntListEntryForLBI == &m_InterruptListHead) {
210 "Not enough interrupt objects created for LBI by WDFDEVICE 0x%p ",
212 break;
213 }
214
215 pInterruptInstance = CONTAINING_RECORD(pIntListEntryForLBI, FxInterrupt, m_PnpList);
216
217 pInterruptInstance->FilterResourceRequirements(pIoDesc);
218 }
219
220 break;
221
222 default:
223 break;
224 }
225 }
226
227 //
228 // Since the Descriptors is a variable length list, you cannot get to the next
229 // alternate list by doing pIoRequirementList->List[altResListIndex].
230 // Descriptors[descIndex] will now point to the end of the descriptor list.
231 // If there is another alternate list, it would be begin there.
232 //
233 pIoResList = (PIO_RESOURCE_LIST) &pIoResList->Descriptors[descIndex];
234 }
235
236 return STATUS_SUCCESS;
237}
238
242 VOID
243 )
244{
247 KIRQL irql;
248
249 if (m_DmaEnablerList != NULL) {
250 return STATUS_SUCCESS;
251 }
252
253 Lock(&irql);
254 if (m_DmaEnablerList == NULL) {
256
257 if (pList != NULL) {
260 }
261 else {
263 }
264 }
265 else {
266 //
267 // Already have a DMA list
268 //
270 }
271 Unlock(irql);
272
273 return status;
274}
275
276VOID
278 __in FxDmaEnabler* Enabler
279 )
280{
282 "Adding DmaEnabler %p, WDFDMAENABLER %p",
283 Enabler, Enabler->GetObjectHandle());
284
285 m_DmaEnablerList->Add(GetDriverGlobals(), &Enabler->m_TransactionLink);
286}
287
288VOID
290 __in FxDmaEnabler* Enabler
291 )
292{
294 "Removing DmaEnabler %p, WDFDMAENABLER %p",
295 Enabler, Enabler->GetObjectHandle());
296
297 m_DmaEnablerList->Remove(GetDriverGlobals(), &Enabler->m_TransactionLink);
298}
299
300VOID
302 __in HANDLE RegKey,
305 )
306{
307 ZwSetValueKey(RegKey, ValueName, 0, REG_DWORD, &Value, sizeof(Value));
308}
309
310// NTSTATUS __REACTOS__
311// FxPkgPnp::UpdateWmiInstanceForS0Idle(
312// __in FxWmiInstanceAction Action
313// )
314// {
315// FxWmiProvider* pProvider;
316// NTSTATUS status;
317
318// switch(Action) {
319// case AddInstance:
320// if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance == NULL) {
321// FxWmiInstanceInternalCallbacks cb;
322
323// cb.SetInstance = _S0IdleSetInstance;
324// cb.QueryInstance = _S0IdleQueryInstance;
325// cb.SetItem = _S0IdleSetItem;
326
327// status = RegisterPowerPolicyWmiInstance(
328// &GUID_POWER_DEVICE_ENABLE,
329// &cb,
330// &m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance);
331
332// if (!NT_SUCCESS(status)) {
333// return status;
334// }
335// }
336// else {
337// pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings.
338// WmiInstance->GetProvider();
339
340// //
341// // Enable the WMI GUID by adding the instance back to the provider's
342// // list. If there is an error, ignore it. It just means we were
343// // racing with another thread removing or adding the instance.
344// //
345// (void) pProvider->AddInstance(
346// m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance,
347// TRUE
348// );
349// }
350// break;
351
352// case RemoveInstance:
353// if (m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance != NULL) {
354// //
355// // Disable the WMI guid by removing it from the provider's list of
356// // instances.
357// //
358// pProvider = m_PowerPolicyMachine.m_Owner->m_IdleSettings.
359// WmiInstance->GetProvider();
360
361// pProvider->RemoveInstance(
362// m_PowerPolicyMachine.m_Owner->m_IdleSettings.WmiInstance
363// );
364// }
365// break;
366
367// default:
368// ASSERT(FALSE);
369// break;
370// }
371
372// return STATUS_SUCCESS;;
373// }
374
375VOID
379 )
380{
383
385
386 //
387 // Modify the value of Enabled only if success
388 //
389 if (NT_SUCCESS(status)) {
390 ULONG value;
391
392 status = FxRegKey::_QueryULong(
394
395 if (NT_SUCCESS(status)) {
396 //
397 // Normalize the ULONG value into a BOOLEAN
398 //
399 *Enabled = (value == FALSE) ? FALSE : TRUE;
400 }
401 }
402}
403
404// NTSTATUS __REACTOS__
405// FxPkgPnp::UpdateWmiInstanceForSxWake(
406// __in FxWmiInstanceAction Action
407// )
408// {
409// FxWmiProvider* pProvider;
410// NTSTATUS status;
411
412// switch(Action) {
413// case AddInstance:
414// if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance == NULL) {
415// FxWmiInstanceInternalCallbacks cb;
416
417// cb.SetInstance = _SxWakeSetInstance;
418// cb.QueryInstance = _SxWakeQueryInstance;
419// cb.SetItem = _SxWakeSetItem;
420
421// status = RegisterPowerPolicyWmiInstance(
422// &GUID_POWER_DEVICE_WAKE_ENABLE,
423// &cb,
424// &m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance);
425
426// if (!NT_SUCCESS(status)) {
427// return status;
428// }
429// } else {
430// pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings.
431// WmiInstance->GetProvider();
432
433// //
434// // Enable the WMI GUID by adding the instance back to the provider's
435// // list. If there is an error, ignore it. It just means we were
436// // racing with another thread removing or adding the instance.
437// //
438// (void) pProvider->AddInstance(
439// m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance,
440// TRUE
441// );
442// }
443// break;
444
445// case RemoveInstance:
446// if (m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance != NULL) {
447// //
448// // Disable the WMI guid by removing it from the provider's list of
449// // instances.
450// //
451// pProvider = m_PowerPolicyMachine.m_Owner->m_WakeSettings.
452// WmiInstance->GetProvider();
453
454// pProvider->RemoveInstance(
455// m_PowerPolicyMachine.m_Owner->m_WakeSettings.WmiInstance
456// );
457// }
458// break;
459
460// default:
461// ASSERT(FALSE);
462// break;
463// }
464
465// return STATUS_SUCCESS;
466// }
467
468VOID
472 )
473{
476
478
479 //
480 // Modify the value of Enabled only if success
481 //
482 if (NT_SUCCESS(status)) {
483 ULONG value;
484
485 status = FxRegKey::_QueryULong(
487
488 if (NT_SUCCESS(status)) {
489 //
490 // Normalize the ULONG value into a BOOLEAN
491 //
492 *Enabled = (value == FALSE) ? FALSE : TRUE;
493 }
494 }
495}
496
497VOID
501 __inout FxIrp* ForwardIrp
502 )
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}
527
528VOID
531 )
532{
533 // DmaEnabler->RevokeResources();
535}
536
537VOID
539 VOID
540 )
541{
543 PDEVICE_OBJECT topOfStack;
544 PDEVICE_OBJECT pdo;
547
548 //
549 // This function can be invoked multiple times, particularly if filters
550 // send IRP_MN_QUERY_CAPABILITIES. So bail out if the interface has already
551 // been acquired.
552 //
553
557 return;
558 }
559
561
562 if (pdo == NULL) {
563 return;
564 }
565
566 //
567 // Get the top of stack device object, even though normal filters and the
568 // FDO may not have been added to the stack yet to ensure that this
569 // query-interface is seen by bus filters. Specifically, in a PCI device
570 // which is soldered to the motherboard, ACPI will be on the stack and it
571 // needs to see this IRP.
572 //
573 topOfStack = IoGetAttachedDeviceReference(pdo);
574 deviceObject.SetObject(topOfStack);
575 if (deviceObject.GetObject() != NULL) {
577 if (irp.GetIrp() == NULL) {
578
581 "Failed to allocate IRP to get D3COLD_SUPPORT_INTERFACE from !devobj %p",
582 pdo);
583 } else {
584
585 //
586 // Initialize the Irp
587 //
589
593 irp.SetParameterQueryInterfaceType(&GUID_D3COLD_SUPPORT_INTERFACE);
598
600
601 if (!NT_SUCCESS(status)) {
604 "!devobj %p declined to supply D3COLD_SUPPORT_INTERFACE",
605 pdo);
606
608 }
609 }
610 }
611 ObDereferenceObject(topOfStack);
612}
613
614VOID
616 VOID
617 )
618{
621 }
622
624}
625
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
struct _IO_RESOURCE_LIST * PIO_RESOURCE_LIST
#define IO_RESOURCE_ALTERNATIVE
Definition: edit.c:119
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
MdDeviceObject __inline GetPhysicalDevice(VOID)
Definition: fxdevice.hpp:228
WDFDEVICE __inline GetHandle(VOID)
Definition: fxdevice.hpp:237
_Must_inspect_result_ NTSTATUS OpenSettingsKey(__out HANDLE *Key, __in ACCESS_MASK DesiredAccess=STANDARD_RIGHTS_ALL)
Definition: fxdevicekm.cpp:818
static BOOLEAN _IsMessageInterrupt(__in USHORT ResourceFlags)
VOID FilterResourceRequirements(__inout PIO_RESOURCE_DESCRIPTOR IoResourceDescriptor)
Definition: fxirp.hpp:28
VOID SetParameterQueryInterfaceSize(__in USHORT Size)
Definition: fxirpkm.hpp:1082
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 SetParameterQueryInterfaceType(__in const GUID *InterfaceType)
Definition: fxirpkm.hpp:1063
VOID SetMajorFunction(__in UCHAR MajorFunction)
Definition: fxirpum.cpp:905
VOID SetStatus(__in NTSTATUS Status)
Definition: fxirpum.cpp:457
VOID SetParameterQueryInterfaceInterface(__in PINTERFACE Interface)
Definition: fxirpkm.hpp:1053
MdIrp GetIrp(VOID)
Definition: fxirpum.cpp:15
VOID SetParameterQueryInterfaceInterfaceSpecificData(__in PVOID InterfaceSpecificData)
Definition: fxirpkm.hpp:1091
MdIrp SetIrp(MdIrp irp)
Definition: fxirpkm.hpp:71
VOID SetParameterQueryInterfaceVersion(__in USHORT Version)
Definition: fxirpkm.hpp:1073
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
Definition: fxobject.hpp:734
CfxDevice * m_Device
Definition: fxobject.hpp:329
__drv_restoresIRQL KIRQL __in BOOLEAN Unlock
Definition: fxobject.hpp:1474
VOID RevokeDmaEnablerResources(__in FxDmaEnabler *Enabler)
Definition: fxpkgpnpkm.cpp:529
VOID ReadRegistrySxWake(__in PCUNICODE_STRING ValueName, __out BOOLEAN *Enabled)
Definition: fxpkgpnpkm.cpp:469
FxSpinLockTransactionedList * m_DmaEnablerList
Definition: fxpkgpnp.hpp:4227
NTSTATUS FilterResourceRequirements(__in IO_RESOURCE_REQUIREMENTS_LIST **IoList)
Definition: fxpkgpnpkm.cpp:16
VOID RemoveDmaEnabler(__in FxDmaEnabler *Enabler)
Definition: fxpkgpnpkm.cpp:289
VOID ReadRegistryS0Idle(__in PCUNICODE_STRING ValueName, __out BOOLEAN *Enabled)
Definition: fxpkgpnpkm.cpp:376
_Must_inspect_result_ NTSTATUS AllocateDmaEnablerList(VOID)
Definition: fxpkgpnpkm.cpp:241
LIST_ENTRY m_InterruptListHead
Definition: fxpkgpnp.hpp:4310
VOID QueryForD3ColdInterface(VOID)
Definition: fxpkgpnpkm.cpp:538
VOID AddDmaEnabler(__in FxDmaEnabler *Enabler)
Definition: fxpkgpnpkm.cpp:277
D3COLD_SUPPORT_INTERFACE m_D3ColdInterface
Definition: fxpkgpnp.hpp:4166
VOID WriteStateToRegistry(__in HANDLE RegKey, __in PUNICODE_STRING ValueName, __in ULONG Value)
Definition: fxpkgpnpkm.cpp:301
VOID DropD3ColdInterface(VOID)
Definition: fxpkgpnpkm.cpp:615
NTSTATUS Add(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxTransactionedEntry *Entry)
VOID Remove(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxTransactionedEntry *Entry)
__inline VOID SetObject(__in_opt MdDeviceObject DeviceObject)
CCHAR GetStackSize(VOID)
__inline MdDeviceObject GetObject(VOID)
_In_ PIRP Irp
Definition: csq.h:116
#define __in
Definition: dbghelp.h:35
#define __inout
Definition: dbghelp.h:50
#define __out
Definition: dbghelp.h:62
#define TRACINGPNP
Definition: dbgtrace.h:67
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
KIRQL irql
Definition: wave.h:1
#define IsListEmpty(ListHead)
Definition: env_spec_w32.h:954
UCHAR KIRQL
Definition: env_spec_w32.h:591
FxChildList * pList
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
MxDeviceObject deviceObject
FxAutoRegKey hKey
#define ROSWDFNOTIMPLEMENTED
Definition: fxglobals.h:52
VOID PnpPassThroughQIWorker(__in MxDeviceObject *Device, __inout FxIrp *Irp, __inout FxIrp *ForwardIrp)
Definition: fxpkgpnpkm.cpp:498
FxIrp * irp
FxIoResList * pIoResList
#define CmResourceTypeInterrupt
Definition: hwresource.cpp:124
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define ASSERT(a)
Definition: mode.c:44
@ Enabled
Definition: mountmgr.h:159
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define DO_NOTHING()
Definition: mxgeneral.h:32
#define STANDARD_RIGHTS_READ
Definition: nt_native.h:65
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
PDEVICE_OBJECT NTAPI IoGetAttachedDeviceReference(PDEVICE_OBJECT DeviceObject)
Definition: device.c:1406
#define STATUS_NOT_SUPPORTED
Definition: ntstatus.h:423
#define REG_DWORD
Definition: sdbapi.c:596
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE_LEVEL_WARNING
Definition: storswtr.h:28
#define TRACE_LEVEL_VERBOSE
Definition: storswtr.h:30
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
PSET_D3COLD_SUPPORT SetD3ColdSupport
Definition: iotypes.h:7558
PINTERFACE_DEREFERENCE InterfaceDereference
Definition: iotypes.h:7557
PGET_IDLE_WAKE_INFO GetIdleWakeInfo
Definition: iotypes.h:7559
union _IO_RESOURCE_DESCRIPTOR::@21 u
struct _IO_RESOURCE_DESCRIPTOR::@21::@24 Interrupt
IO_RESOURCE_LIST List[1]
Definition: edit.c:135
struct _NAMED_PIPE_CREATE_PARAMETERS * Parameters
Definition: iotypes.h:3128
Definition: typedefs.h:120
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
Definition: ps.c:97
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
Definition: pdh_main.c:94
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ WDFDMAENABLER DmaEnabler
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:127
#define IRP_MN_QUERY_INTERFACE
#define D3COLD_SUPPORT_INTERFACE_VERSION
#define ObDereferenceObject
Definition: obfuncs.h:203