| 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 13 matching lines...) Expand all Loading... |
| 24 {"devsw_cur", 0, 0, "Developer switch current position"}, | 24 {"devsw_cur", 0, 0, "Developer switch current position"}, |
| 25 {"devsw_boot", 0, 0, "Developer switch position at boot"}, | 25 {"devsw_boot", 0, 0, "Developer switch position at boot"}, |
| 26 {"recoverysw_cur", 0, 0, "Recovery switch current position"}, | 26 {"recoverysw_cur", 0, 0, "Recovery switch current position"}, |
| 27 {"recoverysw_boot", 0, 0, "Recovery switch position at boot"}, | 27 {"recoverysw_boot", 0, 0, "Recovery switch position at boot"}, |
| 28 {"recoverysw_ec_boot", 0, 0, "Recovery switch position at EC boot"}, | 28 {"recoverysw_ec_boot", 0, 0, "Recovery switch position at EC boot"}, |
| 29 {"wpsw_cur", 0, 0, "Firmware write protect switch current position"}, | 29 {"wpsw_cur", 0, 0, "Firmware write protect switch current position"}, |
| 30 {"wpsw_boot", 0, 0, "Firmware write protect switch position at boot"}, | 30 {"wpsw_boot", 0, 0, "Firmware write protect switch position at boot"}, |
| 31 {"recovery_reason", 0, 0, "Recovery mode reason for current boot"}, | 31 {"recovery_reason", 0, 0, "Recovery mode reason for current boot"}, |
| 32 {"savedmem_base", 0, 0, "RAM debug data area physical address"}, | 32 {"savedmem_base", 0, 0, "RAM debug data area physical address"}, |
| 33 {"savedmem_size", 0, 0, "RAM debug data area size in bytes"}, | 33 {"savedmem_size", 0, 0, "RAM debug data area size in bytes"}, |
| 34 {"fmap_base", 0, 0, "Main firmware flashmap physical address"}, |
| 34 /* Read-only strings */ | 35 /* Read-only strings */ |
| 35 {"hwid", 1, 0, "Hardware ID"}, | 36 {"hwid", 1, 0, "Hardware ID"}, |
| 36 {"fwid", 1, 0, "Active firmware ID"}, | 37 {"fwid", 1, 0, "Active firmware ID"}, |
| 37 {"ro_fwid", 1, 0, "Read-only firmware ID"}, | 38 {"ro_fwid", 1, 0, "Read-only firmware ID"}, |
| 38 {"mainfw_act", 1, 0, "Active main firmware"}, | 39 {"mainfw_act", 1, 0, "Active main firmware"}, |
| 39 {"mainfw_type", 1, 0, "Active main firmware type"}, | 40 {"mainfw_type", 1, 0, "Active main firmware type"}, |
| 40 {"ecfw_act", 1, 0, "Active EC firmware"}, | 41 {"ecfw_act", 1, 0, "Active EC firmware"}, |
| 41 /* Writable integers */ | 42 /* Writable integers */ |
| 42 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, | 43 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, |
| 43 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, | 44 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 if (i > 1) | 185 if (i > 1) |
| 185 printf(" "); /* Output params space-delimited */ | 186 printf(" "); /* Output params space-delimited */ |
| 186 if (value) | 187 if (value) |
| 187 retval = SetParam(p, value); | 188 retval = SetParam(p, value); |
| 188 else | 189 else |
| 189 retval = PrintParam(p); | 190 retval = PrintParam(p); |
| 190 } | 191 } |
| 191 | 192 |
| 192 return retval; | 193 return retval; |
| 193 } | 194 } |
| OLD | NEW |