| 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 28 matching lines...) Expand all Loading... |
| 39 {"fwid", 1, 0, "Active firmware ID"}, | 39 {"fwid", 1, 0, "Active firmware ID"}, |
| 40 {"ro_fwid", 1, 0, "Read-only firmware ID"}, | 40 {"ro_fwid", 1, 0, "Read-only firmware ID"}, |
| 41 {"mainfw_act", 1, 0, "Active main firmware"}, | 41 {"mainfw_act", 1, 0, "Active main firmware"}, |
| 42 {"mainfw_type", 1, 0, "Active main firmware type"}, | 42 {"mainfw_type", 1, 0, "Active main firmware type"}, |
| 43 {"ecfw_act", 1, 0, "Active EC firmware"}, | 43 {"ecfw_act", 1, 0, "Active EC firmware"}, |
| 44 {"kernkey_vfy", 1, 0, "Type of verification done on kernel key block"}, | 44 {"kernkey_vfy", 1, 0, "Type of verification done on kernel key block"}, |
| 45 /* Writable integers */ | 45 /* Writable integers */ |
| 46 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, | 46 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, |
| 47 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, | 47 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, |
| 48 {"fwb_tries", 0, 1, "Try firmware B count (writable)"}, | 48 {"fwb_tries", 0, 1, "Try firmware B count (writable)"}, |
| 49 {"kern_nv", 0, 1, "Non-volatile field for kernel use", "0x%08x"}, |
| 49 | 50 |
| 50 /* TODO: implement the following: | 51 /* TODO: implement the following: |
| 51 * nvram_cleared | 52 * nvram_cleared |
| 52 */ | 53 */ |
| 53 | 54 |
| 54 /* Terminate with null name */ | 55 /* Terminate with null name */ |
| 55 {NULL, 0, 0, NULL} | 56 {NULL, 0, 0, NULL} |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 | 59 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 if (i > 1) | 189 if (i > 1) |
| 189 printf(" "); /* Output params space-delimited */ | 190 printf(" "); /* Output params space-delimited */ |
| 190 if (value) | 191 if (value) |
| 191 retval = SetParam(p, value); | 192 retval = SetParam(p, value); |
| 192 else | 193 else |
| 193 retval = PrintParam(p); | 194 retval = PrintParam(p); |
| 194 } | 195 } |
| 195 | 196 |
| 196 return retval; | 197 return retval; |
| 197 } | 198 } |
| OLD | NEW |