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

Functions

VOID EFIAPI SetFspGlobalDataPointer (IN FSP_GLOBAL_DATA *FspData)
 
FSP_GLOBAL_DATA *EFIAPI GetFspGlobalDataPointer (VOID)
 
UINT32 EFIAPI GetFspApiParameter (VOID)
 
UINT32 EFIAPI GetFspApiParameter2 (VOID)
 
VOID *EFIAPI GetFspEntryStack (VOID)
 
VOID EFIAPI SetFspApiParameter (IN UINT32 Value)
 
VOID EFIAPI SetFspApiReturnStatus (IN UINT32 ReturnStatus)
 
VOID EFIAPI SetFspCoreStackPointer (IN VOID *NewStackTop)
 
VOID EFIAPI SetFspPlatformDataPointer (IN VOID *PlatformData)
 
VOID *EFIAPI GetFspPlatformDataPointer (VOID)
 
VOID EFIAPI SetFspUpdDataPointer (IN VOID *UpdDataPtr)
 
VOID *EFIAPI GetFspUpdDataPointer (VOID)
 
VOID EFIAPI SetFspMemoryInitUpdDataPointer (IN VOID *MemoryInitUpdPtr)
 
VOID *EFIAPI GetFspMemoryInitUpdDataPointer (VOID)
 
VOID EFIAPI SetFspSiliconInitUpdDataPointer (IN VOID *SiliconInitUpdPtr)
 
VOID *EFIAPI GetFspSiliconInitUpdDataPointer (VOID)
 
UINT64 EFIAPI SetFspMeasurePoint (IN UINT8 Id)
 
FSP_INFO_HEADER *EFIAPI GetFspInfoHeader (VOID)
 
VOID EFIAPI SetFspInfoHeader (FSP_INFO_HEADER *FspInfoHeader)
 
FSP_INFO_HEADER *EFIAPI GetFspInfoHeaderFromApiContext (VOID)
 
VOID *EFIAPI GetFspCfgRegionDataPointer (VOID)
 
UINT8 EFIAPI GetFspApiCallingIndex (VOID)
 
VOID EFIAPI SetFspApiCallingIndex (UINT8 Index)
 
UINT32 EFIAPI GetPhaseStatusCode (VOID)
 
VOID EFIAPI SetPhaseStatusCode (UINT32 StatusCode)
 
VOID EFIAPI FspApiReturnStatusReset (IN UINT32 FspResetType)
 

Detailed Description

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

Function Documentation

VOID EFIAPI FspApiReturnStatusReset ( IN UINT32  FspResetType)

This function updates the return status of the FSP API with requested reset type and returns to Boot Loader.

Parameters
[in]FspResetTypeReset type that needs to returned as API return status
UINT8 EFIAPI GetFspApiCallingIndex ( VOID  )

This function gets FSP API calling mode.

Return values
APIcalling mode
UINT32 EFIAPI GetFspApiParameter ( VOID  )

This function gets back the FSP API first parameter passed by the bootloader.

Return values
ApiParameterFSP API first parameter passed by the bootloader.
UINT32 EFIAPI GetFspApiParameter2 ( VOID  )

This function gets back the FSP API second parameter passed by the bootloader.

Return values
ApiParameterFSP API second parameter passed by the bootloader.
VOID* EFIAPI GetFspCfgRegionDataPointer ( VOID  )

This function gets the CfgRegion data pointer.

Returns
CfgRegion data pointer.
VOID* EFIAPI GetFspEntryStack ( VOID  )

This function returns the FSP entry stack pointer from address of the first API parameter.

Return values
FSPentry stack pointer.
FSP_GLOBAL_DATA* EFIAPI GetFspGlobalDataPointer ( VOID  )

This function gets the FSP global data pointer.

FSP_INFO_HEADER* EFIAPI GetFspInfoHeader ( VOID  )

This function gets the FSP info header pointer.

Return values
FspInfoHeaderFSP info header pointer
FSP_INFO_HEADER* EFIAPI GetFspInfoHeaderFromApiContext ( VOID  )

This function gets the FSP info header pointer from the API context.

Return values
FspInfoHeaderFSP info header pointer
VOID* EFIAPI GetFspMemoryInitUpdDataPointer ( VOID  )

This function gets the memory init UPD data pointer.

Returns
memory init UPD data pointer.
VOID* EFIAPI GetFspPlatformDataPointer ( VOID  )

This function gets the platform specific data pointer.

Parameters
[in]PlatformDataFsp platform specific data pointer.
VOID* EFIAPI GetFspSiliconInitUpdDataPointer ( VOID  )

This function gets the silicon init UPD data pointer.

Returns
silicon init UPD data pointer.
VOID* EFIAPI GetFspUpdDataPointer ( VOID  )

This function gets the UPD data pointer.

Returns
UpdDataPtr UPD data pointer.
UINT32 EFIAPI GetPhaseStatusCode ( VOID  )

This function gets FSP Phase StatusCode.

Return values
StatusCode
VOID EFIAPI SetFspApiCallingIndex ( UINT8  Index)

This function sets FSP API calling mode.

Parameters
[in]IndexAPI calling index
VOID EFIAPI SetFspApiParameter ( IN UINT32  Value)

This function sets the FSP API parameter in the stack.

Parameters
[in]ValueNew parameter value.
VOID EFIAPI SetFspApiReturnStatus ( IN UINT32  ReturnStatus)

This function set the API status code returned to the BootLoader.

Parameters
[in]ReturnStatusStatus code to return.
VOID EFIAPI SetFspCoreStackPointer ( IN VOID *  NewStackTop)

This function sets the context switching stack to a new stack frame.

Parameters
[in]NewStackTopNew core stack to be set.
VOID EFIAPI SetFspGlobalDataPointer ( IN FSP_GLOBAL_DATA FspData)

This function sets the FSP global data pointer.

Parameters
[in]FspDataFsp global data pointer.
VOID EFIAPI SetFspInfoHeader ( FSP_INFO_HEADER FspInfoHeader)

This function sets the FSP info header pointer.

Parameters
[in]FspInfoHeaderFSP info header pointer
UINT64 EFIAPI SetFspMeasurePoint ( IN UINT8  Id)

Set FSP measurement point timestamp.

Parameters
[in]IdMeasurement point ID.
Returns
performance timestamp.
VOID EFIAPI SetFspMemoryInitUpdDataPointer ( IN VOID *  MemoryInitUpdPtr)

This function sets the memory init UPD data pointer.

Parameters
[in]MemoryInitUpdPtrmemory init UPD data pointer.
VOID EFIAPI SetFspPlatformDataPointer ( IN VOID *  PlatformData)

This function sets the platform specific data pointer.

Parameters
[in]PlatformDataFsp platform specific data pointer.
VOID EFIAPI SetFspSiliconInitUpdDataPointer ( IN VOID *  SiliconInitUpdPtr)

This function sets the silicon init UPD data pointer.

Parameters
[in]SiliconInitUpdPtrsilicon init UPD data pointer.
VOID EFIAPI SetFspUpdDataPointer ( IN VOID *  UpdDataPtr)

This function sets the UPD data pointer.

Parameters
[in]UpdDataPtrUPD data pointer.
VOID EFIAPI SetPhaseStatusCode ( UINT32  StatusCode)

This function sets FSP Phase StatusCode.

Parameters
[in]ModePhase StatusCode