]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePi/PrePi.h
Arm Packages: Fix builds for XCODE32 toolchain
[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
cd872e40 28#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
29\r
30// Vector Table for PrePi Phase\r
31VOID\r
32PrePiVectorTable (\r
33 VOID\r
34 );\r
35\r
36RETURN_STATUS\r
37EFIAPI\r
38TimerConstructor (\r
39 VOID\r
40 );\r
41\r
42VOID\r
43PrePiMain (\r
44 IN UINTN UefiMemoryBase,\r
c524ffbb 45 IN UINTN StacksBase,\r
46 IN UINTN GlobalVariableBase,\r
cd872e40 47 IN UINT64 StartTimeStamp\r
48 );\r
49\r
50EFI_STATUS\r
51EFIAPI\r
52MemoryPeim (\r
d269095b 53 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
54 IN UINT64 UefiMemorySize\r
cd872e40 55 );\r
56\r
57EFI_STATUS\r
58EFIAPI\r
59PlatformPeim (\r
60 VOID\r
61 );\r
62\r
63VOID\r
64PrimaryMain (\r
65 IN UINTN UefiMemoryBase,\r
c524ffbb 66 IN UINTN StacksBase,\r
67 IN UINTN GlobalVariableBase,\r
cd872e40 68 IN UINT64 StartTimeStamp\r
69 );\r
70\r
71VOID\r
72SecondaryMain (\r
0787bc61 73 IN UINTN MpId\r
cd872e40 74 );\r
75\r
76// Either implemented by PrePiLib or by MemoryInitPei\r
77VOID\r
78BuildMemoryTypeInformationHob (\r
79 VOID\r
80 );\r
81\r
82#endif /* _PREPI_H_ */\r