TianoCore EDK2 master
Loading...
Searching...
No Matches
Imem.h
Go to the documentation of this file.
1
9#ifndef _IMEM_H_
10#define _IMEM_H_
11
12//
13// MEMORY_MAP_ENTRY
14//
15
16#define MEMORY_MAP_SIGNATURE SIGNATURE_32('m','m','a','p')
17typedef struct {
18 UINTN Signature;
19 LIST_ENTRY Link;
20 BOOLEAN FromPages;
21
22 EFI_MEMORY_TYPE Type;
23 UINT64 Start;
24 UINT64 End;
25
26 UINT64 VirtualStart;
27 UINT64 Attribute;
29
30//
31// Internal prototypes
32//
33
46VOID *
48 IN EFI_MEMORY_TYPE PoolType,
49 IN UINTN NumberOfPages,
50 IN UINTN Alignment,
51 IN BOOLEAN NeedGuard
52 );
53
61VOID
64 IN UINTN NumberOfPages
65 );
66
78VOID *
80 IN EFI_MEMORY_TYPE PoolType,
81 IN UINTN Size,
82 IN BOOLEAN NeedGuard
83 );
84
98 IN VOID *Buffer,
99 OUT EFI_MEMORY_TYPE *PoolType OPTIONAL
100 );
101
106VOID
108 VOID
109 );
110
115VOID
117 VOID
118 );
119
140EFIAPI
143 IN EFI_MEMORY_TYPE MemoryType,
144 IN UINTN NumberOfPages,
146 IN BOOLEAN NeedGuard
147 );
148
149//
150// Internal Global data
151//
152
153extern EFI_LOCK gMemoryLock;
154extern LIST_ENTRY gMemoryMap;
155extern LIST_ENTRY mGcdMemorySpaceMap;
156#endif
UINT64 UINTN
EFI_STATUS CoreFreePoolI(IN VOID *Buffer, OUT EFI_MEMORY_TYPE *PoolType OPTIONAL)
Definition: Pool.c:691
VOID * CoreAllocatePoolPages(IN EFI_MEMORY_TYPE PoolType, IN UINTN NumberOfPages, IN UINTN Alignment, IN BOOLEAN NeedGuard)
Definition: Page.c:2196
VOID CoreReleaseMemoryLock(VOID)
Definition: Page.c:115
VOID CoreAcquireMemoryLock(VOID)
Definition: Page.c:103
EFI_STATUS EFIAPI CoreInternalAllocatePages(IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN NumberOfPages, IN OUT EFI_PHYSICAL_ADDRESS *Memory, IN BOOLEAN NeedGuard)
Definition: Page.c:1381
VOID CoreFreePoolPages(IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN NumberOfPages)
Definition: Page.c:2240
VOID * CoreAllocatePoolI(IN EFI_MEMORY_TYPE PoolType, IN UINTN Size, IN BOOLEAN NeedGuard)
Definition: Pool.c:351
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_MEMORY_TYPE
EFI_ALLOCATE_TYPE
Definition: UefiSpec.h:29