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

Unified Diff: utility/tpmc.c

Issue 3163045: Add a command to enable the physical presence command. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: extra upload for version.c Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utility/tlcl_generator.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/tpmc.c
diff --git a/utility/tpmc.c b/utility/tpmc.c
index 0213b4b486ac5c59cc30088407b9c5abbc0a5a30..2c23aa68a49393e3fafec66604b4f1f2c989ff56 100644
--- a/utility/tpmc.c
+++ b/utility/tpmc.c
@@ -257,6 +257,8 @@ command_record command_table[] = {
TlclContinueSelfTest },
{ "assertphysicalpresence", "ppon", "assert Physical Presence",
TlclAssertPhysicalPresence },
+ { "physicalpresencecmdenable", "ppcmd", "turn on software PP",
+ TlclPhysicalPresenceCMDEnable },
{ "enable", "ena", "enable the TPM (needs PP)", TlclSetEnable },
{ "disable", "dis", "disable the TPM (needs PP)", TlclClearEnable },
{ "activate", "act", "activate the TPM (needs PP, maybe reboot)",
@@ -298,9 +300,9 @@ int main(int argc, char* argv[]) {
args = argv;
if (strcmp(cmd, "help") == 0) {
- printf("%23s %7s %s\n\n", "command", "abbr.", "description");
+ printf("%26s %7s %s\n\n", "command", "abbr.", "description");
for (c = command_table; c < command_table + n_commands; c++) {
- printf("%23s %7s %s\n", c->name, c->abbr, c->description);
+ printf("%26s %7s %s\n", c->name, c->abbr, c->description);
}
return 0;
}
« no previous file with comments | « utility/tlcl_generator.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698