Add VFR compiler Path for x64 & IPF arch.
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / DxeIpl.h
CommitLineData
95276127 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 DxeIpl.h\r
15\r
16Abstract:\r
17\r
18--*/\r
19\r
20#ifndef __PEI_DXEIPL_H__\r
21#define __PEI_DXEIPL_H__\r
22\r
23//\r
24// Include common header file for this module.\r
25//\r
26#include "CommonHeader.h"\r
27\r
28#define STACK_SIZE 0x20000\r
29#define BSP_STORE_SIZE 0x4000\r
30\r
31#define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1))\r
32\r
33extern BOOLEAN gInMemory;\r
34\r
35EFI_STATUS\r
36PeiFindFile (\r
37 IN UINT8 Type,\r
38 IN UINT16 SectionType,\r
39 OUT EFI_GUID *FileName,\r
40 OUT VOID **Pe32Data\r
41 )\r
42;\r
43\r
44EFI_STATUS\r
45PeiLoadFile (\r
46 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader,\r
47 IN VOID *Pe32Data,\r
48 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
49 OUT UINT64 *ImageSize,\r
50 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
51 )\r
52;\r
53\r
54\r
55EFI_STATUS\r
56GetImageReadFunction (\r
57 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
58 )\r
59;\r
60\r
61EFI_STATUS\r
62PeiImageRead (\r
63 IN VOID *FileHandle,\r
64 IN UINTN FileOffset,\r
65 IN OUT UINTN *ReadSize,\r
66 OUT VOID *Buffer\r
67 )\r
68;\r
69\r
70EFI_STATUS\r
71EFIAPI\r
72DxeIplLoadFile (\r
73 IN EFI_PEI_FV_FILE_LOADER_PPI *This,\r
74 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
75 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
76 OUT UINT64 *ImageSize,\r
77 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
78 );\r
79\r
80EFI_STATUS\r
81ShadowDxeIpl (\r
82 IN EFI_FFS_FILE_HEADER *DxeIpl,\r
83 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader\r
84 );\r
85\r
86EFI_STATUS\r
87EFIAPI\r
88DxeLoadCore (\r
89 IN EFI_DXE_IPL_PPI *This,\r
90 IN EFI_PEI_SERVICES **PeiServices,\r
91 IN EFI_PEI_HOB_POINTERS HobList\r
92 );\r
93\r
94VOID\r
95HandOffToDxeCore (\r
96 IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint,\r
97 IN EFI_PEI_HOB_POINTERS HobList,\r
98 IN EFI_PEI_PPI_DESCRIPTOR *EndOfPeiSignal\r
99 );\r
100\r
101EFI_STATUS\r
102PeiProcessFile (\r
103 IN UINT16 SectionType,\r
104 IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
105 OUT VOID **Pe32Data,\r
106 IN EFI_PEI_HOB_POINTERS *OrigHob\r
107 );\r
108\r
109EFI_STATUS\r
110EFIAPI\r
111PeimInitializeDxeIpl (\r
112 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
113 IN EFI_PEI_SERVICES **PeiServices\r
114 );\r
115\r
116\r
117#endif\r