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

Go to the source code of this file.

Macros

#define PEI_ADDITIONAL_MEMORY_SIZE   (16 * EFI_PAGE_SIZE)
 

Functions

UINT64 GetMemorySizeInMemoryTypeInformation (IN EFI_PEI_SERVICES **PeiServices)
 
UINT64 RetrieveRequiredMemorySize (IN EFI_PEI_SERVICES **PeiServices)
 
UINT64 GetPeiMemSize (IN EFI_PEI_SERVICES **PeiServices, IN UINT32 BootMode)
 
EFI_STATUS EFIAPI PostFspmHobProcess (IN VOID *FspHobList)
 
VOID ProcessFspHobList (IN VOID *FspHobList)
 
EFI_STATUS EFIAPI PostFspsHobProcess (IN VOID *FspHobList)
 

Detailed Description

Sample to provide FSP wrapper hob process related function.

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

Definition in file FspWrapperHobProcessLibSample.c.

Macro Definition Documentation

◆ PEI_ADDITIONAL_MEMORY_SIZE

#define PEI_ADDITIONAL_MEMORY_SIZE   (16 * EFI_PAGE_SIZE)

Definition at line 29 of file FspWrapperHobProcessLibSample.c.

Function Documentation

◆ GetMemorySizeInMemoryTypeInformation()

UINT64 GetMemorySizeInMemoryTypeInformation ( IN EFI_PEI_SERVICES **  PeiServices)

Get the mem size in memory type information table.

Parameters
[in]PeiServicesPEI Services table.
Returns
the mem size in memory type information table.

Definition at line 39 of file FspWrapperHobProcessLibSample.c.

◆ GetPeiMemSize()

UINT64 GetPeiMemSize ( IN EFI_PEI_SERVICES **  PeiServices,
IN UINT32  BootMode 
)

Get the mem size need to be consumed and reserved in PEI phase.

Parameters
[in]PeiServicesPEI Services table.
[in]BootModeCurrent boot mode.
Returns
the mem size need to be consumed and reserved in PEI phase.

Definition at line 105 of file FspWrapperHobProcessLibSample.c.

◆ PostFspmHobProcess()

EFI_STATUS EFIAPI PostFspmHobProcess ( IN VOID *  FspHobList)

Post FSP-M HOB process for Memory Resource Descriptor.

Parameters
[in]FspHobListPointer to the HOB data structure produced by FSP.
Returns
If platform process the FSP hob list successfully.

Definition at line 140 of file FspWrapperHobProcessLibSample.c.

◆ PostFspsHobProcess()

EFI_STATUS EFIAPI PostFspsHobProcess ( IN VOID *  FspHobList)

Post FSP-S HOB process (not Memory Resource Descriptor).

Parameters
[in]FspHobListPointer to the HOB data structure produced by FSP.
Returns
If platform process the FSP hob list successfully.

Definition at line 382 of file FspWrapperHobProcessLibSample.c.

◆ ProcessFspHobList()

VOID ProcessFspHobList ( IN VOID *  FspHobList)

Process FSP HOB list

Parameters
[in]FspHobListPointer to the HOB data structure produced by FSP.

Definition at line 344 of file FspWrapperHobProcessLibSample.c.

◆ RetrieveRequiredMemorySize()

UINT64 RetrieveRequiredMemorySize ( IN EFI_PEI_SERVICES **  PeiServices)

Get the mem size need to be reserved in PEI phase.

Parameters
[in]PeiServicesPEI Services table.
Returns
the mem size need to be reserved in PEI phase.

Definition at line 86 of file FspWrapperHobProcessLibSample.c.