]>
Commit | Line | Data |
---|---|---|
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 |
32 | extern UINT64 mSystemMemoryEnd;\r |
33 | \r | |
cd872e40 | 34 | RETURN_STATUS\r |
35 | EFIAPI\r | |
36 | TimerConstructor (\r | |
37 | VOID\r | |
38 | );\r | |
39 | \r | |
40 | VOID\r | |
41 | PrePiMain (\r | |
42 | IN UINTN UefiMemoryBase,\r | |
c524ffbb | 43 | IN UINTN StacksBase,\r |
cd872e40 | 44 | IN UINT64 StartTimeStamp\r |
45 | );\r | |
46 | \r | |
47 | EFI_STATUS\r | |
48 | EFIAPI\r | |
49 | MemoryPeim (\r | |
d269095b | 50 | IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r |
51 | IN UINT64 UefiMemorySize\r | |
cd872e40 | 52 | );\r |
53 | \r | |
54 | EFI_STATUS\r | |
55 | EFIAPI\r | |
56 | PlatformPeim (\r | |
57 | VOID\r | |
58 | );\r | |
59 | \r | |
60 | VOID\r | |
61 | PrimaryMain (\r | |
62 | IN UINTN UefiMemoryBase,\r | |
c524ffbb | 63 | IN UINTN StacksBase,\r |
cd872e40 | 64 | IN UINT64 StartTimeStamp\r |
65 | );\r | |
66 | \r | |
67 | VOID\r | |
68 | SecondaryMain (\r | |
0787bc61 | 69 | IN UINTN MpId\r |
cd872e40 | 70 | );\r |
71 | \r | |
72 | // Either implemented by PrePiLib or by MemoryInitPei\r | |
73 | VOID\r | |
74 | BuildMemoryTypeInformationHob (\r | |
75 | VOID\r | |
76 | );\r | |
77 | \r | |
0dbbacdf | 78 | EFI_STATUS\r |
79 | GetPlatformPpi (\r | |
80 | IN EFI_GUID *PpiGuid,\r | |
81 | OUT VOID **Ppi\r | |
82 | );\r | |
83 | \r | |
1bc83266 HL |
84 | // Initialize the Architecture specific controllers\r |
85 | VOID\r | |
86 | ArchInitialize (\r | |
87 | VOID\r | |
88 | );\r | |
89 | \r | |
cd872e40 | 90 | #endif /* _PREPI_H_ */\r |