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

Unified Diff: src/platform/tpm_lite/src/include/tlcl.h

Issue 1558015: 1. Changes and additions for autotest; 2. Two-level write-free locking test. (Closed)
Patch Set: gauravsh@chromium.org Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/tpm_lite/src/testsuite/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/tpm_lite/src/include/tlcl.h
diff --git a/src/platform/tpm_lite/src/include/tlcl.h b/src/platform/tpm_lite/src/include/tlcl.h
index e0b56262d4c17081bdd4651d6488e2912b7d781c..632d846241bd576d9e98251cb8e507b245a5d159 100644
--- a/src/platform/tpm_lite/src/include/tlcl.h
+++ b/src/platform/tpm_lite/src/include/tlcl.h
@@ -53,7 +53,15 @@ static void warning(const char *format, ...) {
/* Call this first.
*/
-void TlclLibinit(void);
+void TlclLibInit(void);
+
+/* Logs to stdout. Arguments like printf.
+ */
+void TlclLog(char* format, ...);
+
+/* Sets the log level. 0 is quietest.
+ */
+void TlclSetLogLevel(int level);
/* Sends a TPM_Startup(ST_CLEAR). Note that this is a no-op for the emulator,
* because it runs this command during initialization.
@@ -92,6 +100,10 @@ void TlclReadLock(uint32_t index);
*/
void TlclAssertPhysicalPresence(void);
+/* Turns off physical presence and locks it off until next reboot.
+ */
+void TlclLockPhysicalPresence(void);
+
/* Sets the nvLocked bit.
*/
void TlclSetNvLocked(void);
@@ -104,16 +116,21 @@ int TlclIsOwned(void);
*/
void TlclForceClear(void);
-/* Issues a PhysicalEnable.
+/* Issues a SetEnable.
*/
-void TlclPhysicalEnable(void);
+void TlclSetEnable(void);
-/* Issues a PhysicalSetDeactivated. Pass 0 to activate. Returns result code.
+/* Issues a SetDeactivated. Pass 0 to activate. Returns result code.
*/
-int TlclPhysicalSetDeactivated(uint8_t flag);
+int TlclSetDeactivated(uint8_t flag);
-/* Gets some permanent flags of interest. (Add more here as needed.)
+/* Gets flags of interest. (Add more here as needed.)
*/
int TlclGetFlags(uint8_t* disable, uint8_t* deactivated);
+/* Sets the bGlobalLock flag, which only a reboot can clear.
+ */
+void TlclSetGlobalLock(void);
+
+
#endif /* TPM_LITE_TLCL_H_ */
« no previous file with comments | « no previous file | src/platform/tpm_lite/src/testsuite/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698