OLD | NEW |
1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Chrome OS firmware/system interface utility | 5 * Chrome OS firmware/system interface utility |
6 */ | 6 */ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 /* Writable integers */ | 59 /* Writable integers */ |
60 {"nvram_cleared", CAN_WRITE, "Have NV settings been lost? Write 0 to clear"}, | 60 {"nvram_cleared", CAN_WRITE, "Have NV settings been lost? Write 0 to clear"}, |
61 {"kern_nv", CAN_WRITE, "Non-volatile field for kernel use", "0x%08x"}, | 61 {"kern_nv", CAN_WRITE, "Non-volatile field for kernel use", "0x%08x"}, |
62 {"recovery_request", CAN_WRITE, "Recovery mode request (writable)"}, | 62 {"recovery_request", CAN_WRITE, "Recovery mode request (writable)"}, |
63 {"dbg_reset", CAN_WRITE, "Debug reset mode request (writable)"}, | 63 {"dbg_reset", CAN_WRITE, "Debug reset mode request (writable)"}, |
64 {"fwb_tries", CAN_WRITE, "Try firmware B count (writable)"}, | 64 {"fwb_tries", CAN_WRITE, "Try firmware B count (writable)"}, |
65 {"fwupdate_tries", CAN_WRITE, | 65 {"fwupdate_tries", CAN_WRITE, |
66 "Times to try OS firmware update (writable, inside kern_nv)"}, | 66 "Times to try OS firmware update (writable, inside kern_nv)"}, |
67 {"vbtest_errfunc", CAN_WRITE, "Verified boot test error function (writable)"}, | 67 {"vbtest_errfunc", CAN_WRITE, "Verified boot test error function (writable)"}, |
68 {"vbtest_errno", CAN_WRITE, "Verified boot test error number (writable)"}, | 68 {"vbtest_errno", CAN_WRITE, "Verified boot test error number (writable)"}, |
| 69 {"loc_idx", CAN_WRITE, "Localization index for firmware screens (writable)"}, |
69 /* Fields not shown in a print-all list */ | 70 /* Fields not shown in a print-all list */ |
70 {"vdat_lfdebug", IS_STRING|NO_PRINT_ALL, | 71 {"vdat_lfdebug", IS_STRING|NO_PRINT_ALL, |
71 "LoadFirmware() debug data (not in print-all)"}, | 72 "LoadFirmware() debug data (not in print-all)"}, |
72 {"vdat_lkdebug", IS_STRING|NO_PRINT_ALL, | 73 {"vdat_lkdebug", IS_STRING|NO_PRINT_ALL, |
73 "LoadKernel() debug data (not in print-all)"}, | 74 "LoadKernel() debug data (not in print-all)"}, |
74 /* Terminate with null name */ | 75 /* Terminate with null name */ |
75 {NULL, 0, NULL} | 76 {NULL, 0, NULL} |
76 }; | 77 }; |
77 | 78 |
78 | 79 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 if (has_set) | 264 if (has_set) |
264 retval = SetParam(p, value); | 265 retval = SetParam(p, value); |
265 else if (has_expect) | 266 else if (has_expect) |
266 retval = CheckParam(p, value); | 267 retval = CheckParam(p, value); |
267 else | 268 else |
268 retval = PrintParam(p); | 269 retval = PrintParam(p); |
269 } | 270 } |
270 | 271 |
271 return retval; | 272 return retval; |
272 } | 273 } |
OLD | NEW |