]>
Commit | Line | Data |
---|---|---|
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 | |
22 | EFI_STATUS\r | |
23 | EFIAPI\r | |
24 | ConnectNvVarsToFileSystem (\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 | |
37 | EFI_STATUS\r | |
38 | EFIAPI\r | |
39 | UpdateNvVarsOnFileSystem (\r | |
40 | );\r | |
41 | \r | |
50944545 | 42 | #endif\r |