Commit | Line | Data |
---|---|---|
50944545 | 1 | /** @file\r |
2 | Provides functions to save and restore NV variables in a file.\r | |
3 | \r | |
56d7640a HT |
4 | Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
50944545 | 6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __NV_VARS_FILE_LIB__\r | |
16 | #define __NV_VARS_FILE_LIB__\r | |
17 | \r | |
18 | /**\r | |
19 | Attempts to connect the NvVarsFileLib to the specified file system.\r | |
20 | \r | |
21 | @param[in] FsHandle - Handle for a gEfiSimpleFileSystemProtocolGuid instance\r | |
22 | \r | |
23 | @return The EFI_STATUS while attempting to connect the NvVarsFileLib\r | |
24 | to the file system instance.\r | |
25 | @retval EFI_SUCCESS - The given file system was connected successfully\r | |
26 | \r | |
27 | **/\r | |
28 | EFI_STATUS\r | |
29 | EFIAPI\r | |
30 | ConnectNvVarsToFileSystem (\r | |
31 | IN EFI_HANDLE FsHandle\r | |
32 | );\r | |
33 | \r | |
9607962d | 34 | \r |
35 | /**\r | |
36 | Update non-volatile variables stored on the file system.\r | |
37 | \r | |
38 | @return The EFI_STATUS while attempting to update the variable on\r | |
39 | the connected file system.\r | |
40 | @retval EFI_SUCCESS - The non-volatile variables were saved to the disk\r | |
41 | @retval EFI_NOT_STARTED - A file system has not been connected\r | |
42 | \r | |
43 | **/\r | |
44 | EFI_STATUS\r | |
45 | EFIAPI\r | |
46 | UpdateNvVarsOnFileSystem (\r | |
47 | );\r | |
48 | \r | |
49 | \r | |
50944545 | 50 | #endif\r |
51 | \r |