TianoCore EDK2 master
Loading...
Searching...
No Matches
VariableNonVolatile.h File Reference
#include "Variable.h"

Go to the source code of this file.

Functions

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

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.h.

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 ( 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.

◆ 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.