]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVirtualizationPkg/PrePi/PrePi.h
MdeModulePkg/UfsPciHcDxe: Fix EBC build error
[mirror_edk2.git] / ArmPlatformPkg / ArmVirtualizationPkg / PrePi / PrePi.h
1 /** @file
2 *
3 * Copyright (c) 2011-2012, 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 RETURN_STATUS
33 EFIAPI
34 TimerConstructor (
35 VOID
36 );
37
38 VOID
39 PrePiMain (
40 IN UINTN UefiMemoryBase,
41 IN UINTN StacksBase,
42 IN UINTN GlobalVariableBase,
43 IN UINT64 StartTimeStamp
44 );
45
46 EFI_STATUS
47 EFIAPI
48 MemoryPeim (
49 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,
50 IN UINT64 UefiMemorySize
51 );
52
53 EFI_STATUS
54 EFIAPI
55 PlatformPeim (
56 VOID
57 );
58
59 // Either implemented by PrePiLib or by MemoryInitPei
60 VOID
61 BuildMemoryTypeInformationHob (
62 VOID
63 );
64
65 EFI_STATUS
66 GetPlatformPpi (
67 IN EFI_GUID *PpiGuid,
68 OUT VOID **Ppi
69 );
70
71 // Initialize the Architecture specific controllers
72 VOID
73 ArchInitialize (
74 VOID
75 );
76
77 #endif /* _PREPI_H_ */