TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <FspGlobalData.h>
#include <FspEas.h>
#include <Library/FspSwitchStackLib.h>
Go to the source code of this file.
Data Structures | |
struct | CONTEXT_STACK |
struct | CONTEXT_STACK_64 |
Macros | |
#define | CONTEXT_STACK_OFFSET(x) (sizeof(UINTN) == sizeof (UINT32) ? (UINTN)&((CONTEXT_STACK *)(UINTN)0)->x : (UINTN)&((CONTEXT_STACK_64 *)(UINTN)0)->x) |
Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FspCommonLib.c.
#define CONTEXT_STACK_OFFSET | ( | x | ) | (sizeof(UINTN) == sizeof (UINT32) ? (UINTN)&((CONTEXT_STACK *)(UINTN)0)->x : (UINTN)&((CONTEXT_STACK_64 *)(UINTN)0)->x) |
Definition at line 47 of file FspCommonLib.c.
UINT8 EFIAPI GetFspApiCallingIndex | ( | VOID | ) |
This function gets FSP API calling index.
API | calling index |
Definition at line 500 of file FspCommonLib.c.
UINTN EFIAPI GetFspApiParameter | ( | VOID | ) |
This function gets back the FSP API first parameter passed by the bootloader.
ApiParameter | FSP API first parameter passed by the bootloader. |
Definition at line 90 of file FspCommonLib.c.
UINTN EFIAPI GetFspApiParameter2 | ( | VOID | ) |
This function gets back the FSP API second parameter passed by the bootloader.
ApiParameter | FSP API second parameter passed by the bootloader. |
Definition at line 124 of file FspCommonLib.c.
VOID *EFIAPI GetFspCfgRegionDataPointer | ( | VOID | ) |
This function gets the CfgRegion data pointer.
Definition at line 483 of file FspCommonLib.c.
VOID *EFIAPI GetFspEntryStack | ( | VOID | ) |
This function returns the FSP entry stack pointer from address of the first API parameter.
FSP | entry stack pointer. |
Definition at line 107 of file FspCommonLib.c.
FSP_GLOBAL_DATA *EFIAPI GetFspGlobalDataPointer | ( | VOID | ) |
This function gets the FSP global data pointer.
Definition at line 73 of file FspCommonLib.c.
FSP_INFO_HEADER *EFIAPI GetFspInfoHeader | ( | VOID | ) |
This function gets the FSP info header pointer.
FspInfoHeader | FSP info header pointer |
Definition at line 438 of file FspCommonLib.c.
FSP_INFO_HEADER *EFIAPI GetFspInfoHeaderFromApiContext | ( | VOID | ) |
This function gets the FSP info header pointer using the API stack context.
FspInfoHeader | FSP info header pointer using the API stack context |
Definition at line 466 of file FspCommonLib.c.
VOID *EFIAPI GetFspMemoryInitUpdDataPointer | ( | VOID | ) |
This function gets the FspMemoryInit UPD data pointer.
Definition at line 309 of file FspCommonLib.c.
VOID *EFIAPI GetFspPlatformDataPointer | ( | VOID | ) |
This function gets the platform specific data pointer.
[in] | PlatformData | FSP platform specific data pointer. |
Definition at line 227 of file FspCommonLib.c.
VOID *EFIAPI GetFspSiliconInitUpdDataPointer | ( | VOID | ) |
This function gets the FspSiliconInit UPD data pointer.
Definition at line 350 of file FspCommonLib.c.
VOID *EFIAPI GetFspSmmInitUpdDataPointer | ( | VOID | ) |
This function gets the FspSmmInit UPD data pointer.
Definition at line 391 of file FspCommonLib.c.
VOID *EFIAPI GetFspUpdDataPointer | ( | VOID | ) |
This function gets the UPD data pointer.
Definition at line 268 of file FspCommonLib.c.
UINT32 EFIAPI GetPhaseStatusCode | ( | VOID | ) |
This function gets FSP Phase StatusCode.
StatusCode |
Definition at line 531 of file FspCommonLib.c.
VOID EFIAPI SetFspApiCallingIndex | ( | UINT8 | Index | ) |
This function sets FSP API calling mode.
[in] | Index | API calling index |
Definition at line 514 of file FspCommonLib.c.
VOID EFIAPI SetFspApiParameter | ( | IN UINT32 | Value | ) |
This function sets the FSP API parameter in the stack.
[in] | Value | New parameter value. |
Definition at line 142 of file FspCommonLib.c.
This function set the API status code returned to the BootLoader.
[in] | ReturnStatus | Status code to return. |
Definition at line 160 of file FspCommonLib.c.
VOID EFIAPI SetFspCoreStackPointer | ( | IN VOID * | NewStackTop | ) |
This function sets the context switching stack to a new stack frame.
[in] | NewStackTop | New core stack to be set. |
Definition at line 178 of file FspCommonLib.c.
VOID EFIAPI SetFspGlobalDataPointer | ( | IN FSP_GLOBAL_DATA * | FspData | ) |
This function sets the FSP global data pointer.
[in] | FspData | FSP global data pointer. |
Definition at line 59 of file FspCommonLib.c.
VOID EFIAPI SetFspInfoHeader | ( | FSP_INFO_HEADER * | FspInfoHeader | ) |
This function sets the FSP info header pointer.
[in] | FspInfoHeader | FSP info header pointer |
Definition at line 452 of file FspCommonLib.c.
UINT64 EFIAPI SetFspMeasurePoint | ( | IN UINT8 | Id | ) |
Set FSP measurement point timestamp.
[in] | Id | Measurement point ID. |
Definition at line 411 of file FspCommonLib.c.
VOID EFIAPI SetFspMemoryInitUpdDataPointer | ( | IN VOID * | MemoryInitUpdPtr | ) |
This function sets the FspMemoryInit UPD data pointer.
[in] | MemoryInitUpdPtr | FspMemoryInit UPD data pointer. |
Definition at line 285 of file FspCommonLib.c.
VOID EFIAPI SetFspPlatformDataPointer | ( | IN VOID * | PlatformData | ) |
This function sets the platform specific data pointer.
[in] | PlatformData | FSP platform specific data pointer. |
Definition at line 209 of file FspCommonLib.c.
VOID EFIAPI SetFspSiliconInitUpdDataPointer | ( | IN VOID * | SiliconInitUpdPtr | ) |
This function sets the FspSiliconInit UPD data pointer.
[in] | SiliconInitUpdPtr | FspSiliconInit UPD data pointer. |
Definition at line 326 of file FspCommonLib.c.
VOID EFIAPI SetFspSmmInitUpdDataPointer | ( | IN VOID * | SmmInitUpdPtr | ) |
This function sets the FspSmmInit UPD data pointer.
[in] | SmmInitUpdPtr | FspSmmInit UPD data pointer. |
Definition at line 367 of file FspCommonLib.c.
VOID EFIAPI SetFspUpdDataPointer | ( | IN VOID * | UpdDataPtr | ) |
This function sets the UPD data pointer.
[in] | UpdDataPtr | UPD data pointer. |
Definition at line 244 of file FspCommonLib.c.
VOID EFIAPI SetPhaseStatusCode | ( | UINT32 | StatusCode | ) |
This function sets FSP Phase StatusCode.
[in] | Mode | Phase StatusCode |
Definition at line 545 of file FspCommonLib.c.