TianoCore EDK2 master
Loading...
Searching...
No Matches
FspPlatformMemory.c File Reference
#include <PiPei.h>
#include <Register/Intel/Msr.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/FspCommonLib.h>
#include <FspGlobalData.h>
#include <FspEas.h>

Go to the source code of this file.

Functions

EFI_HOB_RESOURCE_DESCRIPTOR *EFIAPI FspGetResourceDescriptorByOwner (IN EFI_GUID *OwnerGuid)
 
VOID EFIAPI FspGetSystemMemorySize (IN OUT UINT64 *LowMemoryLength, IN OUT UINT64 *HighMemoryLength)
 
VOID EFIAPI ReadTemporaryRamSize (IN UINT32 TemporaryRamBase, OUT UINT32 *TemporaryRamSize)
 

Detailed Description

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

Definition in file FspPlatformMemory.c.

Function Documentation

◆ FspGetResourceDescriptorByOwner()

EFI_HOB_RESOURCE_DESCRIPTOR *EFIAPI FspGetResourceDescriptorByOwner ( IN EFI_GUID OwnerGuid)

Get system memory resource descriptor by owner.

Parameters
[in]OwnerGuidresource owner guid

Definition at line 28 of file FspPlatformMemory.c.

◆ FspGetSystemMemorySize()

VOID EFIAPI FspGetSystemMemorySize ( IN OUT UINT64 *  LowMemoryLength,
IN OUT UINT64 *  HighMemoryLength 
)

Get system memory from HOB.

Parameters
[in,out]LowMemoryLengthless than 4G memory length
[in,out]HighMemoryLengthgreater than 4G memory length

Definition at line 65 of file FspPlatformMemory.c.

◆ ReadTemporaryRamSize()

VOID EFIAPI ReadTemporaryRamSize ( IN UINT32  TemporaryRamBase,
OUT UINT32 *  TemporaryRamSize 
)

Calculate TemporaryRam Size using Base address.

Parameters
[in]TemporaryRamBasethe address of target memory
[out]TemporaryRamSizethe size of target memory

Definition at line 132 of file FspPlatformMemory.c.