]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/PrePi/PrePi.h
BeagleBoardPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BeagleBoardPkg / PrePi / PrePi.h
CommitLineData
917c5627
AB
1/** @file\r
2*\r
3* Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
4*\r
a1594be9 5* SPDX-License-Identifier: BSD-2-Clause-Patent\r
917c5627
AB
6*\r
7**/\r
8\r
9#ifndef _PREPI_H_\r
10#define _PREPI_H_\r
11\r
12#include <PiPei.h>\r
13\r
14#include <Library/PcdLib.h>\r
15#include <Library/ArmLib.h>\r
16#include <Library/BaseMemoryLib.h>\r
17#include <Library/DebugLib.h>\r
18#include <Library/IoLib.h>\r
19#include <Library/MemoryAllocationLib.h>\r
20#include <Library/HobLib.h>\r
21#include <Library/SerialPortLib.h>\r
22#include <Library/ArmPlatformLib.h>\r
23\r
24#define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);\r
25\r
26extern UINT64 mSystemMemoryEnd;\r
27\r
28RETURN_STATUS\r
29EFIAPI\r
30TimerConstructor (\r
31 VOID\r
32 );\r
33\r
34VOID\r
35PrePiMain (\r
36 IN UINTN UefiMemoryBase,\r
37 IN UINTN StacksBase,\r
38 IN UINT64 StartTimeStamp\r
39 );\r
40\r
41EFI_STATUS\r
42EFIAPI\r
43MemoryPeim (\r
44 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,\r
45 IN UINT64 UefiMemorySize\r
46 );\r
47\r
48EFI_STATUS\r
49EFIAPI\r
50PlatformPeim (\r
51 VOID\r
52 );\r
53\r
54VOID\r
55PrimaryMain (\r
56 IN UINTN UefiMemoryBase,\r
57 IN UINTN StacksBase,\r
58 IN UINT64 StartTimeStamp\r
59 );\r
60\r
61VOID\r
62SecondaryMain (\r
63 IN UINTN MpId\r
64 );\r
65\r
66// Either implemented by PrePiLib or by MemoryInitPei\r
67VOID\r
68BuildMemoryTypeInformationHob (\r
69 VOID\r
70 );\r
71\r
72EFI_STATUS\r
73GetPlatformPpi (\r
74 IN EFI_GUID *PpiGuid,\r
75 OUT VOID **Ppi\r
76 );\r
77\r
78// Initialize the Architecture specific controllers\r
79VOID\r
80ArchInitialize (\r
81 VOID\r
82 );\r
83\r
84VOID\r
85EFIAPI\r
86ProcessLibraryConstructorList (\r
87 VOID\r
88 );\r
89\r
90#endif /* _PREPI_H_ */\r