#include <rtl.h>
#include <debug.h>
Go to the source code of this file.
|
| static ULONGLONG | RtlpDecodeMemIoValue (_In_ UCHAR Type, _In_ USHORT Flags, _In_ ULONG Encoded) |
| |
| ULONGLONG NTAPI | RtlCmDecodeMemIoResource (_In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor, _Out_opt_ PULONGLONG Start) |
| |
| ULONGLONG NTAPI | RtlIoDecodeMemIoResource (_In_ PIO_RESOURCE_DESCRIPTOR Descriptor, _Out_opt_ PULONGLONG Alignment, _Out_opt_ PULONGLONG MinimumAddress, _Out_opt_ PULONGLONG MaximumAddress) |
| |
| NTSTATUS NTAPI | RtlCmEncodeMemIoResource (_In_ PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor, _In_ UCHAR Type, _In_ ULONGLONG Length, _In_ ULONGLONG Start) |
| |
| static BOOLEAN | RtlpEncodeLargeAlignment (_In_ ULONGLONG Alignment, _In_ ULONG Shift, _Out_ PULONG Encoded) |
| |
| NTSTATUS NTAPI | RtlIoEncodeMemIoResource (_In_ PIO_RESOURCE_DESCRIPTOR Descriptor, _In_ UCHAR Type, _In_ ULONGLONG Length, _In_ ULONGLONG Alignment, _In_ ULONGLONG MinimumAddress, _In_ ULONGLONG MaximumAddress) |
| |
| NTSTATUS NTAPI | RtlFindClosestEncodableLength (_In_ ULONGLONG SourceLength, _Out_ PULONGLONG TargetLength) |
| |
◆ NDEBUG
◆ RtlCmDecodeMemIoResource()
Definition at line 58 of file memres.c.
61{
64
68}
static _Out_opt_ PULONGLONG Start
static ULONGLONG RtlpDecodeMemIoValue(_In_ UCHAR Type, _In_ USHORT Flags, _In_ ULONG Encoded)
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
◆ RtlCmEncodeMemIoResource()
Definition at line 116 of file memres.c.
121{
125 {
127 }
128
129
131 {
134
139 }
140
141
142 Descriptor->Flags &= ~CM_RESOURCE_MEMORY_LARGE;
144
145
147 {
151 }
152
153
155 {
158 }
160 {
163 }
165 {
168 }
169 else
170 {
172 }
173
176}
#define CM_RESOURCE_MEMORY_LARGE_40
#define CM_RESOURCE_MEMORY_LARGE_64
#define CM_RESOURCE_MEMORY_LARGE_48
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define CmResourceTypeMemory
#define CmResourceTypePort
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define CmResourceTypeMemoryLarge
◆ RtlFindClosestEncodableLength()
Definition at line 310 of file memres.c.
313{
322 else
323 {
326 }
327
329}
static _Out_ PULONGLONG TargetLength
◆ RtlIoDecodeMemIoResource()
Definition at line 79 of file memres.c.
84{
86 {
90 }
91
94
97
101}
static _Out_opt_ PULONGLONG _Out_opt_ PULONGLONG MinimumAddress
static _Out_opt_ PULONGLONG _Out_opt_ PULONGLONG _Out_opt_ PULONGLONG MaximumAddress
◆ RtlIoEncodeMemIoResource()
Definition at line 215 of file memres.c.
222{
225
229 {
231 }
232
233
235 {
238
245 }
246
247
248 Descriptor->Flags &= ~CM_RESOURCE_MEMORY_LARGE;
251
252
254 {
259 }
260
261
263 {
266
269 }
271 {
274
277 }
279 {
282 }
283 else
284 {
286 }
287
288
291
294
299}
static BOOLEAN RtlpEncodeLargeAlignment(_In_ ULONGLONG Alignment, _In_ ULONG Shift, _Out_ PULONG Encoded)
◆ RtlpDecodeMemIoValue()
◆ RtlpEncodeLargeAlignment()