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

Side by Side Diff: utility/crossystem_main.c

Issue 6596081: Add crossystem support for nvram_cleared and kern_nv (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Fix try B count mask Created 9 years, 9 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 25 matching lines...) Expand all
36 {"tried_fwb", 0, 0, "Tried firmware B before A this boot"}, 36 {"tried_fwb", 0, 0, "Tried firmware B before A this boot"},
37 /* Read-only strings */ 37 /* Read-only strings */
38 {"hwid", 1, 0, "Hardware ID"}, 38 {"hwid", 1, 0, "Hardware ID"},
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 {"nvram_cleared", 0, 1, "Have NV settings been lost? Write 0 to clear"},
47 {"kern_nv", 0, 1, "Non-volatile field for kernel use", "0x%08x"},
46 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, 48 {"recovery_request", 0, 1, "Recovery mode request (writable)"},
47 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, 49 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"},
48 {"fwb_tries", 0, 1, "Try firmware B count (writable)"}, 50 {"fwb_tries", 0, 1, "Try firmware B count (writable)"},
49 {"kern_nv", 0, 1, "Non-volatile field for kernel use", "0x%08x"},
50 51
51 /* TODO: implement the following: 52 /* TODO: implement the following:
52 * nvram_cleared 53 * nvram_cleared
53 */ 54 */
54 55
55 /* Terminate with null name */ 56 /* Terminate with null name */
56 {NULL, 0, 0, NULL} 57 {NULL, 0, 0, NULL}
57 }; 58 };
58 59
59 60
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (i > 1) 190 if (i > 1)
190 printf(" "); /* Output params space-delimited */ 191 printf(" "); /* Output params space-delimited */
191 if (value) 192 if (value)
192 retval = SetParam(p, value); 193 retval = SetParam(p, value);
193 else 194 else
194 retval = PrintParam(p); 195 retval = PrintParam(p);
195 } 196 }
196 197
197 return retval; 198 return retval;
198 } 199 }
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