TianoCore EDK2 master
|
#include <IndustryStandard/E820.h>
#include <IndustryStandard/I440FxPiix4.h>
#include <IndustryStandard/Q35MchIch9.h>
#include <IndustryStandard/CloudHv.h>
#include <IndustryStandard/Xen/arch-x86/hvm/start_info.h>
#include <PiPei.h>
#include <Register/Intel/SmramSaveStateMap.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/IoLib.h>
#include <Library/MemEncryptSevLib.h>
#include <Library/PcdLib.h>
#include <Library/PciLib.h>
#include <Library/PeimEntryPoint.h>
#include <Library/ResourcePublicationLib.h>
#include <Library/QemuFwCfgLib.h>
#include <Library/QemuFwCfgSimpleParserLib.h>
#include "Platform.h"
Go to the source code of this file.
Functions | |
VOID | Q35TsegMbytesInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
VOID | Q35SmramAtDefaultSmbaseInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
VOID | AddressWidthInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
STATIC UINT32 | GetPeiMemoryCap (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
EFI_STATUS | PublishPeiMemory (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
VOID | InitializeRamRegions (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
Memory Detection for Virtual Machines.
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Module Name:
MemDetect.c
Definition in file MemDetect.c.
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.
STATIC UINT32 GetPeiMemoryCap | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Calculate the cap for the permanent PEI memory.
Definition at line 180 of file MemDetect.c.
VOID InitializeRamRegions | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Publish system RAM and reserve memory regions
Definition at line 405 of file MemDetect.c.
EFI_STATUS PublishPeiMemory | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Publish PEI core memory
Definition at line 301 of file MemDetect.c.
VOID Q35SmramAtDefaultSmbaseInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 87 of file MemDetect.c.
VOID Q35TsegMbytesInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 43 of file MemDetect.c.