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

Go to the source code of this file.

Functions

UINTN GetFspmUpdDataAddress (VOID)
 
EFI_STATUS PeiFspMemoryInit (VOID)
 
EFI_STATUS EFIAPI FspmWrapperInit (VOID)
 
EFI_STATUS EFIAPI TcgPpiNotify (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc, IN VOID *Ppi)
 
EFI_STATUS EFIAPI FspmWrapperPeimEntryPoint (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Variables

EFI_GUID gFspHobGuid
 
EFI_PEI_NOTIFY_DESCRIPTOR mTcgPpiNotifyDesc
 

Detailed Description

This will be invoked only once. It will call FspMemoryInit API, register TemporaryRamDonePpi to call TempRamExit API, and register MemoryDiscoveredPpi notify to call FspSiliconInit API.

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

Definition in file FspmWrapperPeim.c.

Function Documentation

◆ FspmWrapperInit()

EFI_STATUS EFIAPI FspmWrapperInit ( VOID  )

Do FSP initialization.

Returns
FSP initialization status.

Definition at line 191 of file FspmWrapperPeim.c.

◆ FspmWrapperPeimEntryPoint()

EFI_STATUS EFIAPI FspmWrapperPeimEntryPoint ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

This is the entrypoint of PEIM

Parameters
[in]FileHandleHandle of the file being invoked.
[in]PeiServicesDescribes the list of possible PEI Services.
Return values
EFI_SUCCESSif it completed successfully.

Definition at line 342 of file FspmWrapperPeim.c.

◆ GetFspmUpdDataAddress()

UINTN GetFspmUpdDataAddress ( VOID  )

Get the FSP M UPD Data address

Returns
FSP-M UPD Data Address

Definition at line 51 of file FspmWrapperPeim.c.

◆ PeiFspMemoryInit()

EFI_STATUS PeiFspMemoryInit ( VOID  )

Call FspMemoryInit API.

Returns
Status returned by FspMemoryInit API.

Definition at line 68 of file FspmWrapperPeim.c.

◆ TcgPpiNotify()

EFI_STATUS EFIAPI TcgPpiNotify ( IN EFI_PEI_SERVICES **  PeiServices,
IN EFI_PEI_NOTIFY_DESCRIPTOR NotifyDesc,
IN VOID *  Ppi 
)

This function is called after TCG installed PPI.

Parameters
[in]PeiServicesPointer to PEI Services Table.
[in]NotifyDescPointer to the descriptor for the Notification event that caused this function to execute.
[in]PpiPointer to the PPI data associated with this function.
Return values
EFI_STATUSAlways return EFI_SUCCESS

Definition at line 276 of file FspmWrapperPeim.c.

Variable Documentation

◆ mTcgPpiNotifyDesc

EFI_PEI_NOTIFY_DESCRIPTOR mTcgPpiNotifyDesc
Initial value:
= {
(EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEdkiiTcgPpiGuid,
}
EFI_STATUS EFIAPI TcgPpiNotify(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc, IN VOID *Ppi)

Definition at line 258 of file FspmWrapperPeim.c.