summaryrefslogtreecommitdiff
path: root/IntelFspWrapperPkg/Include
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2015-02-11 04:41:46 +0000
committerjyao1 <jyao1@Edk2>2015-02-11 04:41:46 +0000
commitd8043ce905a5832f911361ef30be28765afbdc6b (patch)
tree4b4f7171c97efc733c95cc3abf65af351017c955 /IntelFspWrapperPkg/Include
parentd5fb1edfb16a2af29486ffbf5aa32a036da9caa4 (diff)
downloadedk2-platforms-d8043ce905a5832f911361ef30be28765afbdc6b.tar.xz
Update IntelFspWrapperPkg according to FSP1.1.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16826 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspWrapperPkg/Include')
-rw-r--r--IntelFspWrapperPkg/Include/Library/FspApiLib.h55
-rw-r--r--IntelFspWrapperPkg/Include/Library/FspHobProcessLib.h26
-rw-r--r--IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h26
3 files changed, 102 insertions, 5 deletions
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.<BR>
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
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
@@ -69,6 +69,32 @@ UpdateFspUpdConfigs (
);
/**
+ 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.
@note At this point, memory is ready, and PeiServices are available to use.