]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/Library/NvVarsFileLib.h
OvmfPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / OvmfPkg / Include / Library / NvVarsFileLib.h
CommitLineData
50944545 1/** @file\r
2 Provides functions to save and restore NV variables in a file.\r
3\r
56d7640a 4 Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
b26f0cf9 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
50944545 6\r
7**/\r
8\r
9#ifndef __NV_VARS_FILE_LIB__\r
10#define __NV_VARS_FILE_LIB__\r
11\r
12/**\r
13 Attempts to connect the NvVarsFileLib to the specified file system.\r
14\r
15 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r
16\r
17 @return The EFI_STATUS while attempting to connect the NvVarsFileLib\r
18 to the file system instance.\r
19 @retval EFI_SUCCESS - The given file system was connected successfully\r
20\r
21**/\r
22EFI_STATUS\r
23EFIAPI\r
24ConnectNvVarsToFileSystem (\r
25 IN EFI_HANDLE FsHandle\r
26 );\r
27\r
9607962d 28\r
29/**\r
30 Update non-volatile variables stored on the file system.\r
31\r
32 @return The EFI_STATUS while attempting to update the variable on\r
33 the connected file system.\r
34 @retval EFI_SUCCESS - The non-volatile variables were saved to the disk\r
35 @retval EFI_NOT_STARTED - A file system has not been connected\r
36\r
37**/\r
38EFI_STATUS\r
39EFIAPI\r
40UpdateNvVarsOnFileSystem (\r
41 );\r
42\r
43\r
50944545 44#endif\r
45\r