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

Side by Side Diff: utility/crossystem_main.c

Issue 6597011: Add NV storage fields for firmware flags (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Renamed tried_fwb 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 | « tests/vboot_nvstorage_test.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 15 matching lines...) Expand all
26 {"devsw_boot", 0, 0, "Developer switch position at boot"}, 26 {"devsw_boot", 0, 0, "Developer switch position at boot"},
27 {"recoverysw_cur", 0, 0, "Recovery switch current position"}, 27 {"recoverysw_cur", 0, 0, "Recovery switch current position"},
28 {"recoverysw_boot", 0, 0, "Recovery switch position at boot"}, 28 {"recoverysw_boot", 0, 0, "Recovery switch position at boot"},
29 {"recoverysw_ec_boot", 0, 0, "Recovery switch position at EC boot"}, 29 {"recoverysw_ec_boot", 0, 0, "Recovery switch position at EC boot"},
30 {"wpsw_cur", 0, 0, "Firmware write protect switch current position"}, 30 {"wpsw_cur", 0, 0, "Firmware write protect switch current position"},
31 {"wpsw_boot", 0, 0, "Firmware write protect switch position at boot"}, 31 {"wpsw_boot", 0, 0, "Firmware write protect switch position at boot"},
32 {"recovery_reason", 0, 0, "Recovery mode reason for current boot"}, 32 {"recovery_reason", 0, 0, "Recovery mode reason for current boot"},
33 {"savedmem_base", 0, 0, "RAM debug data area physical address", "0x%08x"}, 33 {"savedmem_base", 0, 0, "RAM debug data area physical address", "0x%08x"},
34 {"savedmem_size", 0, 0, "RAM debug data area size in bytes"}, 34 {"savedmem_size", 0, 0, "RAM debug data area size in bytes"},
35 {"fmap_base", 0, 0, "Main firmware flashmap physical address", "0x%08x"}, 35 {"fmap_base", 0, 0, "Main firmware flashmap physical address", "0x%08x"},
36 {"tried_fwb", 0, 0, "Tried firmware B before A this boot"},
36 /* Read-only strings */ 37 /* Read-only strings */
37 {"hwid", 1, 0, "Hardware ID"}, 38 {"hwid", 1, 0, "Hardware ID"},
38 {"fwid", 1, 0, "Active firmware ID"}, 39 {"fwid", 1, 0, "Active firmware ID"},
39 {"ro_fwid", 1, 0, "Read-only firmware ID"}, 40 {"ro_fwid", 1, 0, "Read-only firmware ID"},
40 {"mainfw_act", 1, 0, "Active main firmware"}, 41 {"mainfw_act", 1, 0, "Active main firmware"},
41 {"mainfw_type", 1, 0, "Active main firmware type"}, 42 {"mainfw_type", 1, 0, "Active main firmware type"},
42 {"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"},
43 /* Writable integers */ 45 /* Writable integers */
44 {"recovery_request", 0, 1, "Recovery mode request (writable)"}, 46 {"recovery_request", 0, 1, "Recovery mode request (writable)"},
45 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"}, 47 {"dbg_reset", 0, 1, "Debug reset mode request (writable)"},
46 {"fwb_tries", 0, 1, "Try firmware B count (writable)"}, 48 {"fwb_tries", 0, 1, "Try firmware B count (writable)"},
47 49
48 /* TODO: implement the following: 50 /* TODO: implement the following:
49 * nvram_cleared 51 * nvram_cleared
50 */ 52 */
51 53
52 /* Terminate with null name */ 54 /* Terminate with null name */
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (i > 1) 188 if (i > 1)
187 printf(" "); /* Output params space-delimited */ 189 printf(" "); /* Output params space-delimited */
188 if (value) 190 if (value)
189 retval = SetParam(p, value); 191 retval = SetParam(p, value);
190 else 192 else
191 retval = PrintParam(p); 193 retval = PrintParam(p);
192 } 194 }
193 195
194 return retval; 196 return retval;
195 } 197 }
OLDNEW
« no previous file with comments | « tests/vboot_nvstorage_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698