ReactOS 0.4.17-dev-1281-g065abb3
portsm.cpp File Reference
#include "usbhub3.h"
Include dependency graph for portsm.cpp:

Go to the source code of this file.

Functions

static BOOLEAN NTAPI PsmHasFlag (_In_ const PortMachine::State *Target, _In_ ULONG Flag)
 

Variables

static const PortEvent IdleRequests []
 
static const PortEvent OffAttachedDrops []
 
static const PortEvent RemovedAndStopped []
 
static const PortEvent StatusAndRemoved []
 
static const PortEvent GoneOnly []
 

Function Documentation

◆ PsmHasFlag()

static BOOLEAN NTAPI PsmHasFlag ( _In_ const PortMachine::State *  Target,
_In_ ULONG  Flag 
)
static

Definition at line 202 of file portsm.cpp.

205{
206 for (; Target != NULL; Target = Target->Parent)
207 {
208 if (Target->Flags & Flag)
209 return TRUE;
210 }
211
212 return FALSE;
213}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
Definition: xml2sdb.h:103
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306

Referenced by PortMachine::AllowsHubSuspend(), and PortMachine::SmStateChanged().

Variable Documentation

◆ GoneOnly

const PortEvent GoneOnly[]
static
Initial value:

Definition at line 94 of file portsm.cpp.

◆ IdleRequests

◆ OffAttachedDrops

◆ RemovedAndStopped

const PortEvent RemovedAndStopped[]
static
Initial value:

Definition at line 84 of file portsm.cpp.

◆ StatusAndRemoved

const PortEvent StatusAndRemoved[]
static
Initial value:

Definition at line 89 of file portsm.cpp.