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