]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/PrePi/PrePi.h
ArmVirtPkg/PrePi: remove dependency on ArmPlatformLib
[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
f9a9d2dc
AB
28\r
29#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
30\r
31RETURN_STATUS\r
32EFIAPI\r
33TimerConstructor (\r
34 VOID\r
35 );\r
36\r
37VOID\r
38PrePiMain (\r
39 IN UINTN UefiMemoryBase,\r
40 IN UINTN StacksBase,\r
f9a9d2dc
AB
41 IN UINT64 StartTimeStamp\r
42 );\r
43\r
44EFI_STATUS\r
45EFIAPI\r
46MemoryPeim (\r
47 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
48 IN UINT64 UefiMemorySize\r
49 );\r
50\r
51EFI_STATUS\r
52EFIAPI\r
53PlatformPeim (\r
54 VOID\r
55 );\r
56\r
57// Either implemented by PrePiLib or by MemoryInitPei\r
58VOID\r
59BuildMemoryTypeInformationHob (\r
60 VOID\r
61 );\r
62\r
f9a9d2dc
AB
63// Initialize the Architecture specific controllers\r
64VOID\r
65ArchInitialize (\r
66 VOID\r
67 );\r
68\r
69#endif /* _PREPI_H_ */\r