1. Sync the latest network stack. Add NetLibCreateIPv4DPathNode () in netlib library.
[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
859b72fa
A
23#include <PiPei.h>\r
24#include <Ppi/DxeIpl.h>\r
25#include <Ppi/S3Resume.h>\r
26#include <Protocol/EdkDecompress.h>\r
27#include <Ppi/EndOfPeiPhase.h>\r
28#include <Protocol/CustomizedDecompress.h>\r
29#include <Protocol/Decompress.h>\r
30#include <Ppi/Security.h>\r
31#include <Ppi/SectionExtraction.h>\r
1df7a023 32#include <Ppi/FvLoadFile.h>\r
859b72fa
A
33#include <Ppi/RecoveryModule.h>\r
34#include <Ppi/MemoryDiscovered.h>\r
35#include <Library/DebugLib.h>\r
36#include <Library/PeimEntryPoint.h>\r
37#include <Library/BaseLib.h>\r
38#include <Library/HobLib.h>\r
39#include <Library/PeiServicesLib.h>\r
40#include <Library/ReportStatusCodeLib.h>\r
41#include <Library/CacheMaintenanceLib.h>\r
42#include <Library/PeCoffLoaderLib.h>\r
43#include <Library/UefiDecompressLib.h>\r
44#include <Library/CustomDecompressLib.h>\r
45#include <Library/PeiServicesTablePointerLib.h>\r
46#include <Library/BaseMemoryLib.h>\r
47#include <Library/MemoryAllocationLib.h>\r
48#include <Library/PcdLib.h>\r
49#include <Library/PeCoffLib.h>\r
50\r
95276127 51\r
52#define STACK_SIZE 0x20000\r
53#define BSP_STORE_SIZE 0x4000\r
54\r
55#define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1))\r
56\r
57extern BOOLEAN gInMemory;\r
58\r
59EFI_STATUS\r
60PeiFindFile (\r
61 IN UINT8 Type,\r
d8c79a81 62 IN EFI_SECTION_TYPE SectionType,\r
95276127 63 OUT EFI_GUID *FileName,\r
64 OUT VOID **Pe32Data\r
65 )\r
66;\r
67\r
68EFI_STATUS\r
69PeiLoadFile (\r
70 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader,\r
71 IN VOID *Pe32Data,\r
72 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
73 OUT UINT64 *ImageSize,\r
74 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
75 )\r
76;\r
77\r
78\r
79EFI_STATUS\r
80GetImageReadFunction (\r
81 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
82 )\r
83;\r
84\r
85EFI_STATUS\r
86PeiImageRead (\r
87 IN VOID *FileHandle,\r
88 IN UINTN FileOffset,\r
89 IN OUT UINTN *ReadSize,\r
90 OUT VOID *Buffer\r
91 )\r
92;\r
93\r
94EFI_STATUS\r
95EFIAPI\r
96DxeIplLoadFile (\r
97 IN EFI_PEI_FV_FILE_LOADER_PPI *This,\r
98 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
99 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
100 OUT UINT64 *ImageSize,\r
101 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
102 );\r
103\r
104EFI_STATUS\r
105ShadowDxeIpl (\r
106 IN EFI_FFS_FILE_HEADER *DxeIpl,\r
107 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader\r
108 );\r
109\r
110EFI_STATUS\r
111EFIAPI\r
112DxeLoadCore (\r
113 IN EFI_DXE_IPL_PPI *This,\r
114 IN EFI_PEI_SERVICES **PeiServices,\r
115 IN EFI_PEI_HOB_POINTERS HobList\r
116 );\r
117\r
118VOID\r
119HandOffToDxeCore (\r
120 IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint,\r
121 IN EFI_PEI_HOB_POINTERS HobList,\r
122 IN EFI_PEI_PPI_DESCRIPTOR *EndOfPeiSignal\r
123 );\r
124\r
125EFI_STATUS\r
126PeiProcessFile (\r
d8c79a81 127 IN EFI_SECTION_TYPE SectionType,\r
95276127 128 IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
129 OUT VOID **Pe32Data,\r
130 IN EFI_PEI_HOB_POINTERS *OrigHob\r
131 );\r
132\r
133EFI_STATUS\r
134EFIAPI\r
135PeimInitializeDxeIpl (\r
136 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
137 IN EFI_PEI_SERVICES **PeiServices\r
138 );\r
139\r
140\r
141#endif\r