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