]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.h
OvmfPkg/PlatformBootManagerLib: rejuvenate old-style function comments
[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
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __NV_VARS_FILE_LIB_INSTANCE__\r
16#define __NV_VARS_FILE_LIB_INSTANCE__\r
17\r
18#include <Uefi.h>\r
19\r
20#include <Guid/FileInfo.h>\r
21\r
22#include <Protocol/SimpleFileSystem.h>\r
23\r
24#include <Library/BaseLib.h>\r
25#include <Library/FileHandleLib.h>\r
26#include <Library/SerializeVariablesLib.h>\r
27#include <Library/UefiBootServicesTableLib.h>\r
28#include <Library/UefiRuntimeServicesTableLib.h>\r
29#include <Library/UefiLib.h>\r
30\r
31/**\r
32 Loads the non-volatile variables from the NvVars file on the\r
33 given file system.\r
34\r
35 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r
36\r
37 @return EFI_STATUS based on the success or failure of load operation\r
38\r
39**/\r
40EFI_STATUS\r
41LoadNvVarsFromFs (\r
42 EFI_HANDLE FsHandle\r
43 );\r
44\r
45\r
46/**\r
47 Saves the non-volatile variables into the NvVars file on the\r
48 given file system.\r
49\r
50 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r
51\r
52 @return EFI_STATUS based on the success or failure of load operation\r
53\r
54**/\r
55EFI_STATUS\r
56SaveNvVarsToFs (\r
57 EFI_HANDLE FsHandle\r
58 );\r
59\r
60#endif\r
61\r