TianoCore EDK2 master
Loading...
Searching...
No Matches
Platform.h File Reference

Go to the source code of this file.

Functions

VOID AddressWidthInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID Q35TsegMbytesInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID Q35SmramAtDefaultSmbaseInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
EFI_STATUS PublishPeiMemory (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID InitializeRamRegions (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MemMapInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MiscInitialization (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID BootModeInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MaxCpuCountInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
EFI_STATUS PeiFvInitialization (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MemTypeInfoInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID InstallFeatureControlCallback (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID InstallClearCacheCallback (VOID)
 
VOID RelocateSmBase (VOID)
 
VOID AmdSevInitialize (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID IntelTdxInitialize (VOID)
 
EFI_HOB_PLATFORM_INFOBuildPlatformInfoHob (VOID)
 Builds PlatformInfo Hob.
 
VOID SevInitializeRam (VOID)
 

Detailed Description

Platform PEI module include file.

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

Definition in file Platform.h.

Function Documentation

◆ AddressWidthInitialization()

VOID AddressWidthInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Initialize the PhysMemAddressWidth field in PlatformInfoHob based on guest RAM size.

Definition at line 120 of file MemDetect.c.

◆ BootModeInitialization()

VOID BootModeInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 198 of file Platform.c.

◆ BuildPlatformInfoHob()

EFI_HOB_PLATFORM_INFO * BuildPlatformInfoHob ( VOID  )

Builds PlatformInfo Hob.

Definition at line 544 of file Platform.c.

◆ InitializeRamRegions()

VOID InitializeRamRegions ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Publish system RAM and reserve memory regions

Definition at line 405 of file MemDetect.c.

◆ InstallClearCacheCallback()

VOID InstallClearCacheCallback ( VOID  )

Definition at line 100 of file ClearCache.c.

◆ InstallFeatureControlCallback()

VOID InstallFeatureControlCallback ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 126 of file FeatureControl.c.

◆ IntelTdxInitialize()

VOID IntelTdxInitialize ( VOID  )

This Function checks if TDX is available, if present then it sets the dynamic PCDs for Tdx guest. It also builds Guid hob which contains the Host Bridge DevId.

This Function checks if TDX is available, if present then it sets the dynamic PCDs for Tdx guest.

Definition at line 32 of file IntelTdx.c.

◆ MaxCpuCountInitialization()

VOID MaxCpuCountInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Fetch the boot CPU count and the possible CPU count from QEMU, and expose them to UefiCpuPkg modules. Set the MaxCpuCount field in PlatformInfoHob.

Definition at line 262 of file Platform.c.

◆ MemMapInitialization()

VOID MemMapInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 55 of file Platform.c.

◆ MemTypeInfoInitialization()

VOID MemTypeInfoInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 205 of file MemTypeInfo.c.

◆ MiscInitialization()

VOID MiscInitialization ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 185 of file Platform.c.

◆ PeiFvInitialization()

EFI_STATUS PeiFvInitialization ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Publish PEI & DXE (Decompressed) Memory based FVs to let PEI and DXE know about them.

Return values
EFI_SUCCESSPlatform PEI FVs were initialized successfully.

Definition at line 24 of file Fv.c.

◆ PublishPeiMemory()

EFI_STATUS PublishPeiMemory ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Publish PEI core memory

Returns
EFI_SUCCESS The PEIM initialized successfully.

Definition at line 301 of file MemDetect.c.

◆ Q35SmramAtDefaultSmbaseInitialization()

VOID Q35SmramAtDefaultSmbaseInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 87 of file MemDetect.c.

◆ Q35TsegMbytesInitialization()

VOID Q35TsegMbytesInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 43 of file MemDetect.c.

◆ RelocateSmBase()

VOID RelocateSmBase ( VOID  )

Definition at line 65 of file SmmRelocation.c.

◆ SevInitializeRam()

VOID SevInitializeRam ( VOID  )

The function performs SEV specific region initialization.

Definition at line 542 of file AmdSev.c.