]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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 Saves the non-volatile variables into the NvVars file on the
41 given file system.
42
43 @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance
44
45 @return EFI_STATUS based on the success or failure of load operation
46
47 **/
48 EFI_STATUS
49 SaveNvVarsToFs (
50 EFI_HANDLE FsHandle
51 );
52
53 #endif