ReactOS 0.4.15-dev-7942-gd23573b
FxRegisterResourceInfo Struct Reference

#include <fxresource.hpp>

Inheritance diagram for FxRegisterResourceInfo:
Collaboration diagram for FxRegisterResourceInfo:

Public Member Functions

 FxRegisterResourceInfo (VOID)
 
 ~FxRegisterResourceInfo ()
 
VOID SetPhysicalAddress (__in PHYSICAL_ADDRESS StartPa, __in SIZE_T Length)
 
VOID SetMappedAddress (__in PVOID SystemBaseAddress, __in SIZE_T MappedLength, __in PVOID UsermodeBaseAddress)
 
VOID ClearMappedAddress (VOID)
 
- 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_ FxRegisterResourceInfo **RegisterTable)
 

Public Attributes

PHYSICAL_ADDRESS m_StartPa
 
PVOID m_StartSystemVa
 
PVOID m_EndSystemVa
 
PVOID m_StartUsermodeVa
 
SIZE_T m_Length
 
SIZE_T m_MappedLength
 

Additional Inherited Members

- Protected Member Functions inherited from FxStump
 FxStump (VOID)
 

Detailed Description

Definition at line 38 of file fxresource.hpp.

Constructor & Destructor Documentation

◆ FxRegisterResourceInfo()

FxRegisterResourceInfo::FxRegisterResourceInfo ( VOID  )
inline

Definition at line 98 of file fxresource.hpp.

100 :
104 m_Length(0),
106 {
108 };
#define NULL
Definition: types.h:112
PHYSICAL_ADDRESS m_StartPa
Definition: fxresource.hpp:42
LONGLONG QuadPart
Definition: typedefs.h:114

◆ ~FxRegisterResourceInfo()

FxRegisterResourceInfo::~FxRegisterResourceInfo ( )
inline

Definition at line 110 of file fxresource.hpp.

110{;};

Member Function Documentation

◆ _CreateAndInit()

static NTSTATUS FxRegisterResourceInfo::_CreateAndInit ( _In_ PFX_DRIVER_GLOBALS  DriverGlobals,
_In_ ULONG  Count,
_Out_ FxRegisterResourceInfo **  RegisterTable 
)
inlinestatic

Definition at line 71 of file fxresource.hpp.

76 {
79
80 ASSERT(RegisterTable != NULL);
81 *RegisterTable = NULL;
82
84 if (table == NULL) {
88 "Failed to allocate Resource table %!STATUS!", status);
89 return status;
90 }
91
92 *RegisterTable = table;
94
95 return status;
96 }
LONG NTSTATUS
Definition: precomp.h:26
#define TRACINGPNP
Definition: dbgtrace.h:67
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::BuildRegisterResourceTable().

◆ ClearMappedAddress()

VOID FxRegisterResourceInfo::ClearMappedAddress ( VOID  )
inline

Definition at line 136 of file fxresource.hpp.

139 {
143 m_MappedLength = 0;
144 };

◆ SetMappedAddress()

VOID FxRegisterResourceInfo::SetMappedAddress ( __in PVOID  SystemBaseAddress,
__in SIZE_T  MappedLength,
__in PVOID  UsermodeBaseAddress 
)
inline

Definition at line 123 of file fxresource.hpp.

128 {
129 m_StartSystemVa = SystemBaseAddress;
130 m_MappedLength = MappedLength;
131 m_EndSystemVa = ((PUCHAR) m_StartSystemVa) + MappedLength - 1;
132 m_StartUsermodeVa = UsermodeBaseAddress;
133 };
unsigned char * PUCHAR
Definition: typedefs.h:53

◆ SetPhysicalAddress()

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

Definition at line 113 of file fxresource.hpp.

117 {
118 m_StartPa = StartPa;
120 }
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

Referenced by FxCmResList::BuildRegisterResourceTable().

Member Data Documentation

◆ m_EndSystemVa

PVOID FxRegisterResourceInfo::m_EndSystemVa

Definition at line 52 of file fxresource.hpp.

Referenced by ClearMappedAddress(), and SetMappedAddress().

◆ m_Length

SIZE_T FxRegisterResourceInfo::m_Length

Definition at line 62 of file fxresource.hpp.

Referenced by SetPhysicalAddress().

◆ m_MappedLength

SIZE_T FxRegisterResourceInfo::m_MappedLength

Definition at line 67 of file fxresource.hpp.

Referenced by ClearMappedAddress(), and SetMappedAddress().

◆ m_StartPa

PHYSICAL_ADDRESS FxRegisterResourceInfo::m_StartPa

Definition at line 42 of file fxresource.hpp.

Referenced by FxRegisterResourceInfo(), and SetPhysicalAddress().

◆ m_StartSystemVa

PVOID FxRegisterResourceInfo::m_StartSystemVa

Definition at line 47 of file fxresource.hpp.

Referenced by ClearMappedAddress(), and SetMappedAddress().

◆ m_StartUsermodeVa

PVOID FxRegisterResourceInfo::m_StartUsermodeVa

Definition at line 57 of file fxresource.hpp.

Referenced by ClearMappedAddress(), and SetMappedAddress().


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