]>
Commit | Line | Data |
---|---|---|
cd872e40 | 1 | /** @file\r |
2 | *\r | |
3 | * Copyright (c) 2011, ARM Limited. All rights reserved.\r | |
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 | |
32 | // Vector Table for PrePi Phase\r | |
33 | VOID\r | |
34 | PrePiVectorTable (\r | |
35 | VOID\r | |
36 | );\r | |
37 | \r | |
38 | RETURN_STATUS\r | |
39 | EFIAPI\r | |
40 | TimerConstructor (\r | |
41 | VOID\r | |
42 | );\r | |
43 | \r | |
44 | VOID\r | |
45 | PrePiMain (\r | |
46 | IN UINTN UefiMemoryBase,\r | |
c524ffbb | 47 | IN UINTN StacksBase,\r |
48 | IN UINTN GlobalVariableBase,\r | |
cd872e40 | 49 | IN UINT64 StartTimeStamp\r |
50 | );\r | |
51 | \r | |
52 | EFI_STATUS\r | |
53 | EFIAPI\r | |
54 | MemoryPeim (\r | |
d269095b | 55 | IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r |
56 | IN UINT64 UefiMemorySize\r | |
cd872e40 | 57 | );\r |
58 | \r | |
59 | EFI_STATUS\r | |
60 | EFIAPI\r | |
61 | PlatformPeim (\r | |
62 | VOID\r | |
63 | );\r | |
64 | \r | |
65 | VOID\r | |
66 | PrimaryMain (\r | |
67 | IN UINTN UefiMemoryBase,\r | |
c524ffbb | 68 | IN UINTN StacksBase,\r |
69 | IN UINTN GlobalVariableBase,\r | |
cd872e40 | 70 | IN UINT64 StartTimeStamp\r |
71 | );\r | |
72 | \r | |
73 | VOID\r | |
74 | SecondaryMain (\r | |
0787bc61 | 75 | IN UINTN MpId\r |
cd872e40 | 76 | );\r |
77 | \r | |
78 | // Either implemented by PrePiLib or by MemoryInitPei\r | |
79 | VOID\r | |
80 | BuildMemoryTypeInformationHob (\r | |
81 | VOID\r | |
82 | );\r | |
83 | \r | |
84 | #endif /* _PREPI_H_ */\r |