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