TianoCore EDK2
master
Loading...
Searching...
No Matches
RandomTest.h
Go to the documentation of this file.
1
9
#ifndef RANDOM_TEST_H_
10
#define RANDOM_TEST_H_
11
12
#include "
CpuPageTableLibUnitTest.h
"
13
14
typedef
struct
_ALLOCATE_PAGE_RECORDS
ALLOCATE_PAGE_RECORDS
;
15
16
typedef
17
VOID *
18
(EFIAPI *ALLOCATE_PAGES)(
19
IN
ALLOCATE_PAGE_RECORDS
*PagesRecord,
20
IN
UINTN
Pages
21
);
22
23
typedef
struct
{
24
VOID *Buffer;
25
UINTN
Pages;
26
}
ALLOCATE_PAGE_RECORD
;
27
28
struct
_ALLOCATE_PAGE_RECORDS
{
29
UINTN
Count;
30
UINTN
MaxCount;
31
ALLOCATE_PAGES AllocatePagesForPageTable;
32
ALLOCATE_PAGE_RECORD
Records[0];
33
};
34
35
typedef
struct
{
36
UINT64 LinearAddress;
37
UINT64 Length;
38
IA32_MAP_ATTRIBUTE
Attribute;
39
IA32_MAP_ATTRIBUTE
Mask;
40
}
MAP_ENTRY
;
41
42
typedef
struct
{
43
UINTN
Count;
44
UINTN
InitCount;
45
UINTN
MaxCount;
46
MAP_ENTRY
Maps[10];
47
}
MAP_ENTRYS
;
48
49
UINT64
50
GetEntryFromPageTable
(
51
IN
UINTN
PageTable,
52
IN
PAGING_MODE PagingMode,
53
IN
UINT64 Address,
54
OUT
UINTN
*Level
55
);
56
57
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
CpuPageTableLibUnitTest.h
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
GetEntryFromPageTable
UINT64 GetEntryFromPageTable(IN UINTN PageTable, IN PAGING_MODE PagingMode, IN UINT64 Address, OUT UINTN *Level)
Definition:
TestHelper.c:267
_ALLOCATE_PAGE_RECORDS
Definition:
RandomTest.h:28
ALLOCATE_PAGE_RECORD
Definition:
RandomTest.h:23
MAP_ENTRY
Definition:
RandomTest.h:35
MAP_ENTRYS
Definition:
RandomTest.h:42
IA32_MAP_ATTRIBUTE
Definition:
CpuPageTableLib.h:12
UefiCpuPkg
Library
CpuPageTableLib
UnitTest
RandomTest.h
Generated on Fri Nov 15 2024 18:01:26 for TianoCore EDK2 by
1.9.6