mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
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>
This commit is contained in:
parent
2c7fd32676
commit
b1e558f636
@ -192,6 +192,28 @@ GetFspSiliconInitUpdDataPointer (
|
|||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
Set FSP measurement point timestamp.
|
||||||
|
|
||||||
|
@ -372,6 +372,47 @@ GetFspSiliconInitUpdDataPointer (
|
|||||||
return FspData->SiliconInitUpdPtr;
|
return FspData->SiliconInitUpdPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
Set FSP measurement point timestamp.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user