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