TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiPayloadEntry.h
Go to the documentation of this file.
1
9#ifndef __UEFI_PAYLOAD_ENTRY_H__
10#define __UEFI_PAYLOAD_ENTRY_H__
11
12#include <PiPei.h>
13
14#include <Library/BaseLib.h>
17#include <Library/DebugLib.h>
18#include <Library/PeCoffLib.h>
19#include <Library/HobLib.h>
20#include <Library/PcdLib.h>
22#include <Library/IoLib.h>
23#include <Library/PeCoffLib.h>
24#include <Library/BlParseLib.h>
26#include <Library/CpuLib.h>
40
41#define LEGACY_8259_MASK_REGISTER_MASTER 0x21
42#define LEGACY_8259_MASK_REGISTER_SLAVE 0xA1
43#define GET_OCCUPIED_SIZE(ActualSize, Alignment) \
44 ((ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1)))
45
46#define E820_RAM 1
47#define E820_RESERVED 2
48#define E820_ACPI 3
49#define E820_NVS 4
50#define E820_UNUSABLE 5
51#define E820_DISABLED 6
52#define E820_PMEM 7
53#define E820_UNDEFINED 8
54
65VOID *
66EFIAPI
68 IN UINT16 HobType,
69 IN UINT16 HobLength
70 );
71
79VOID
80EFIAPI
82 IN EFI_PHYSICAL_ADDRESS BaseAddress,
83 IN UINT64 Length
84 );
85
102EFIAPI
104 IN VOID *EfiMemoryBottom,
105 IN VOID *EfiMemoryTop,
106 IN VOID *EfiFreeMemoryBottom,
107 IN VOID *EfiFreeMemoryTop
108 );
109
120 OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint
121 );
122
135 OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint
136 );
137
144UINT64
145EFIAPI
147 IN VOID *FdtBase
148 );
149
156UINTN
157EFIAPI
159 IN VOID *FdtBase,
160 IN VOID *HostList
161 );
162
172VOID
174 IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint,
176 );
177
181 );
182
197 IN EFI_FFS_FILE_HEADER *FileHeader,
198 IN EFI_SECTION_TYPE SectionType,
199 OUT VOID **SectionData
200 );
201
218 IN EFI_FV_FILETYPE FileType,
219 IN EFI_GUID *Guid OPTIONAL,
220 OUT EFI_FFS_FILE_HEADER **FileHeader
221 );
222
232 IN UINT64 AcpiTableBase
233 );
234
248VOID *
249EFIAPI
251 IN UINTN Pages,
252 IN EFI_MEMORY_TYPE MemoryType
253 );
254
261EFIAPI
263 IN UINTN BootloaderParameter
264 );
265
272EFIAPI
274 IN UINTN BootloaderParameter
275 );
276
277#endif
UINT64 UINTN
#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
VOID HandOffToDxeCore(IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, IN EFI_PEI_HOB_POINTERS HobList)
Definition: DxeHandoff.c:26
EFI_STATUS UniversalLoadDxeCore(IN EFI_FIRMWARE_VOLUME_HEADER *DxeFv, OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint)
Definition: LoadDxeCore.c:327
EFI_STATUS FileFindSection(IN EFI_FFS_FILE_HEADER *FileHeader, IN EFI_SECTION_TYPE SectionType, OUT VOID **SectionData)
Definition: LoadDxeCore.c:201
ACPI_BOARD_INFO * BuildHobFromAcpi(IN UINT64 AcpiTableBase)
Definition: AcpiTable.c:139
VOID *EFIAPI CreateHob(IN UINT16 HobType, IN UINT16 HobLength)
Definition: Hob.c:101
EFI_STATUS FixUpPcdDatabase(IN EFI_FIRMWARE_VOLUME_HEADER *DxeFv)
EFI_HOB_HANDOFF_INFO_TABLE *EFIAPI HobConstructor(IN VOID *EfiMemoryBottom, IN VOID *EfiMemoryTop, IN VOID *EfiFreeMemoryBottom, IN VOID *EfiFreeMemoryTop)
Definition: Hob.c:54
UINT64 EFIAPI FdtNodeParser(IN VOID *FdtBase)
EFI_STATUS LoadDxeCore(OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint)
Definition: LoadDxeCore.c:259
VOID EFIAPI UpdateStackHob(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
Definition: Hob.c:731
EFI_STATUS FvFindFileByTypeGuid(IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader, IN EFI_FV_FILETYPE FileType, IN EFI_GUID *Guid OPTIONAL, OUT EFI_FFS_FILE_HEADER **FileHeader)
Definition: LoadDxeCore.c:131
VOID *EFIAPI PayloadAllocatePages(IN UINTN Pages, IN EFI_MEMORY_TYPE MemoryType)
EFI_STATUS EFIAPI UplEntryPoint(IN UINTN BootloaderParameter)
UINTN EFIAPI CustomFdtNodeParser(IN VOID *FdtBase, IN VOID *HostList)
EFI_STATUS EFIAPI FitUplEntryPoint(IN UINTN BootloaderParameter)
Definition: Base.h:213