]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePi/PrePi.h
ArmPlatformPkg: Change the memory model for the ARM Platform components
[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 ARM_PRIMARY_CORE 0
31 #define SerialPrint(txt) SerialPortWrite (txt, AsciiStrLen(txt)+1);
32
33 // Vector Table for PrePi Phase
34 VOID
35 PrePiVectorTable (
36 VOID
37 );
38
39 RETURN_STATUS
40 EFIAPI
41 TimerConstructor (
42 VOID
43 );
44
45 VOID
46 PrePiMain (
47 IN UINTN UefiMemoryBase,
48 IN UINT64 StartTimeStamp
49 );
50
51 EFI_STATUS
52 EFIAPI
53 MemoryPeim (
54 IN EFI_PHYSICAL_ADDRESS UefiMemoryBase,
55 IN UINT64 UefiMemorySize
56 );
57
58 EFI_STATUS
59 EFIAPI
60 PlatformPeim (
61 VOID
62 );
63
64 VOID
65 PrimaryMain (
66 IN UINTN UefiMemoryBase,
67 IN UINT64 StartTimeStamp
68 );
69
70 VOID
71 SecondaryMain (
72 IN UINTN CoreId
73 );
74
75 // Either implemented by PrePiLib or by MemoryInitPei
76 VOID
77 BuildMemoryTypeInformationHob (
78 VOID
79 );
80
81 #endif /* _PREPI_H_ */