20#include "../pnppriv.hpp"
29#if defined(EVENT_TRACING)
30#include "PowerPolicyStateMachineKM.tmh"
55 PoGetSystemWake(
Irp->GetIrp());
60 "WDFDEVICE 0x%p !devobj 0x%p WW !irp 0x%p is a source of "
71 __in BOOLEAN CallerSpecifiedProcessingOnDifferentThread
134 ASSERT(
FALSE == CallerSpecifiedProcessingOnDifferentThread);
206FxUsbIdleInfo::_UsbIdleCallback(
218 "Entering USB Selective Suspend Idle callback");
227 event.EnterCRAndWaitAndLeave();
232 "Leaving USB Selective Suspend Idle callback");
WDFDEVICE __inline GetHandle(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
static _Must_inspect_result_ MdIrp AllocateIrp(_In_ CCHAR StackSize, _In_opt_ FxDevice *Device=NULL)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
BOOLEAN ShouldProcessPowerPolicyEventOnDifferentThread(__in KIRQL CurrentIrql, __in BOOLEAN CallerSpecifiedProcessingOnDifferentThread)
VOID PowerPolicyUpdateSystemWakeSource(__in FxIrp *Irp)
VOID PowerPolicySubmitUsbIdleNotification(VOID)
VOID PowerPolicyCancelUsbSS(VOID)
FxPowerPolicyMachine m_PowerPolicyMachine
VOID PowerPolicyProcessEvent(__in FxPowerPolicyEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
__inline VOID SetObject(__in_opt MdDeviceObject DeviceObject)
#define __drv_maxIRQL(irql)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
#define ROSWDFNOTIMPLEMENTED
@ PwrPolUsbSelectiveSuspendCallback
#define _Must_inspect_result_
#define UNREFERENCED_PARAMETER(P)
#define TRACE_LEVEL_VERBOSE
#define TRACE_LEVEL_INFORMATION
FxCREvent * GetSelfPointer(VOID)
VOID UsbSSCallbackProcessingComplete(VOID)
FxPowerPolicyOwnerSettings * m_Owner
FxUsbIdleInfo * m_UsbIdle
BOOLEAN m_SystemWakeSource
FxCREvent * m_IdleCallbackEvent
USB_IDLE_CALLBACK_INFO m_CallbackInfo
_Must_inspect_result_ NTSTATUS Initialize(VOID)
#define STATUS_INSUFFICIENT_RESOURCES