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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 {"mainfw_type", IS_STRING, "Active main firmware type"}, | 55 {"mainfw_type", IS_STRING, "Active main firmware type"}, |
56 {"ecfw_act", IS_STRING, "Active EC firmware"}, | 56 {"ecfw_act", IS_STRING, "Active EC firmware"}, |
57 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"}, | 57 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"}, |
58 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"}, | 58 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"}, |
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, "Times to try OS firmware update (writable)"}, |
65 {"vbtest_errfunc", CAN_WRITE, "Verified boot test error function (writable)"}, | 66 {"vbtest_errfunc", CAN_WRITE, "Verified boot test error function (writable)"}, |
66 {"vbtest_errno", CAN_WRITE, "Verified boot test error number (writable)"}, | 67 {"vbtest_errno", CAN_WRITE, "Verified boot test error number (writable)"}, |
67 /* Fields not shown in a print-all list */ | 68 /* Fields not shown in a print-all list */ |
68 {"vdat_lfdebug", IS_STRING|NO_PRINT_ALL, | 69 {"vdat_lfdebug", IS_STRING|NO_PRINT_ALL, |
69 "LoadFirmware() debug data (not in print-all)"}, | 70 "LoadFirmware() debug data (not in print-all)"}, |
70 {"vdat_lkdebug", IS_STRING|NO_PRINT_ALL, | 71 {"vdat_lkdebug", IS_STRING|NO_PRINT_ALL, |
71 "LoadKernel() debug data (not in print-all)"}, | 72 "LoadKernel() debug data (not in print-all)"}, |
72 /* Terminate with null name */ | 73 /* Terminate with null name */ |
73 {NULL, 0, NULL} | 74 {NULL, 0, NULL} |
74 }; | 75 }; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 if (has_set) | 257 if (has_set) |
257 retval = SetParam(p, value); | 258 retval = SetParam(p, value); |
258 else if (has_expect) | 259 else if (has_expect) |
259 retval = CheckParam(p, value); | 260 retval = CheckParam(p, value); |
260 else | 261 else |
261 retval = PrintParam(p); | 262 retval = PrintParam(p); |
262 } | 263 } |
263 | 264 |
264 return retval; | 265 return retval; |
265 } | 266 } |
OLD | NEW |