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