20#include "../pnppriv.hpp"
22#include "FxUsbIdleInfo.hpp"
25#if defined(EVENT_TRACING)
26#include "PowerPolicyStateMachineUM.tmh"
57 "For PDOs, FxPkgPnp::PowerPolicyUpdateSystemWakeSource should NOT "
66 __in BOOLEAN CallerSpecifiedProcessingOnDifferentThread
123 return CallerSpecifiedProcessingOnDifferentThread;
135 IWudfDeviceStack *devStack;
138 devStack =
device->GetDeviceStack();
140 hr = devStack->InitializeUsbSS();
145 PUMDF_VERSION_DATA driverVersion = devStack->GetMinDriverVersion();
146 BOOL preserveCompat =
147 devStack->ShouldPreserveIrpCompletionStatusCompatibility();
149 status = CHostFxUtil::NtStatusFromHr(
hr,
150 driverVersion->MajorNumber,
151 driverVersion->MinorNumber,
184FxUsbIdleInfo::_UsbIdleCallback(
194 "Entering USB Selective Suspend Idle callback");
209 "USB Selective Suspend Idle callback processing is complete");
211 device->GetDeviceStack()->SignalUsbSSCallbackProcessingComplete();
__inline BOOLEAN IsPdo(VOID)
IWudfDeviceStack * GetDeviceStack(VOID)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
__inline CfxDevice * GetDevice(VOID)
BOOLEAN ShouldProcessPowerPolicyEventOnDifferentThread(__in KIRQL CurrentIrql, __in BOOLEAN CallerSpecifiedProcessingOnDifferentThread)
VOID PowerPolicyUpdateSystemWakeSource(__in FxIrp *Irp)
VOID PowerPolicySubmitUsbIdleNotification(VOID)
VOID PowerPolicyCancelUsbSS(VOID)
static MdCompletionRoutineType _PowerPolicyUsbSelectiveSuspendCompletionRoutine
FxPowerPolicyMachine m_PowerPolicyMachine
VOID PowerPolicyProcessEvent(__in FxPowerPolicyEvent Event, __in BOOLEAN ProcessEventOnDifferentThread=FALSE)
#define __drv_maxIRQL(irql)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
PFX_DRIVER_GLOBALS pFxDriverGlobals
FxVerifierDbgBreakPoint(pFxDriverGlobals)
@ PwrPolUsbSelectiveSuspendCallback
#define _Must_inspect_result_
#define UNREFERENCED_PARAMETER(P)
#define TRACE_LEVEL_VERBOSE
#define TRACE_LEVEL_ERROR
VOID UsbSSCallbackProcessingComplete(VOID)
FxPowerPolicyOwnerSettings * m_Owner
FxUsbIdleInfo * m_UsbIdle
USB_IDLE_CALLBACK_INFO m_CallbackInfo
_Must_inspect_result_ NTSTATUS Initialize(VOID)