]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePi/PrePi.h
MdeModulePkg: introduce PE/COFF image emulator protocol
[mirror_edk2.git] / ArmPlatformPkg / PrePi / PrePi.h
CommitLineData
cd872e40 1/** @file\r
2*\r
5dbacdb2 3* Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
cd872e40 4*\r
f4dfad05 5* SPDX-License-Identifier: BSD-2-Clause-Patent\r
cd872e40 6*\r
7**/\r
8\r
9#ifndef _PREPI_H_\r
10#define _PREPI_H_\r
11\r
12#include <PiPei.h>\r
13\r
14#include <Library/PcdLib.h>\r
15#include <Library/ArmLib.h>\r
99565b88 16#include <Library/BaseMemoryLib.h>\r
cd872e40 17#include <Library/DebugLib.h>\r
99565b88 18#include <Library/IoLib.h>\r
cd872e40 19#include <Library/MemoryAllocationLib.h>\r
20#include <Library/HobLib.h>\r
21#include <Library/SerialPortLib.h>\r
22#include <Library/ArmPlatformLib.h>\r
23\r
cd872e40 24#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
25\r
5dbacdb2
OM
26extern UINT64 mSystemMemoryEnd;\r
27\r
cd872e40 28RETURN_STATUS\r
29EFIAPI\r
30TimerConstructor (\r
31 VOID\r
32 );\r
33\r
34VOID\r
35PrePiMain (\r
36 IN UINTN UefiMemoryBase,\r
c524ffbb 37 IN UINTN StacksBase,\r
cd872e40 38 IN UINT64 StartTimeStamp\r
39 );\r
40\r
41EFI_STATUS\r
42EFIAPI\r
43MemoryPeim (\r
d269095b 44 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
45 IN UINT64 UefiMemorySize\r
cd872e40 46 );\r
47\r
48EFI_STATUS\r
49EFIAPI\r
50PlatformPeim (\r
51 VOID\r
52 );\r
53\r
54VOID\r
55PrimaryMain (\r
56 IN UINTN UefiMemoryBase,\r
c524ffbb 57 IN UINTN StacksBase,\r
cd872e40 58 IN UINT64 StartTimeStamp\r
59 );\r
60\r
61VOID\r
62SecondaryMain (\r
0787bc61 63 IN UINTN MpId\r
cd872e40 64 );\r
65\r
66// Either implemented by PrePiLib or by MemoryInitPei\r
67VOID\r
68BuildMemoryTypeInformationHob (\r
69 VOID\r
70 );\r
71\r
0dbbacdf 72EFI_STATUS\r
73GetPlatformPpi (\r
74 IN EFI_GUID *PpiGuid,\r
75 OUT VOID **Ppi\r
76 );\r
77\r
1bc83266
HL
78// Initialize the Architecture specific controllers\r
79VOID\r
80ArchInitialize (\r
81 VOID\r
82 );\r
83\r
6efd58aa
AB
84VOID\r
85EFIAPI\r
86ProcessLibraryConstructorList (\r
87 VOID\r
88 );\r
89\r
cd872e40 90#endif /* _PREPI_H_ */\r