1 /** @file 2 This is PEIM header file. 3 4 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php. 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 13 **/ 14 15 #ifndef _FSP_INIT_PEI_H_ 16 #define _FSP_INIT_PEI_H_ 17 18 #include <PiPei.h> 19 20 #include <Library/PeimEntryPoint.h> 21 #include <Library/PeiServicesLib.h> 22 #include <Library/PeiServicesTablePointerLib.h> 23 #include <Library/BaseLib.h> 24 #include <Library/DebugLib.h> 25 #include <Library/BaseMemoryLib.h> 26 #include <Library/HobLib.h> 27 #include <Library/PcdLib.h> 28 #include <Library/FspPlatformInfoLib.h> 29 #include <Library/FspPlatformSecLib.h> 30 #include <Library/FspHobProcessLib.h> 31 #include <Library/FspApiLib.h> 32 33 #include <Ppi/FspInitDone.h> 34 #include <Ppi/EndOfPeiPhase.h> 35 #include <Ppi/MemoryDiscovered.h> 36 #include <Ppi/TemporaryRamDone.h> 37 38 extern EFI_PEI_NOTIFY_DESCRIPTOR mS3EndOfPeiNotifyDesc; 39 40 /** 41 Do FSP initialization based on FspApi version 1. 42 43 @param[in] FspHeader FSP header pointer. 44 45 @return FSP initialization status. 46 **/ 47 EFI_STATUS 48 PeiFspInitV1 ( 49 IN FSP_INFO_HEADER *FspHeader 50 ); 51 52 /** 53 Do FSP initialization based on FspApi version 2. 54 55 @param[in] FspHeader FSP header pointer. 56 57 @return FSP initialization status. 58 **/ 59 EFI_STATUS 60 PeiFspInitV2 ( 61 IN FSP_INFO_HEADER *FspHeader 62 ); 63 64 #endif 65