TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/PeiServicesLib.h>
#include <Library/PeiServicesTablePointerLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/HobLib.h>
#include <Library/PcdLib.h>
#include <Library/FspWrapperPlatformLib.h>
#include <Guid/GuidHobFspEas.h>
#include <Guid/MemoryTypeInformation.h>
#include <Guid/PcdDataBaseHobGuid.h>
#include <Ppi/Capsule.h>
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) |
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.
#define PEI_ADDITIONAL_MEMORY_SIZE (16 * EFI_PAGE_SIZE) |
Definition at line 29 of file FspWrapperHobProcessLibSample.c.
UINT64 GetMemorySizeInMemoryTypeInformation | ( | IN EFI_PEI_SERVICES ** | PeiServices | ) |
Get the mem size in memory type information table.
[in] | PeiServices | PEI Services table. |
Definition at line 39 of file FspWrapperHobProcessLibSample.c.
UINT64 GetPeiMemSize | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN UINT32 | BootMode | ||
) |
Get the mem size need to be consumed and reserved in PEI phase.
[in] | PeiServices | PEI Services table. |
[in] | BootMode | Current boot mode. |
Definition at line 105 of file FspWrapperHobProcessLibSample.c.
EFI_STATUS EFIAPI PostFspmHobProcess | ( | IN VOID * | FspHobList | ) |
Post FSP-M HOB process for Memory Resource Descriptor.
[in] | FspHobList | Pointer to the HOB data structure produced by FSP. |
Definition at line 140 of file FspWrapperHobProcessLibSample.c.
EFI_STATUS EFIAPI PostFspsHobProcess | ( | IN VOID * | FspHobList | ) |
Post FSP-S HOB process (not Memory Resource Descriptor).
[in] | FspHobList | Pointer to the HOB data structure produced by FSP. |
Definition at line 382 of file FspWrapperHobProcessLibSample.c.
VOID ProcessFspHobList | ( | IN VOID * | FspHobList | ) |
Process FSP HOB list
[in] | FspHobList | Pointer to the HOB data structure produced by FSP. |
Definition at line 344 of file FspWrapperHobProcessLibSample.c.
UINT64 RetrieveRequiredMemorySize | ( | IN EFI_PEI_SERVICES ** | PeiServices | ) |
Get the mem size need to be reserved in PEI phase.
[in] | PeiServices | PEI Services table. |
Definition at line 86 of file FspWrapperHobProcessLibSample.c.