]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePi/PrePi.h
FatBinPkg: Update EBC/IA32/X64/IPF binaries
[mirror_edk2.git] / ArmPlatformPkg / PrePi / PrePi.h
1 /** @file
2 *
3 * Copyright (c) 2011-2015, ARM Limited. All rights reserved.
4 *
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
9 *
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 *
13 **/
14
15 #ifndef _PREPI_H_
16 #define _PREPI_H_
17
18 #include <PiPei.h>
19
20 #include <Library/PcdLib.h>
21 #include <Library/ArmLib.h>
22 #include <Library/BaseMemoryLib.h>
23 #include <Library/DebugLib.h>
24 #include <Library/IoLib.h>
25 #include <Library/MemoryAllocationLib.h>
26 #include <Library/HobLib.h>
27 #include <Library/SerialPortLib.h>
28 #include <Library/ArmPlatformLib.h>
29
30 #define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);
31
32 extern UINT64 mSystemMemoryEnd;
33
34 RETURN_STATUS
35 EFIAPI
36 TimerConstructor (
37 VOID
38 );
39
40 VOID
41 PrePiMain (
42 IN UINTN UefiMemoryBase,
43 IN UINTN StacksBase,
44 IN UINTN GlobalVariableBase,
45 IN UINT64 StartTimeStamp
46 );
47
48 EFI_STATUS
49 EFIAPI
50 MemoryPeim (
51 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,
52 IN UINT64 UefiMemorySize
53 );
54
55 EFI_STATUS
56 EFIAPI
57 PlatformPeim (
58 VOID
59 );
60
61 VOID
62 PrimaryMain (
63 IN UINTN UefiMemoryBase,
64 IN UINTN StacksBase,
65 IN UINTN GlobalVariableBase,
66 IN UINT64 StartTimeStamp
67 );
68
69 VOID
70 SecondaryMain (
71 IN UINTN MpId
72 );
73
74 // Either implemented by PrePiLib or by MemoryInitPei
75 VOID
76 BuildMemoryTypeInformationHob (
77 VOID
78 );
79
80 EFI_STATUS
81 GetPlatformPpi (
82 IN EFI_GUID *PpiGuid,
83 OUT VOID **Ppi
84 );
85
86 // Initialize the Architecture specific controllers
87 VOID
88 ArchInitialize (
89 VOID
90 );
91
92 #endif /* _PREPI_H_ */