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