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

Unified Diff: utility/tlcl_generator.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 | « firmware/version.c ('k') | utility/tpmc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/tlcl_generator.c
diff --git a/utility/tlcl_generator.c b/utility/tlcl_generator.c
index 0b8258b4ad663649082a77bb270004536921b58e..cf2e48528d8294c0fb75e58ae83cd7c2340e3139 100644
--- a/utility/tlcl_generator.c
+++ b/utility/tlcl_generator.c
@@ -180,6 +180,16 @@ Command* BuildPPAssertCommand(void) {
return cmd;
}
+Command* BuildPPEnableCommand(void) {
+ int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE);
+ Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size);
+ cmd->name = "tpm_ppenable_cmd";
+ AddInitializedField(cmd, kTpmRequestHeaderLength,
+ sizeof(TPM_PHYSICAL_PRESENCE),
+ TPM_PHYSICAL_PRESENCE_CMD_ENABLE);
+ return cmd;
+}
+
Command* BuildPPLockCommand(void) {
int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE);
Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size);
@@ -416,6 +426,7 @@ Command* (*builders[])(void) = {
BuildWriteCommand,
BuildReadCommand,
BuildPPAssertCommand,
+ BuildPPEnableCommand,
BuildPPLockCommand,
BuildStartupCommand,
BuildSelftestfullCommand,
« no previous file with comments | « firmware/version.c ('k') | utility/tpmc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698