Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: utility/crossystem_main.c

Issue 6557001: Add more properties to crossystem (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « host/lib/crossystem.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 /* List of parameters, terminated with a param with NULL name */ 21 /* List of parameters, terminated with a param with NULL name */
22 const Param sys_param_list[] = { 22 const Param sys_param_list[] = {
23 /* Read-only integers */ 23 /* Read-only integers */
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"},
32 {"savedmem_base", 0, 0, "RAM debug data area physical address"},
33 {"savedmem_size", 0, 0, "RAM debug data area size in bytes"},
31 /* Read-only strings */ 34 /* Read-only strings */
32 {"hwid", 1, 0, "Hardware ID"}, 35 {"hwid", 1, 0, "Hardware ID"},
33 {"fwid", 1, 0, "Active firmware ID"}, 36 {"fwid", 1, 0, "Active firmware ID"},
34 {"ro_fwid", 1, 0, "Read-only firmware ID"}, 37 {"ro_fwid", 1, 0, "Read-only firmware ID"},
38 {"mainfw_act", 1, 0, "Active main firmware"},
39 {"mainfw_type", 1, 0, "Active main firmware type"},
40 {"ecfw_act", 1, 0, "Active EC firmware"},
35 /* Writable integers */ 41 /* Writable integers */
36 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, 42 {"recovery_request", 0, 1, "Recovery mode request (writable)"},
37 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, 43 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"},
38 {"fwb_tries", 0, 1, "Try firmware B count (writable)"}, 44 {"fwb_tries", 0, 1, "Try firmware B count (writable)"},
39 45
46 /* TODO: implement the following:
47 * nvram_cleared
48 */
49
40 /* Terminate with null name */ 50 /* Terminate with null name */
41 {NULL, 0, 0, NULL} 51 {NULL, 0, 0, NULL}
42 }; 52 };
43 53
44 54
45 /* Print help */ 55 /* Print help */
46 void PrintHelp(const char *progname) { 56 void PrintHelp(const char *progname) {
47 const Param *p; 57 const Param *p;
48 58
49 printf("\nUsage:\n" 59 printf("\nUsage:\n"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 if (i > 1) 184 if (i > 1)
175 printf(" "); /* Output params space-delimited */ 185 printf(" "); /* Output params space-delimited */
176 if (value) 186 if (value)
177 retval = SetParam(p, value); 187 retval = SetParam(p, value);
178 else 188 else
179 retval = PrintParam(p); 189 retval = PrintParam(p);
180 } 190 }
181 191
182 return retval; 192 return retval;
183 } 193 }
OLDNEW
« no previous file with comments | « host/lib/crossystem.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698