17#if defined(EVENT_TRACING)
18#include "WakeInterruptStateMachine.tmh"
159 ASSERTMSG(
"The wake interrupt state machine queue is full\n",
170 "WDFDEVICE 0x%p !devobj 0x%p current wake interrupt state"
171 " %!FxWakeInterruptStates! dropping event "
172 "%!FxWakeInterruptEvents! because of a closed queue",
181 "The wake interrupt state machine queue is closed\n",
209 if (FxWaitLockInternal::IsLockAcquired(
status)) {
339 if (
entry->TargetStates[
i].WakeInterruptEvent ==
event) {
341 newState =
entry->TargetStates[
i].WakeInterruptState;
354 "WDFDEVICE 0x%p !devobj 0x%p wake interrupt state "
355 "%!FxWakeInterruptStates! dropping event "
356 "%!FxWakeInterruptEvents!",
371 "WDFDEVICE 0x%p !devobj 0x%p entering wake interrupt "
372 "state %!FxWakeInterruptStates! from "
373 "%!FxWakeInterruptStates!",
395 newState =
entry->StateFunc(
this);
427 This->m_Interrupt->FlushQueuedDpcs();
434 This->m_Interrupt->FlushQueuedWorkitem();
438 This->m_PkgPnp->AckPendingWakeInterruptOperation(
FALSE);
455 This->m_PkgPnp->AckPendingWakeInterruptOperation(
TRUE);
466 This->m_Interrupt->InvokeWakeInterruptEvtIsr();
468 This->m_IsrEvent.Set();
478 This->m_Interrupt->InvokeWakeInterruptEvtIsr();
480 This->m_IsrEvent.Set();
490 This->m_PkgPnp->AckPendingWakeInterruptOperation(
FALSE);
500 This->m_Interrupt->InvokeWakeInterruptEvtIsr();
502 This->m_IsrEvent.Set();
519 This->m_IsrEvent.Set();
WDFDEVICE __inline GetHandle(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
__inline CfxDevice * GetDevice(VOID)
FxWakeInterruptMachine(__in FxInterrupt *Interrupt)
VOID ProcessEventInner(__inout FxPostProcessInfo *Info)
static FxWakeInterruptStates Failed(__in FxWakeInterruptMachine *This)
FxInterrupt * m_Interrupt
static const FxWakeInterruptTargetState m_DxStates[]
static FxWakeInterruptStates InvokingEvtIsrPostWake(__in FxWakeInterruptMachine *This)
static FxWakeInterruptStates DxNotArmedForWake(__in FxWakeInterruptMachine *This)
static const FxWakeInterruptTargetState m_D0States[]
static const FxWakeInterruptTargetState m_WakingStates[]
static VOID _ProcessEventInner(__inout FxPkgPnp *PkgPnp, __inout FxPostProcessInfo *Info, __in PVOID WorkerContext)
static const FxWakeInterruptTargetState m_DxNotArmedForWakeStates[]
static const FxWakeInterruptStateTable m_StateTable[]
static FxWakeInterruptStates InvokingEvtIsrInDxNotArmedForWake(__in FxWakeInterruptMachine *This)
FxWakeInterruptMachineStateHistory m_States
static FxWakeInterruptStates Dx(__in FxWakeInterruptMachine *This)
static const FxWakeInterruptTargetState m_FailedStates[]
static FxWakeInterruptStates Waking(__in FxWakeInterruptMachine *This)
static FxWakeInterruptStates CompletingD0(__in FxWakeInterruptMachine *This)
FxWakeInterruptEvents m_Queue[FxWakeInterruptEventQueueDepth]
static FxWakeInterruptStates InvokingEvtIsrInD0(__in FxWakeInterruptMachine *This)
VOID ProcessEvent(__in FxWakeInterruptEvents Event)
#define TRACINGPNPPOWERSTATES
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
@ PwrPolWakeInterruptFired
@ WakeInterruptInvokingEvtIsrInD0
@ WakeInterruptInvokingEvtIsrPostWake
@ WakeInterruptCompletingD0
@ WakeInterruptDxNotArmedForWake
@ WakeInterruptInvokingEvtIsrInDxNotArmedForWake
const UCHAR FxWakeInterruptEventQueueDepth
@ WakeInterruptEventLeavingD0
@ WakeInterruptEventEnteringD0
@ WakeInterruptEventD0EntryFailed
@ WakeInterruptEventLeavingD0NotArmedForWake
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
#define __analysis_assume(expr)
#define ASSERTMSG(msg, exp)
#define UNREFERENCED_PARAMETER(P)
#define TRACE_LEVEL_INFORMATION
UCHAR IncrementHistoryIndex(VOID)
FxWaitLockInternal m_StateMachineLock
BOOLEAN IsClosedLocked(VOID)
VOID GetFinishedState(__inout FxPostProcessInfo *Info)
#define RtlZeroMemory(Destination, Length)
UCHAR History[FxWakeInterruptEventQueueDepth]
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFINTERRUPT * Interrupt
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock