]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableNonVolatile.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableNonVolatile.h
CommitLineData
6b0d7b01
MK
1/** @file\r
2 Common variable non-volatile store routines.\r
3\r
4Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#ifndef _VARIABLE_NON_VOLATILE_H_\r
10#define _VARIABLE_NON_VOLATILE_H_\r
11\r
12#include "Variable.h"\r
13\r
14/**\r
15 Get non-volatile maximum variable size.\r
16\r
17 @return Non-volatile maximum variable size.\r
18\r
19**/\r
20UINTN\r
21GetNonVolatileMaxVariableSize (\r
22 VOID\r
23 );\r
24\r
25/**\r
26 Init emulated non-volatile variable store.\r
27\r
28 @param[out] VariableStoreBase Output pointer to emulated non-volatile variable store base.\r
29\r
30 @retval EFI_SUCCESS Function successfully executed.\r
31 @retval EFI_OUT_OF_RESOURCES Fail to allocate enough memory resource.\r
32\r
33**/\r
34EFI_STATUS\r
35InitEmuNonVolatileVariableStore (\r
36 EFI_PHYSICAL_ADDRESS *VariableStoreBase\r
37 );\r
38\r
39/**\r
40 Init real non-volatile variable store.\r
41\r
42 @param[out] VariableStoreBase Output pointer to real non-volatile variable store base.\r
43\r
44 @retval EFI_SUCCESS Function successfully executed.\r
45 @retval EFI_OUT_OF_RESOURCES Fail to allocate enough memory resource.\r
46 @retval EFI_VOLUME_CORRUPTED Variable Store or Firmware Volume for Variable Store is corrupted.\r
47\r
48**/\r
49EFI_STATUS\r
50InitRealNonVolatileVariableStore (\r
1436aea4 51 OUT EFI_PHYSICAL_ADDRESS *VariableStoreBase\r
6b0d7b01
MK
52 );\r
53\r
54/**\r
55 Init non-volatile variable store.\r
56\r
57 @retval EFI_SUCCESS Function successfully executed.\r
58 @retval EFI_OUT_OF_RESOURCES Fail to allocate enough memory resource.\r
59 @retval EFI_VOLUME_CORRUPTED Variable Store or Firmware Volume for Variable Store is corrupted.\r
60\r
61**/\r
62EFI_STATUS\r
63InitNonVolatileVariableStore (\r
64 VOID\r
65 );\r
66\r
67#endif\r