TianoCore EDK2 master
Loading...
Searching...
No Matches
FspWrapperApiLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS Execute32BitCode (IN UINT64 Function, IN UINT64 Param1, IN UINT64 Param2)
 
EFI_STATUS Execute64BitCode (IN UINT64 Function, IN UINT64 Param1, IN UINT64 Param2)
 
FSP_INFO_HEADER *EFIAPI FspFindFspHeader (IN EFI_PHYSICAL_ADDRESS FlashFvFspBase)
 
EFI_STATUS EFIAPI CallFspNotifyPhase (IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams)
 
EFI_STATUS EFIAPI CallFspMemoryInit (IN VOID *FspmUpdDataPtr, OUT VOID **HobListPtr)
 
EFI_STATUS EFIAPI CallTempRamExit (IN VOID *TempRamExitParam)
 
EFI_STATUS EFIAPI CallFspSiliconInit (IN VOID *FspsUpdDataPtr)
 

Detailed Description

Provide FSP API related function.

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

Definition in file FspWrapperApiLib.c.

Function Documentation

◆ CallFspMemoryInit()

EFI_STATUS EFIAPI CallFspMemoryInit ( IN VOID *  FspmUpdDataPtr,
OUT VOID **  HobListPtr 
)

Call FSP API - FspMemoryInit.

Parameters
[in]FspmUpdDataPtrAddress pointer to the FSP_MEMORY_INIT_PARAMS structure.
[out]HobListPtrAddress of the HobList pointer.
Returns
EFI status returned by FspMemoryInit API.

Definition at line 134 of file FspWrapperApiLib.c.

◆ CallFspNotifyPhase()

EFI_STATUS EFIAPI CallFspNotifyPhase ( IN NOTIFY_PHASE_PARAMS NotifyPhaseParams)

Call FSP API - FspNotifyPhase.

Parameters
[in]NotifyPhaseParamsAddress pointer to the NOTIFY_PHASE_PARAMS structure.
Returns
EFI status returned by FspNotifyPhase API.

Definition at line 97 of file FspWrapperApiLib.c.

◆ CallFspSiliconInit()

EFI_STATUS EFIAPI CallFspSiliconInit ( IN VOID *  FspsUpdDataPtr)

Call FSP API - FspSiliconInit.

Parameters
[in]FspsUpdDataPtrAddress pointer to the Silicon Init parameters structure.
Returns
EFI status returned by FspSiliconInit API.

Definition at line 207 of file FspWrapperApiLib.c.

◆ CallTempRamExit()

EFI_STATUS EFIAPI CallTempRamExit ( IN VOID *  TempRamExitParam)

Call FSP API - TempRamExit.

Parameters
[in]TempRamExitParamAddress pointer to the TempRamExit parameters structure.
Returns
EFI status returned by TempRamExit API.

Definition at line 171 of file FspWrapperApiLib.c.

◆ Execute32BitCode()

EFI_STATUS Execute32BitCode ( IN UINT64  Function,
IN UINT64  Param1,
IN UINT64  Param2 
)

Wrapper for a thunk to transition from long mode to compatibility mode to execute 32-bit code and then transit back to long mode.

Parameters
[in]FunctionThe 32bit code entry to be executed.
[in]Param1The first parameter to pass to 32bit code.
[in]Param2The second parameter to pass to 32bit code.
Returns
EFI_STATUS.

Definition at line 38 of file DispatchExecute.c.

◆ Execute64BitCode()

EFI_STATUS Execute64BitCode ( IN UINT64  Function,
IN UINT64  Param1,
IN UINT64  Param2 
)

Wrapper to execute 64-bit code directly from long mode.

Parameters
[in]FunctionThe 64bit code entry to be executed.
[in]Param1The first parameter to pass to 64bit code.
[in]Param2The second parameter to pass to 64bit code.
Returns
EFI_STATUS.

Wrapper for a thunk to transition from compatibility mode to long mode to execute 64-bit code and then transit back to compatibility mode.

Parameters
[in]FunctionThe 64bit code entry to be executed.
[in]Param1The first parameter to pass to 64bit code.
[in]Param2The second parameter to pass to 64bit code.
Returns
EFI_STATUS.

Definition at line 64 of file DispatchExecute.c.

◆ FspFindFspHeader()

FSP_INFO_HEADER *EFIAPI FspFindFspHeader ( IN EFI_PHYSICAL_ADDRESS  FlashFvFspBase)

Find FSP header pointer.

Parameters
[in]FlashFvFspBaseFlash address of FSP FV.
Returns
FSP header pointer.

Definition at line 57 of file FspWrapperApiLib.c.