]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePi/PrePi.h
ArmPlatformPkg: Introduce ArmPlatformGlobalVariableLib
[mirror_edk2.git] / ArmPlatformPkg / PrePi / PrePi.h
CommitLineData
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
30#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
31\r
32// Vector Table for PrePi Phase\r
33VOID\r
34PrePiVectorTable (\r
35 VOID\r
36 );\r
37\r
38RETURN_STATUS\r
39EFIAPI\r
40TimerConstructor (\r
41 VOID\r
42 );\r
43\r
44VOID\r
45PrePiMain (\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
52EFI_STATUS\r
53EFIAPI\r
54MemoryPeim (\r
d269095b 55 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
56 IN UINT64 UefiMemorySize\r
cd872e40 57 );\r
58\r
59EFI_STATUS\r
60EFIAPI\r
61PlatformPeim (\r
62 VOID\r
63 );\r
64\r
65VOID\r
66PrimaryMain (\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
73VOID\r
74SecondaryMain (\r
0787bc61 75 IN UINTN MpId\r
cd872e40 76 );\r
77\r
78// Either implemented by PrePiLib or by MemoryInitPei\r
79VOID\r
80BuildMemoryTypeInformationHob (\r
81 VOID\r
82 );\r
83\r
84#endif /* _PREPI_H_ */\r