]>
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 | |
22 | #include <Library/DebugLib.h>\r | |
23 | #include <Library/MemoryAllocationLib.h>\r | |
24 | #include <Library/HobLib.h>\r | |
25 | #include <Library/SerialPortLib.h>\r | |
26 | #include <Library/ArmPlatformLib.h>\r | |
27 | \r | |
28 | #include <Chipset/ArmV7.h>\r | |
29 | \r | |
d269095b | 30 | #define ARM_PRIMARY_CORE 0\r |
cd872e40 | 31 | #define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r |
32 | \r | |
33 | // Vector Table for PrePi Phase\r | |
34 | VOID\r | |
35 | PrePiVectorTable (\r | |
36 | VOID\r | |
37 | );\r | |
38 | \r | |
39 | RETURN_STATUS\r | |
40 | EFIAPI\r | |
41 | TimerConstructor (\r | |
42 | VOID\r | |
43 | );\r | |
44 | \r | |
45 | VOID\r | |
46 | PrePiMain (\r | |
47 | IN UINTN UefiMemoryBase,\r | |
cd872e40 | 48 | IN UINT64 StartTimeStamp\r |
49 | );\r | |
50 | \r | |
51 | EFI_STATUS\r | |
52 | EFIAPI\r | |
53 | MemoryPeim (\r | |
d269095b | 54 | IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r |
55 | IN UINT64 UefiMemorySize\r | |
cd872e40 | 56 | );\r |
57 | \r | |
58 | EFI_STATUS\r | |
59 | EFIAPI\r | |
60 | PlatformPeim (\r | |
61 | VOID\r | |
62 | );\r | |
63 | \r | |
64 | VOID\r | |
65 | PrimaryMain (\r | |
66 | IN UINTN UefiMemoryBase,\r | |
cd872e40 | 67 | IN UINT64 StartTimeStamp\r |
68 | );\r | |
69 | \r | |
70 | VOID\r | |
71 | SecondaryMain (\r | |
72 | IN UINTN CoreId\r | |
73 | );\r | |
74 | \r | |
75 | // Either implemented by PrePiLib or by MemoryInitPei\r | |
76 | VOID\r | |
77 | BuildMemoryTypeInformationHob (\r | |
78 | VOID\r | |
79 | );\r | |
80 | \r | |
81 | #endif /* _PREPI_H_ */\r |