]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePi/PrePi.h
ArmPlatformPkg: Change the memory model for the ARM Platform components
[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
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
34VOID\r
35PrePiVectorTable (\r
36 VOID\r
37 );\r
38\r
39RETURN_STATUS\r
40EFIAPI\r
41TimerConstructor (\r
42 VOID\r
43 );\r
44\r
45VOID\r
46PrePiMain (\r
47 IN UINTN UefiMemoryBase,\r
cd872e40 48 IN UINT64 StartTimeStamp\r
49 );\r
50\r
51EFI_STATUS\r
52EFIAPI\r
53MemoryPeim (\r
d269095b 54 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
55 IN UINT64 UefiMemorySize\r
cd872e40 56 );\r
57\r
58EFI_STATUS\r
59EFIAPI\r
60PlatformPeim (\r
61 VOID\r
62 );\r
63\r
64VOID\r
65PrimaryMain (\r
66 IN UINTN UefiMemoryBase,\r
cd872e40 67 IN UINT64 StartTimeStamp\r
68 );\r
69\r
70VOID\r
71SecondaryMain (\r
72 IN UINTN CoreId\r
73 );\r
74\r
75// Either implemented by PrePiLib or by MemoryInitPei\r
76VOID\r
77BuildMemoryTypeInformationHob (\r
78 VOID\r
79 );\r
80\r
81#endif /* _PREPI_H_ */\r