]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.h
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Library / NvVarsFileLib / NvVarsFileLib.h
CommitLineData
3e92a997
LE
1/** @file\r
2 Save Non-Volatile Variables to a file system.\r
3\r
4 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
b26f0cf9 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3e92a997
LE
6\r
7**/\r
8\r
9#ifndef __NV_VARS_FILE_LIB_INSTANCE__\r
10#define __NV_VARS_FILE_LIB_INSTANCE__\r
11\r
12#include <Uefi.h>\r
13\r
14#include <Guid/FileInfo.h>\r
15\r
16#include <Protocol/SimpleFileSystem.h>\r
17\r
18#include <Library/BaseLib.h>\r
19#include <Library/FileHandleLib.h>\r
20#include <Library/SerializeVariablesLib.h>\r
21#include <Library/UefiBootServicesTableLib.h>\r
22#include <Library/UefiRuntimeServicesTableLib.h>\r
23#include <Library/UefiLib.h>\r
24\r
25/**\r
26 Loads the non-volatile variables from the NvVars file on the\r
27 given file system.\r
28\r
29 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r
30\r
31 @return EFI_STATUS based on the success or failure of load operation\r
32\r
33**/\r
34EFI_STATUS\r
35LoadNvVarsFromFs (\r
ac0a286f 36 EFI_HANDLE FsHandle\r
3e92a997
LE
37 );\r
38\r
3e92a997
LE
39/**\r
40 Saves the non-volatile variables into the NvVars file on the\r
41 given file system.\r
42\r
43 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r
44\r
45 @return EFI_STATUS based on the success or failure of load operation\r
46\r
47**/\r
48EFI_STATUS\r
49SaveNvVarsToFs (\r
ac0a286f 50 EFI_HANDLE FsHandle\r
3e92a997
LE
51 );\r
52\r
53#endif\r