29#if defined(EVENT_TRACING)
30#include "SelfManagedIoStateMachine.tmh"
179 *SelfManagedIoMachine =
NULL;
185 if (selfManagedIoMachine ==
NULL) {
188 "Self managed I/O state machine allocation failed for "
190 PkgPnp->GetDevice()->GetHandle());
199 "Self managed I/O state machine lock initialization failed for "
200 "WDFDEVICE 0x%p, %!STATUS!",
201 PkgPnp->GetDevice()->GetHandle(),
204 delete selfManagedIoMachine;
209 *SelfManagedIoMachine = selfManagedIoMachine;
281 if (
entry->TargetStates[
i].SelfManagedIoEvent ==
Event) {
283 newState =
entry->TargetStates[
i].SelfManagedIoState;
302 "WDFDEVICE 0x%p !devobj 0x%p entering self managed io state "
303 "%!FxSelfManagedIoStates! from %!FxSelfManagedIoStates!",
348 *
Status =
This->m_DeviceSelfManagedIoInit.Invoke(
This->GetDeviceHandle());
379 *
Status =
This->m_DeviceSelfManagedIoSuspend.Invoke(
This->GetDeviceHandle());
410 *
Status =
This->m_DeviceSelfManagedIoRestart.Invoke(
This->GetDeviceHandle());
441 This->m_DeviceSelfManagedIoFlush.Invoke(
This->GetDeviceHandle());
467 This->m_DeviceSelfManagedIoCleanup.Invoke(
This->GetDeviceHandle());
const struct winhelp_callbacks Callbacks
WDFDEVICE __inline GetHandle(VOID)
MdDeviceObject __inline GetDeviceObject(VOID)
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
__inline CfxDevice * GetDevice(VOID)
PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP m_Method
PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH m_Method
PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT m_Method
PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART m_Method
PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND m_Method
static const FxSelfManagedIoTargetState m_StartedStates[]
static FxSelfManagedIoStates Suspending(__in FxSelfManagedIoMachine *This, __out PNTSTATUS Status)
static const FxSelfManagedIoTargetState m_InitFailedStates[]
FxSelfManagedIoMachineStateHistory m_States
static FxSelfManagedIoStates Flushing(__in FxSelfManagedIoMachine *This, __out PNTSTATUS Status)
UCHAR m_StateHistoryIndex
FxPnpDeviceSelfManagedIoInit m_DeviceSelfManagedIoInit
VOID InitializeMachine(__in PWDF_PNPPOWER_EVENT_CALLBACKS Callbacks)
FxPnpDeviceSelfManagedIoCleanup m_DeviceSelfManagedIoCleanup
static NTSTATUS _CreateAndInit(__deref_out FxSelfManagedIoMachine **SelfManagedIoMachine, __in FxPkgPnp *PkgPnp)
_Must_inspect_result_ NTSTATUS ProcessEvent(__in FxSelfManagedIoEvents Event)
static const FxSelfManagedIoTargetState m_StoppedStates[]
FxPnpDeviceSelfManagedIoFlush m_DeviceSelfManagedIoFlush
WDFDEVICE GetDeviceHandle(VOID)
FxSelfManagedIoMachine(__in FxPkgPnp *PkgPnp)
UCHAR m_EventHistoryIndex
FxWaitLockInternal m_StateMachineLock
FxSelfManagedIoMachineEventHistory m_Events
static const FxSelfManagedIoTargetState m_FailedStates[]
static const FxSelfManagedIoStateTable m_StateTable[]
static FxSelfManagedIoStates Restarting(__in FxSelfManagedIoMachine *This, __out PNTSTATUS Status)
static const FxSelfManagedIoTargetState m_CreatedStates[]
FxPnpDeviceSelfManagedIoSuspend m_DeviceSelfManagedIoSuspend
static const FxSelfManagedIoTargetState m_FlushedStates[]
static FxSelfManagedIoStates Init(__in FxSelfManagedIoMachine *This, __out PNTSTATUS Status)
FxPnpDeviceSelfManagedIoRestart m_DeviceSelfManagedIoRestart
CHECK_RETURN_IF_USER_MODE NTSTATUS Initialize()
#define NT_SUCCESS(StatCode)
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
@ SelfManagedIoEventSuspend
@ SelfManagedIoEventCleanup
@ SelfManagedIoEventStart
@ SelfManagedIoEventFlush
@ FxSelfManagedIoFlushing
@ FxSelfManagedIoRestarting
@ FxSelfManagedIoSuspending
@ FxSelfManagedIoInitFailed
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 _Must_inspect_result_
#define UNREFERENCED_PARAMETER(P)
#define TRACE_LEVEL_ERROR
#define TRACE_LEVEL_INFORMATION
#define RtlZeroMemory(Destination, Length)
#define STATUS_INSUFFICIENT_RESOURCES
UCHAR History[FxSelfManagedIoEventQueueDepth]
UCHAR History[FxSelfManagedIoEventQueueDepth]