Add blank line at end of file to pass GCC build.
[mirror_edk2.git] / EdkModulePkg / Core / DxeIplPeim / DxeIpl.h
CommitLineData
878ddf1f 1/*++\r
2\r
eeb1cd5a 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
878ddf1f 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#define STACK_SIZE 0x20000\r
24#define BSP_STORE_SIZE 0x4000\r
25\r
abb26634 26#define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1))\r
27\r
878ddf1f 28extern BOOLEAN gInMemory;\r
29\r
878ddf1f 30EFI_STATUS\r
31PeiFindFile (\r
32 IN UINT8 Type,\r
33 IN UINT16 SectionType,\r
34 OUT EFI_GUID *FileName,\r
35 OUT VOID **Pe32Data\r
36 )\r
37;\r
38\r
39EFI_STATUS\r
40PeiLoadFile (\r
41 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader,\r
42 IN VOID *Pe32Data,\r
43 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
44 OUT UINT64 *ImageSize,\r
45 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
46 )\r
47;\r
48\r
49\r
878ddf1f 50EFI_STATUS\r
51GetImageReadFunction (\r
52 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
53 )\r
54;\r
55\r
56EFI_STATUS\r
57PeiImageRead (\r
58 IN VOID *FileHandle,\r
59 IN UINTN FileOffset,\r
60 IN OUT UINTN *ReadSize,\r
61 OUT VOID *Buffer\r
62 )\r
63;\r
64\r
65EFI_STATUS\r
66EFIAPI\r
67DxeIplLoadFile (\r
68 IN EFI_PEI_FV_FILE_LOADER_PPI *This,\r
69 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
70 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
71 OUT UINT64 *ImageSize,\r
72 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
73 );\r
74\r
75EFI_STATUS\r
76ShadowDxeIpl (\r
77 IN EFI_FFS_FILE_HEADER *DxeIpl,\r
78 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader\r
79 );\r
80\r
81EFI_STATUS\r
82EFIAPI\r
83DxeLoadCore (\r
84 IN EFI_DXE_IPL_PPI *This,\r
85 IN EFI_PEI_SERVICES **PeiServices,\r
86 IN EFI_PEI_HOB_POINTERS HobList\r
87 );\r
88\r
657d3918 89VOID\r
90HandOffToDxeCore (\r
91 IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint,\r
3d109491 92 IN EFI_PEI_HOB_POINTERS HobList,\r
93 IN EFI_PEI_PPI_DESCRIPTOR *EndOfPeiSignal\r
657d3918 94 );\r
95\r
878ddf1f 96EFI_STATUS\r
97PeiProcessFile (\r
6326ee4e 98 IN UINT16 SectionType,\r
abb26634 99 IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
100 OUT VOID **Pe32Data,\r
101 IN EFI_PEI_HOB_POINTERS *OrigHob\r
878ddf1f 102 );\r
103\r
104EFI_STATUS\r
105EFIAPI\r
106PeimInitializeDxeIpl (\r
107 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
108 IN EFI_PEI_SERVICES **PeiServices\r
109 );\r
110\r
878ddf1f 111\r
112#endif\r