]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/PrePi/PrePi.h
ArmVirtPkg: adapt ArmVirtXen build to system memory end global variable
[mirror_edk2.git] / ArmVirtPkg / PrePi / PrePi.h
CommitLineData
f9a9d2dc
AB
1/** @file\r
2*\r
3* Copyright (c) 2011-2012, 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/BaseMemoryLib.h>\r
23#include <Library/DebugLib.h>\r
24#include <Library/IoLib.h>\r
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
30#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
31\r
f7b0d3f2
AB
32extern UINT64 mSystemMemoryEnd;\r
33\r
f9a9d2dc
AB
34RETURN_STATUS\r
35EFIAPI\r
36TimerConstructor (\r
37 VOID\r
38 );\r
39\r
40VOID\r
41PrePiMain (\r
42 IN UINTN UefiMemoryBase,\r
43 IN UINTN StacksBase,\r
44 IN UINTN GlobalVariableBase,\r
45 IN UINT64 StartTimeStamp\r
46 );\r
47\r
48EFI_STATUS\r
49EFIAPI\r
50MemoryPeim (\r
51 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
52 IN UINT64 UefiMemorySize\r
53 );\r
54\r
55EFI_STATUS\r
56EFIAPI\r
57PlatformPeim (\r
58 VOID\r
59 );\r
60\r
61// Either implemented by PrePiLib or by MemoryInitPei\r
62VOID\r
63BuildMemoryTypeInformationHob (\r
64 VOID\r
65 );\r
66\r
67EFI_STATUS\r
68GetPlatformPpi (\r
69 IN EFI_GUID *PpiGuid,\r
70 OUT VOID **Ppi\r
71 );\r
72\r
73// Initialize the Architecture specific controllers\r
74VOID\r
75ArchInitialize (\r
76 VOID\r
77 );\r
78\r
79#endif /* _PREPI_H_ */\r