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

Go to the source code of this file.

Functions

STATIC EFI_STATUS GetVariableFlashInfoFromHob (OUT VARIABLE_FLASH_INFO **VariableFlashInfo)
 
EFI_STATUS EFIAPI GetVariableFlashNvStorageInfo (OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
 
EFI_STATUS EFIAPI GetVariableFlashFtwSpareInfo (OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
 
EFI_STATUS EFIAPI GetVariableFlashFtwWorkingInfo (OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
 

Detailed Description

Variable Flash Information Library

Copyright (c) Microsoft Corporation

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BaseVariableFlashInfoLib.c.

Function Documentation

◆ GetVariableFlashFtwSpareInfo()

EFI_STATUS EFIAPI GetVariableFlashFtwSpareInfo ( OUT EFI_PHYSICAL_ADDRESS BaseAddress,
OUT UINT64 *  Length 
)

Get the base address and size for the fault tolerant write (FTW) spare area used for UEFI variable storage.

Parameters
[out]BaseAddressThe FTW spare base address.
[out]LengthThe FTW spare length in bytes.
Return values
EFI_SUCCESSFTW spare information was found successfully.
EFI_INVALID_PARAMETERA required pointer parameter is NULL.
EFI_NOT_FOUNDFTW spare information could not be found.

Definition at line 113 of file BaseVariableFlashInfoLib.c.

◆ GetVariableFlashFtwWorkingInfo()

EFI_STATUS EFIAPI GetVariableFlashFtwWorkingInfo ( OUT EFI_PHYSICAL_ADDRESS BaseAddress,
OUT UINT64 *  Length 
)

Get the base address and size for the fault tolerant write (FTW) working area used for UEFI variable storage.

Parameters
[out]BaseAddressThe FTW working area base address.
[out]LengthThe FTW working area length in bytes.
Return values
EFI_SUCCESSFTW working information was found successfully.
EFI_INVALID_PARAMETERA required pointer parameter is NULL.
EFI_NOT_FOUNDFTW working information could not be found.

Definition at line 154 of file BaseVariableFlashInfoLib.c.

◆ GetVariableFlashInfoFromHob()

STATIC EFI_STATUS GetVariableFlashInfoFromHob ( OUT VARIABLE_FLASH_INFO **  VariableFlashInfo)

Get the HOB that contains variable flash information.

Parameters
[out]VariableFlashInfoPointer to a pointer to set to the variable flash information structure.
Return values
EFI_SUCCESSVariable flash information was found successfully.
EFI_INVALID_PARAMETERThe VariableFlashInfo pointer given is NULL.
EFI_NOT_FOUNDVariable flash information could not be found.

Definition at line 29 of file BaseVariableFlashInfoLib.c.

◆ GetVariableFlashNvStorageInfo()

EFI_STATUS EFIAPI GetVariableFlashNvStorageInfo ( OUT EFI_PHYSICAL_ADDRESS BaseAddress,
OUT UINT64 *  Length 
)

Get the base address and size for the NV storage area used for UEFI variable storage.

Parameters
[out]BaseAddressThe NV storage base address.
[out]LengthThe NV storage length in bytes.
Return values
EFI_SUCCESSNV storage information was found successfully.
EFI_INVALID_PARAMETERA required pointer parameter is NULL.

Definition at line 72 of file BaseVariableFlashInfoLib.c.