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

Side by Side Diff: utility/crossystem_main.c

Issue 6813054: Add crossystem arch (reports x86 or arm, depending on platform) (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 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/arch/x86/lib/crossystem_arch.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 29 matching lines...) Expand all
40 {"recovery_reason", 0, "Recovery mode reason for current boot"}, 40 {"recovery_reason", 0, "Recovery mode reason for current boot"},
41 {"savedmem_base", 0, "RAM debug data area physical address", "0x%08x"}, 41 {"savedmem_base", 0, "RAM debug data area physical address", "0x%08x"},
42 {"savedmem_size", 0, "RAM debug data area size in bytes"}, 42 {"savedmem_size", 0, "RAM debug data area size in bytes"},
43 {"fmap_base", 0, "Main firmware flashmap physical address", "0x%08x"}, 43 {"fmap_base", 0, "Main firmware flashmap physical address", "0x%08x"},
44 {"tried_fwb", 0, "Tried firmware B before A this boot"}, 44 {"tried_fwb", 0, "Tried firmware B before A this boot"},
45 {"cros_debug", 0, "OS should allow debug features"}, 45 {"cros_debug", 0, "OS should allow debug features"},
46 {"vdat_flags", 0, "Flags from VbSharedData", "0x%08x"}, 46 {"vdat_flags", 0, "Flags from VbSharedData", "0x%08x"},
47 {"tpm_fwver", 0, "Firmware version stored in TPM", "0x%08x"}, 47 {"tpm_fwver", 0, "Firmware version stored in TPM", "0x%08x"},
48 {"tpm_kernver", 0, "Kernel version stored in TPM", "0x%08x"}, 48 {"tpm_kernver", 0, "Kernel version stored in TPM", "0x%08x"},
49 /* Read-only strings */ 49 /* Read-only strings */
50 {"arch", IS_STRING, "Platform architecture"},
50 {"hwid", IS_STRING, "Hardware ID"}, 51 {"hwid", IS_STRING, "Hardware ID"},
51 {"fwid", IS_STRING, "Active firmware ID"}, 52 {"fwid", IS_STRING, "Active firmware ID"},
52 {"ro_fwid", IS_STRING, "Read-only firmware ID"}, 53 {"ro_fwid", IS_STRING, "Read-only firmware ID"},
53 {"mainfw_act", IS_STRING, "Active main firmware"}, 54 {"mainfw_act", IS_STRING, "Active main firmware"},
54 {"mainfw_type", IS_STRING, "Active main firmware type"}, 55 {"mainfw_type", IS_STRING, "Active main firmware type"},
55 {"ecfw_act", IS_STRING, "Active EC firmware"}, 56 {"ecfw_act", IS_STRING, "Active EC firmware"},
56 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"}, 57 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"},
57 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"}, 58 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"},
58 /* Writable integers */ 59 /* Writable integers */
59 {"nvram_cleared", CAN_WRITE, "Have NV settings been lost? Write 0 to clear"}, 60 {"nvram_cleared", CAN_WRITE, "Have NV settings been lost? Write 0 to clear"},
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 if (has_set) 256 if (has_set)
256 retval = SetParam(p, value); 257 retval = SetParam(p, value);
257 else if (has_expect) 258 else if (has_expect)
258 retval = CheckParam(p, value); 259 retval = CheckParam(p, value);
259 else 260 else
260 retval = PrintParam(p); 261 retval = PrintParam(p);
261 } 262 }
262 263
263 return retval; 264 return retval;
264 } 265 }
OLDNEW
« no previous file with comments | « host/arch/x86/lib/crossystem_arch.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698