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

Side by Side Diff: utility/crossystem_main.c

Issue 6685075: Add TPM version checking (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: 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 23 matching lines...) Expand all
34 {"recoverysw_ec_boot", 0, "Recovery switch position at EC boot"}, 34 {"recoverysw_ec_boot", 0, "Recovery switch position at EC boot"},
35 {"wpsw_cur", 0, "Firmware write protect hardware switch current position"}, 35 {"wpsw_cur", 0, "Firmware write protect hardware switch current position"},
36 {"wpsw_boot", 0, "Firmware write protect hardware switch position at boot"}, 36 {"wpsw_boot", 0, "Firmware write protect hardware switch position at boot"},
37 {"recovery_reason", 0, "Recovery mode reason for current boot"}, 37 {"recovery_reason", 0, "Recovery mode reason for current boot"},
38 {"savedmem_base", 0, "RAM debug data area physical address", "0x%08x"}, 38 {"savedmem_base", 0, "RAM debug data area physical address", "0x%08x"},
39 {"savedmem_size", 0, "RAM debug data area size in bytes"}, 39 {"savedmem_size", 0, "RAM debug data area size in bytes"},
40 {"fmap_base", 0, "Main firmware flashmap physical address", "0x%08x"}, 40 {"fmap_base", 0, "Main firmware flashmap physical address", "0x%08x"},
41 {"tried_fwb", 0, "Tried firmware B before A this boot"}, 41 {"tried_fwb", 0, "Tried firmware B before A this boot"},
42 {"cros_debug", 0, "OS should allow debug features"}, 42 {"cros_debug", 0, "OS should allow debug features"},
43 {"vdat_flags", 0, "Flags from VbSharedData", "0x%08x"}, 43 {"vdat_flags", 0, "Flags from VbSharedData", "0x%08x"},
44 {"tpm_fwver", 0, "Firmware version stored in TPM", "0x%08x"},
45 {"tpm_kernver", 0, "Kernel version stored in TPM", "0x%08x"},
44 /* Read-only strings */ 46 /* Read-only strings */
45 {"hwid", IS_STRING, "Hardware ID"}, 47 {"hwid", IS_STRING, "Hardware ID"},
46 {"fwid", IS_STRING, "Active firmware ID"}, 48 {"fwid", IS_STRING, "Active firmware ID"},
47 {"ro_fwid", IS_STRING, "Read-only firmware ID"}, 49 {"ro_fwid", IS_STRING, "Read-only firmware ID"},
48 {"mainfw_act", IS_STRING, "Active main firmware"}, 50 {"mainfw_act", IS_STRING, "Active main firmware"},
49 {"mainfw_type", IS_STRING, "Active main firmware type"}, 51 {"mainfw_type", IS_STRING, "Active main firmware type"},
50 {"ecfw_act", IS_STRING, "Active EC firmware"}, 52 {"ecfw_act", IS_STRING, "Active EC firmware"},
51 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"}, 53 {"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"},
52 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"}, 54 {"vdat_timers", IS_STRING, "Timer values from VbSharedData"},
53 {"vdat_lfdebug", IS_STRING, "LoadFirmware() debug data VbSharedData"}, 55 {"vdat_lfdebug", IS_STRING, "LoadFirmware() debug data VbSharedData"},
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 if (has_set) 235 if (has_set)
234 retval = SetParam(p, value); 236 retval = SetParam(p, value);
235 else if (has_expect) 237 else if (has_expect)
236 retval = CheckParam(p, value); 238 retval = CheckParam(p, value);
237 else 239 else
238 retval = PrintParam(p); 240 retval = PrintParam(p);
239 } 241 }
240 242
241 return retval; 243 return retval;
242 } 244 }
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