]>
Commit | Line | Data |
---|---|---|
797a9d67 | 1 | /**@file\r |
95276127 | 2 | \r |
797a9d67 | 3 | Copyright (c) 2006 - 2007, Intel Corporation\r |
95276127 | 4 | All rights reserved. This program and the accompanying materials\r |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
797a9d67 | 12 | **/\r |
95276127 | 13 | \r |
14 | #ifndef __PEI_DXEIPL_H__\r | |
15 | #define __PEI_DXEIPL_H__\r | |
16 | \r | |
859b72fa A |
17 | #include <PiPei.h>\r |
18 | #include <Ppi/DxeIpl.h>\r | |
859b72fa A |
19 | #include <Protocol/EdkDecompress.h>\r |
20 | #include <Ppi/EndOfPeiPhase.h>\r | |
21 | #include <Protocol/CustomizedDecompress.h>\r | |
22 | #include <Protocol/Decompress.h>\r | |
859b72fa | 23 | #include <Ppi/MemoryDiscovered.h>\r |
b74350e9 | 24 | #include <Ppi/ReadOnlyVariable2.h>\r |
25 | #include <Guid/MemoryTypeInformation.h>\r | |
b0d803fe | 26 | #include <Ppi/Decompress.h>\r |
27 | #include <Ppi/FirmwareVolumeInfo.h>\r | |
28 | \r | |
30c8f861 | 29 | #include <Guid/MemoryAllocationHob.h>\r |
b0d803fe | 30 | #include <Guid/FirmwareFileSystem2.h>\r |
31 | \r | |
859b72fa A |
32 | #include <Library/DebugLib.h>\r |
33 | #include <Library/PeimEntryPoint.h>\r | |
34 | #include <Library/BaseLib.h>\r | |
35 | #include <Library/HobLib.h>\r | |
36 | #include <Library/PeiServicesLib.h>\r | |
37 | #include <Library/ReportStatusCodeLib.h>\r | |
38 | #include <Library/CacheMaintenanceLib.h>\r | |
859b72fa | 39 | #include <Library/UefiDecompressLib.h>\r |
18fd8d65 | 40 | #include <Library/ExtractGuidedSectionLib.h>\r |
859b72fa A |
41 | #include <Library/PeiServicesTablePointerLib.h>\r |
42 | #include <Library/BaseMemoryLib.h>\r | |
43 | #include <Library/MemoryAllocationLib.h>\r | |
44 | #include <Library/PcdLib.h>\r | |
45 | #include <Library/PeCoffLib.h>\r | |
4fb31c2c | 46 | #include <Library/S3Lib.h>\r |
47 | #include <Library/RecoveryLib.h>\r | |
95276127 | 48 | \r |
49 | #define STACK_SIZE 0x20000\r | |
50 | #define BSP_STORE_SIZE 0x4000\r | |
51 | \r | |
52 | #define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1))\r | |
53 | \r | |
54 | extern BOOLEAN gInMemory;\r | |
55 | \r | |
95276127 | 56 | EFI_STATUS\r |
57 | PeiLoadFile (\r | |
b0d803fe | 58 | IN EFI_PEI_FILE_HANDLE FileHandle,\r |
95276127 | 59 | OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r |
60 | OUT UINT64 *ImageSize,\r | |
61 | OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r | |
62 | )\r | |
63 | ;\r | |
64 | \r | |
b0d803fe | 65 | EFI_STATUS\r |
288f9b38 | 66 | DxeIplFindDxeCore (\r |
b0d803fe | 67 | OUT EFI_PEI_FILE_HANDLE *FileHandle\r |
68 | )\r | |
69 | ;\r | |
95276127 | 70 | \r |
71 | EFI_STATUS\r | |
72 | GetImageReadFunction (\r | |
73 | IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
74 | )\r | |
75 | ;\r | |
76 | \r | |
95276127 | 77 | EFI_STATUS\r |
78 | EFIAPI\r | |
79 | DxeLoadCore (\r | |
80 | IN EFI_DXE_IPL_PPI *This,\r | |
81 | IN EFI_PEI_SERVICES **PeiServices,\r | |
82 | IN EFI_PEI_HOB_POINTERS HobList\r | |
83 | );\r | |
84 | \r | |
85 | VOID\r | |
86 | HandOffToDxeCore (\r | |
87 | IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint,\r | |
88 | IN EFI_PEI_HOB_POINTERS HobList,\r | |
89 | IN EFI_PEI_PPI_DESCRIPTOR *EndOfPeiSignal\r | |
90 | );\r | |
91 | \r | |
30c8f861 | 92 | VOID\r |
93 | UpdateStackHob (\r | |
94 | IN EFI_PHYSICAL_ADDRESS BaseAddress,\r | |
95 | IN UINT64 Length\r | |
96 | );\r | |
97 | \r | |
95276127 | 98 | EFI_STATUS\r |
99 | EFIAPI\r | |
100 | PeimInitializeDxeIpl (\r | |
b0d803fe | 101 | IN EFI_PEI_FILE_HANDLE FfsHandle,\r |
95276127 | 102 | IN EFI_PEI_SERVICES **PeiServices\r |
b0d803fe | 103 | )\r |
104 | ;\r | |
95276127 | 105 | \r |
106 | \r | |
107 | #endif\r |