IntelFsp2Pkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FspSecPlatformLib.h File Reference

Functions

UINT32 EFIAPI SecPlatformInit (VOID)
 
UINT32 EFIAPI LoadMicrocode (IN VOID *FsptUpdDataPtr)
 
UINT32 EFIAPI SecCarInit (IN VOID *FsptUpdDataPtr)
 
EFI_STATUS EFIAPI FspUpdSignatureCheck (IN UINT32 ApiIdx, IN VOID *ApiParam)
 
EFI_STATUS EFIAPI FspMultiPhaseSiInitApiHandler (IN UINT32 ApiIdx, IN VOID *ApiParam)
 

Detailed Description

Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Function Documentation

EFI_STATUS EFIAPI FspMultiPhaseSiInitApiHandler ( IN UINT32  ApiIdx,
IN VOID *  ApiParam 
)

This function handles FspMultiPhaseSiInitApi.

Parameters
[in]ApiIdxInternal index of the FSP API.
[in]ApiParamParameter of the FSP API.
EFI_STATUS EFIAPI FspUpdSignatureCheck ( IN UINT32  ApiIdx,
IN VOID *  ApiParam 
)

This function check the signature of UPD.

Parameters
[in]ApiIdxInternal index of the FSP API.
[in]ApiParamParameter of the FSP API.
UINT32 EFIAPI LoadMicrocode ( IN VOID *  FsptUpdDataPtr)

This function loads Microcode.

This function must be in ASM file, because stack is not established yet. This function is optional. If a library instance does not provide this function, the default one will be used.

The callee should not use XMM6/XMM7. The return address is saved in MM7.

Parameters
[in]FsptUpdDataPtrAddress pointer to the FSPT_UPD data structure. It is saved in ESP.
Return values
insaved in EAX - 0 means Microcode is loaded successfully. other means Microcode is not loaded successfully.
UINT32 EFIAPI SecCarInit ( IN VOID *  FsptUpdDataPtr)

This function initializes the CAR.

This function must be in ASM file, because stack is not established yet.

The callee should not use XMM6/XMM7. The return address is saved in MM7.

Parameters
[in]FsptUpdDataPtrAddress pointer to the FSPT_UPD data structure. It is saved in ESP.
Return values
insaved in EAX - 0 means CAR initialization success. other means CAR initialization fail.
UINT32 EFIAPI SecPlatformInit ( VOID  )

This function performs platform level initialization.

This function must be in ASM file, because stack is not established yet. This function is optional. If a library instance does not provide this function, the default empty one will be used.

The callee should not use XMM6/XMM7. The return address is saved in MM7.

Return values
insaved in EAX - 0 means platform initialization success. other means platform initialization fail.