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
13
15
16typedef
17VOID *
18(EFIAPI *ALLOCATE_PAGES)(
19 IN ALLOCATE_PAGE_RECORDS *PagesRecord,
20 IN UINTN Pages
21 );
22
23typedef struct {
24 VOID *Buffer;
25 UINTN Pages;
27
29 UINTN Count;
30 UINTN MaxCount;
31 ALLOCATE_PAGES AllocatePagesForPageTable;
32 ALLOCATE_PAGE_RECORD Records[0];
33};
34
35typedef struct {
36 UINT64 LinearAddress;
37 UINT64 Length;
38 IA32_MAP_ATTRIBUTE Attribute;
40} MAP_ENTRY;
41
42typedef struct {
43 UINTN Count;
44 UINTN InitCount;
45 UINTN MaxCount;
46 MAP_ENTRY Maps[10];
48
49UINT64
51 IN UINTN PageTable,
52 IN PAGING_MODE PagingMode,
53 IN UINT64 Address,
54 OUT UINTN *Level
55 );
56
57#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 GetEntryFromPageTable(IN UINTN PageTable, IN PAGING_MODE PagingMode, IN UINT64 Address, OUT UINTN *Level)
Definition: TestHelper.c:267