ReactOS 0.4.15-dev-8100-g1887773
FxPortResourceInfo Struct Reference

#include <fxresource.hpp>

Inheritance diagram for FxPortResourceInfo:
Collaboration diagram for FxPortResourceInfo:

Public Member Functions

 FxPortResourceInfo (VOID)
 
 ~FxPortResourceInfo ()
 
VOID SetPhysicalAddress (__in PHYSICAL_ADDRESS StartPa, __in SIZE_T Length)
 
- Public Member Functions inherited from FxStump
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType)
 
VOID operator delete (__in PVOID pointer)
 
PVOID operator new[] (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals)
 
VOID operator delete[] (__in PVOID pointer)
 

Static Public Member Functions

static NTSTATUS _CreateAndInit (_In_ PFX_DRIVER_GLOBALS DriverGlobals, _In_ ULONG Count, _Out_ FxPortResourceInfo **PortTable)
 

Public Attributes

PHYSICAL_ADDRESS m_StartPa
 
PHYSICAL_ADDRESS m_EndPa
 
SIZE_T m_Length
 

Additional Inherited Members

- Protected Member Functions inherited from FxStump
 FxStump (VOID)
 

Detailed Description

Definition at line 148 of file fxresource.hpp.

Constructor & Destructor Documentation

◆ FxPortResourceInfo()

FxPortResourceInfo::FxPortResourceInfo ( VOID  )
inline

Definition at line 193 of file fxresource.hpp.

195 :
196 m_Length(0)
197 {
199 m_EndPa.QuadPart = 0;
200 };
PHYSICAL_ADDRESS m_EndPa
Definition: fxresource.hpp:157
PHYSICAL_ADDRESS m_StartPa
Definition: fxresource.hpp:152
LONGLONG QuadPart
Definition: typedefs.h:114

◆ ~FxPortResourceInfo()

FxPortResourceInfo::~FxPortResourceInfo ( )
inline

Definition at line 202 of file fxresource.hpp.

202{;};

Member Function Documentation

◆ _CreateAndInit()

static NTSTATUS FxPortResourceInfo::_CreateAndInit ( _In_ PFX_DRIVER_GLOBALS  DriverGlobals,
_In_ ULONG  Count,
_Out_ FxPortResourceInfo **  PortTable 
)
inlinestatic

Definition at line 166 of file fxresource.hpp.

171 {
174
175 ASSERT(PortTable != NULL);
176 *PortTable = NULL;
177
179 if (table == NULL) {
183 "Failed to allocate Resource table %!STATUS!", status);
184 return status;
185 }
186
187 *PortTable = table;
189
190 return status;
191 }
LONG NTSTATUS
Definition: precomp.h:26
#define TRACINGPNP
Definition: dbgtrace.h:67
#define NULL
Definition: types.h:112
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
DriverGlobals
#define ASSERT(a)
Definition: mode.c:44
int Count
Definition: noreturn.cpp:7
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE_LEVEL_ERROR
Definition: storswtr.h:27
Definition: ps.c:97
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158

Referenced by FxCmResList::BuildPortResourceTable().

◆ SetPhysicalAddress()

VOID FxPortResourceInfo::SetPhysicalAddress ( __in PHYSICAL_ADDRESS  StartPa,
__in SIZE_T  Length 
)
inline

Definition at line 205 of file fxresource.hpp.

209 {
210 m_StartPa = StartPa;
211 m_EndPa.QuadPart = StartPa.QuadPart + Length - 1;
213 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

Referenced by FxCmResList::BuildPortResourceTable().

Member Data Documentation

◆ m_EndPa

PHYSICAL_ADDRESS FxPortResourceInfo::m_EndPa

Definition at line 157 of file fxresource.hpp.

Referenced by FxPortResourceInfo(), and SetPhysicalAddress().

◆ m_Length

SIZE_T FxPortResourceInfo::m_Length

Definition at line 162 of file fxresource.hpp.

Referenced by SetPhysicalAddress().

◆ m_StartPa

PHYSICAL_ADDRESS FxPortResourceInfo::m_StartPa

Definition at line 152 of file fxresource.hpp.

Referenced by FxPortResourceInfo(), and SetPhysicalAddress().


The documentation for this struct was generated from the following file: