From d8043ce905a5832f911361ef30be28765afbdc6b Mon Sep 17 00:00:00 2001 From: "Yao, Jiewen" Date: Wed, 11 Feb 2015 04:41:46 +0000 Subject: Update IntelFspWrapperPkg according to FSP1.1. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16826 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFspWrapperPkg/Include/Library/FspApiLib.h | 55 ++++++++++++++++++++-- .../Include/Library/FspHobProcessLib.h | 26 ++++++++++ .../Include/Library/FspPlatformInfoLib.h | 26 ++++++++++ 3 files changed, 102 insertions(+), 5 deletions(-) (limited to 'IntelFspWrapperPkg/Include') diff --git a/IntelFspWrapperPkg/Include/Library/FspApiLib.h b/IntelFspWrapperPkg/Include/Library/FspApiLib.h index fc0104d28c..160c07f646 100644 --- a/IntelFspWrapperPkg/Include/Library/FspApiLib.h +++ b/IntelFspWrapperPkg/Include/Library/FspApiLib.h @@ -1,7 +1,7 @@ /** @file Provide FSP API related function. - Copyright (c) 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -37,9 +37,9 @@ FspFindFspHeader ( @param[in] FspHeader FSP header pointer. @param[in] FspInitParams Address pointer to the FSP_INIT_PARAMS structure. - @return FSP status returned by FspInit API. + @return EFI status returned by FspInit API. **/ -FSP_STATUS +EFI_STATUS EFIAPI CallFspInit ( IN FSP_INFO_HEADER *FspHeader, @@ -52,13 +52,58 @@ CallFspInit ( @param[in] FspHeader FSP header pointer. @param[in] NotifyPhaseParams Address pointer to the NOTIFY_PHASE_PARAMS structure. - @return FSP status returned by FspNotifyPhase API. + @return EFI status returned by FspNotifyPhase API. **/ -FSP_STATUS +EFI_STATUS EFIAPI CallFspNotifyPhase ( IN FSP_INFO_HEADER *FspHeader, IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams ); +/** + Call FSP API - FspMemoryInit. + + @param[in] FspHeader FSP header pointer. + @param[in,out] FspMemoryInitParams Address pointer to the FSP_MEMORY_INIT_PARAMS structure. + + @return EFI status returned by FspMemoryInit API. +**/ +EFI_STATUS +EFIAPI +CallFspMemoryInit ( + IN FSP_INFO_HEADER *FspHeader, + IN OUT FSP_MEMORY_INIT_PARAMS *FspMemoryInitParams + ); + +/** + Call FSP API - TempRamExit. + + @param[in] FspHeader FSP header pointer. + @param[in,out] TempRamExitParam Address pointer to the TempRamExit parameters structure. + + @return EFI status returned by TempRamExit API. +**/ +EFI_STATUS +EFIAPI +CallTempRamExit ( + IN FSP_INFO_HEADER *FspHeader, + IN OUT VOID *TempRamExitParam + ); + +/** + Call FSP API - FspSiliconInit. + + @param[in] FspHeader FSP header pointer. + @param[in,out] FspSiliconInitParam Address pointer to the Silicon Init parameters structure. + + @return EFI status returned by FspSiliconInit API. +**/ +EFI_STATUS +EFIAPI +CallFspSiliconInit ( + IN FSP_INFO_HEADER *FspHeader, + IN OUT VOID *FspSiliconInitParam + ); + #endif diff --git a/IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h b/IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h index 32ce987b92..bb9c9e4734 100644 --- a/IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h +++ b/IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h @@ -28,4 +28,30 @@ FspHobProcess ( IN VOID *FspHobList ); +/** + BIOS process FspBobList for Memory Resource Descriptor. + + @param[in] FspHobList Pointer to the HOB data structure produced by FSP. + + @return If platform process the FSP hob list successfully. +**/ +EFI_STATUS +EFIAPI +FspHobProcessForMemoryResource ( + IN VOID *FspHobList + ); + +/** + BIOS process FspBobList for other data (not Memory Resource Descriptor). + + @param[in] FspHobList Pointer to the HOB data structure produced by FSP. + + @return If platform process the FSP hob list successfully. +**/ +EFI_STATUS +EFIAPI +FspHobProcessForOtherData ( + IN VOID *FspHobList + ); + #endif diff --git a/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h b/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h index ebbe9a7eaf..c997ea8b22 100644 --- a/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h +++ b/IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h @@ -68,6 +68,32 @@ UpdateFspUpdConfigs ( IN OUT VOID *FspUpdRgnPtr ); +/** + Get TempRamExit parameter. + + @note At this point, memory is ready, PeiServices are available to use. + + @return TempRamExit parameter. +**/ +VOID * +EFIAPI +GetTempRamExitParam ( + VOID + ); + +/** + Get FspSiliconInit parameter. + + @note At this point, memory is ready, PeiServices are available to use. + + @return FspSiliconInit parameter. +**/ +VOID * +EFIAPI +GetFspSiliconInitParam ( + VOID + ); + /** Get S3 PEI memory information. -- cgit v1.2.3