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

Go to the source code of this file.

Functions

UINTN GetNonVolatileMaxVariableSize (VOID)
 
EFI_STATUS InitEmuNonVolatileVariableStore (OUT EFI_PHYSICAL_ADDRESS *VariableStoreBase)
 
EFI_STATUS InitRealNonVolatileVariableStore (OUT EFI_PHYSICAL_ADDRESS *VariableStoreBase)
 
EFI_STATUS InitNonVolatileVariableStore (VOID)
 

Variables

VARIABLE_MODULE_GLOBALmVariableModuleGlobal
 

Detailed Description

Common variable non-volatile store routines.

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

Definition in file VariableNonVolatile.c.

Function Documentation

◆ GetNonVolatileMaxVariableSize()

UINTN GetNonVolatileMaxVariableSize ( VOID  )

Get non-volatile maximum variable size.

Returns
Non-volatile maximum variable size.

Definition at line 21 of file VariableNonVolatile.c.

◆ InitEmuNonVolatileVariableStore()

EFI_STATUS InitEmuNonVolatileVariableStore ( OUT EFI_PHYSICAL_ADDRESS VariableStoreBase)

Init emulated non-volatile variable store.

Parameters
[out]VariableStoreBaseOutput pointer to emulated non-volatile variable store base.
Return values
EFI_SUCCESSFunction successfully executed.
EFI_OUT_OF_RESOURCESFail to allocate enough memory resource.

Definition at line 45 of file VariableNonVolatile.c.

◆ InitNonVolatileVariableStore()

EFI_STATUS InitNonVolatileVariableStore ( VOID  )

Init non-volatile variable store.

Return values
EFI_SUCCESSFunction successfully executed.
EFI_OUT_OF_RESOURCESFail to allocate enough memory resource.
EFI_VOLUME_CORRUPTEDVariable Store or Firmware Volume for Variable Store is corrupted.

Definition at line 294 of file VariableNonVolatile.c.

◆ InitRealNonVolatileVariableStore()

EFI_STATUS InitRealNonVolatileVariableStore ( OUT EFI_PHYSICAL_ADDRESS VariableStoreBase)

Init real non-volatile variable store.

Parameters
[out]VariableStoreBaseOutput pointer to real non-volatile variable store base.
Return values
EFI_SUCCESSFunction successfully executed.
EFI_OUT_OF_RESOURCESFail to allocate enough memory resource.
EFI_VOLUME_CORRUPTEDVariable Store or Firmware Volume for Variable Store is corrupted.

Definition at line 134 of file VariableNonVolatile.c.

Variable Documentation

◆ mVariableModuleGlobal

VARIABLE_MODULE_GLOBAL* mVariableModuleGlobal
extern

Definition at line 33 of file Variable.c.