]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePi/PrePi.h
59f597123169dad595a3073c6ae0a5e950fd8341
[mirror_edk2.git] / ArmPlatformPkg / PrePi / PrePi.h
1 /** @file
2 *
3 * Copyright (c) 2011, 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/DebugLib.h>
23 #include <Library/MemoryAllocationLib.h>
24 #include <Library/HobLib.h>
25 #include <Library/SerialPortLib.h>
26 #include <Library/ArmPlatformLib.h>
27
28 #include <Chipset/ArmV7.h>
29
30 #define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);
31
32 // Vector Table for PrePi Phase
33 VOID
34 PrePiVectorTable (
35 VOID
36 );
37
38 RETURN_STATUS
39 EFIAPI
40 TimerConstructor (
41 VOID
42 );
43
44 VOID
45 PrePiMain (
46 IN UINTN UefiMemoryBase,
47 IN UINTN StacksBase,
48 IN UINTN GlobalVariableBase,
49 IN UINT64 StartTimeStamp
50 );
51
52 EFI_STATUS
53 EFIAPI
54 MemoryPeim (
55 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,
56 IN UINT64 UefiMemorySize
57 );
58
59 EFI_STATUS
60 EFIAPI
61 PlatformPeim (
62 VOID
63 );
64
65 VOID
66 PrimaryMain (
67 IN UINTN UefiMemoryBase,
68 IN UINTN StacksBase,
69 IN UINTN GlobalVariableBase,
70 IN UINT64 StartTimeStamp
71 );
72
73 VOID
74 SecondaryMain (
75 IN UINTN MpId
76 );
77
78 // Either implemented by PrePiLib or by MemoryInitPei
79 VOID
80 BuildMemoryTypeInformationHob (
81 VOID
82 );
83
84 #endif /* _PREPI_H_ */