]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePi/PrePi.h
FatBinPkg: Update EBC/IA32/X64/IPF binaries
[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
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14\r
15#ifndef _PREPI_H_\r
16#define _PREPI_H_\r
17\r
18#include <PiPei.h>\r
19\r
20#include <Library/PcdLib.h>\r
21#include <Library/ArmLib.h>\r
99565b88 22#include <Library/BaseMemoryLib.h>\r
cd872e40 23#include <Library/DebugLib.h>\r
99565b88 24#include <Library/IoLib.h>\r
cd872e40 25#include <Library/MemoryAllocationLib.h>\r
26#include <Library/HobLib.h>\r
27#include <Library/SerialPortLib.h>\r
28#include <Library/ArmPlatformLib.h>\r
29\r
cd872e40 30#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
31\r
5dbacdb2
OM
32extern UINT64 mSystemMemoryEnd;\r
33\r
cd872e40 34RETURN_STATUS\r
35EFIAPI\r
36TimerConstructor (\r
37 VOID\r
38 );\r
39\r
40VOID\r
41PrePiMain (\r
42 IN UINTN UefiMemoryBase,\r
c524ffbb 43 IN UINTN StacksBase,\r
44 IN UINTN GlobalVariableBase,\r
cd872e40 45 IN UINT64 StartTimeStamp\r
46 );\r
47\r
48EFI_STATUS\r
49EFIAPI\r
50MemoryPeim (\r
d269095b 51 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
52 IN UINT64 UefiMemorySize\r
cd872e40 53 );\r
54\r
55EFI_STATUS\r
56EFIAPI\r
57PlatformPeim (\r
58 VOID\r
59 );\r
60\r
61VOID\r
62PrimaryMain (\r
63 IN UINTN UefiMemoryBase,\r
c524ffbb 64 IN UINTN StacksBase,\r
65 IN UINTN GlobalVariableBase,\r
cd872e40 66 IN UINT64 StartTimeStamp\r
67 );\r
68\r
69VOID\r
70SecondaryMain (\r
0787bc61 71 IN UINTN MpId\r
cd872e40 72 );\r
73\r
74// Either implemented by PrePiLib or by MemoryInitPei\r
75VOID\r
76BuildMemoryTypeInformationHob (\r
77 VOID\r
78 );\r
79\r
0dbbacdf 80EFI_STATUS\r
81GetPlatformPpi (\r
82 IN EFI_GUID *PpiGuid,\r
83 OUT VOID **Ppi\r
84 );\r
85\r
1bc83266
HL
86// Initialize the Architecture specific controllers\r
87VOID\r
88ArchInitialize (\r
89 VOID\r
90 );\r
91\r
cd872e40 92#endif /* _PREPI_H_ */\r