3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef __PEI_DXEIPL_H__
21 #define __PEI_DXEIPL_H__
24 // Include common header file for this module.
26 #include "CommonHeader.h"
28 #define STACK_SIZE 0x20000
29 #define BSP_STORE_SIZE 0x4000
31 #define GET_OCCUPIED_SIZE(ActualSize, Alignment) ((ActualSize + (Alignment - 1)) & ~(Alignment - 1))
33 extern BOOLEAN gInMemory
;
38 IN UINT16 SectionType
,
39 OUT EFI_GUID
*FileName
,
46 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
,
48 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
49 OUT UINT64
*ImageSize
,
50 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
56 GetImageReadFunction (
57 IN PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
65 IN OUT UINTN
*ReadSize
,
73 IN EFI_PEI_FV_FILE_LOADER_PPI
*This
,
74 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
75 OUT EFI_PHYSICAL_ADDRESS
*ImageAddress
,
76 OUT UINT64
*ImageSize
,
77 OUT EFI_PHYSICAL_ADDRESS
*EntryPoint
82 IN EFI_FFS_FILE_HEADER
*DxeIpl
,
83 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL
*PeiEfiPeiPeCoffLoader
89 IN EFI_DXE_IPL_PPI
*This
,
90 IN EFI_PEI_SERVICES
**PeiServices
,
91 IN EFI_PEI_HOB_POINTERS HobList
96 IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint
,
97 IN EFI_PEI_HOB_POINTERS HobList
,
98 IN EFI_PEI_PPI_DESCRIPTOR
*EndOfPeiSignal
103 IN UINT16 SectionType
,
104 IN EFI_FFS_FILE_HEADER
*FfsFileHeader
,
106 IN EFI_PEI_HOB_POINTERS
*OrigHob
111 PeimInitializeDxeIpl (
112 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
113 IN EFI_PEI_SERVICES
**PeiServices