]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/Library/NvVarsFileLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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
ac0a286f 25 IN EFI_HANDLE FsHandle\r
50944545 26 );\r
27\r
9607962d 28/**\r
29 Update non-volatile variables stored on the file system.\r
30\r
31 @return The EFI_STATUS while attempting to update the variable on\r
32 the connected file system.\r
33 @retval EFI_SUCCESS - The non-volatile variables were saved to the disk\r
34 @retval EFI_NOT_STARTED - A file system has not been connected\r
35\r
36**/\r
37EFI_STATUS\r
38EFIAPI\r
39UpdateNvVarsOnFileSystem (\r
40 );\r
41\r
50944545 42#endif\r