diff options
author | Zhang, Hongbin1 <Hongbin1.Zhang@intel.com> | 2023-08-24 20:15:22 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-08-28 21:25:11 +0000 |
commit | b1e558f6369fc85ae053e0c16ffcd600880fe78d (patch) | |
tree | 9dc7db835b5ae98799a4d1472cc3c3e241d8b75f /IntelFsp2Pkg | |
parent | 2c7fd32676272e22ed44fdfc8fa7e47f5c7a93b8 (diff) | |
download | edk2-b1e558f6369fc85ae053e0c16ffcd600880fe78d.tar.gz |
IntelFsp2Pkg: Add get and set FspSmmInit upd data pointer functions
FSP-SMM module need get and set FspSmmInit upd data pointer functions
to get and set upd settings.
Signed-off-by: Hongbin1 Zhang <hongbin1.zhang@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Duggapu Chinni B <chinni.b.duggapu@intel.com>
Cc: Ray Han Lim Ng <ray.han.lim.ng@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ted Kuo <ted.kuo@intel.com>
Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
Cc: Susovan Mohapatra <susovan.mohapatra@intel.com>
Reviewed-by: S Ashraf Ali <ashraf.ali.s@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Diffstat (limited to 'IntelFsp2Pkg')
-rw-r--r-- | IntelFsp2Pkg/Include/Library/FspCommonLib.h | 22 | ||||
-rw-r--r-- | IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c | 41 |
2 files changed, 63 insertions, 0 deletions
diff --git a/IntelFsp2Pkg/Include/Library/FspCommonLib.h b/IntelFsp2Pkg/Include/Library/FspCommonLib.h index 13b67f8822..12d993b7cc 100644 --- a/IntelFsp2Pkg/Include/Library/FspCommonLib.h +++ b/IntelFsp2Pkg/Include/Library/FspCommonLib.h @@ -193,6 +193,28 @@ GetFspSiliconInitUpdDataPointer ( );
/**
+ This function sets the smm init UPD data pointer.
+
+ @param[in] SmmInitUpdPtr smm init UPD data pointer.
+**/
+VOID
+EFIAPI
+SetFspSmmInitUpdDataPointer (
+ IN VOID *SmmInitUpdPtr
+ );
+
+/**
+ This function gets the smm init UPD data pointer.
+
+ @return smm init UPD data pointer.
+**/
+VOID *
+EFIAPI
+GetFspSmmInitUpdDataPointer (
+ VOID
+ );
+
+/**
Set FSP measurement point timestamp.
@param[in] Id Measurement point ID.
diff --git a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c index 6f6a086111..d33d01fe22 100644 --- a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c +++ b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c @@ -373,6 +373,47 @@ GetFspSiliconInitUpdDataPointer ( }
/**
+ This function sets the FspSmmInit UPD data pointer.
+
+ @param[in] SmmInitUpdPtr FspSmmInit UPD data pointer.
+**/
+VOID
+EFIAPI
+SetFspSmmInitUpdDataPointer (
+ IN VOID *SmmInitUpdPtr
+ )
+{
+ FSP_GLOBAL_DATA *FspData;
+
+ //
+ // Get the FSP Global Data Pointer
+ //
+ FspData = GetFspGlobalDataPointer ();
+
+ //
+ // Set the FspSmmInit UPD data pointer.
+ //
+ FspData->SmmInitUpdPtr = SmmInitUpdPtr;
+}
+
+/**
+ This function gets the FspSmmInit UPD data pointer.
+
+ @return FspSmmInit UPD data pointer.
+**/
+VOID *
+EFIAPI
+GetFspSmmInitUpdDataPointer (
+ VOID
+ )
+{
+ FSP_GLOBAL_DATA *FspData;
+
+ FspData = GetFspGlobalDataPointer ();
+ return FspData->SmmInitUpdPtr;
+}
+
+/**
Set FSP measurement point timestamp.
@param[in] Id Measurement point ID.
|