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

Unified Diff: firmware/lib/tpm_lite/include/tlcl.h

Issue 3078028: Pay attention to TPM communication errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Fix whitespace 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 | « no previous file | firmware/lib/tpm_lite/include/tss_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/tpm_lite/include/tlcl.h
diff --git a/firmware/lib/tpm_lite/include/tlcl.h b/firmware/lib/tpm_lite/include/tlcl.h
index 6875619e6df472ed0b5f0fbd90d8dd8b342582a1..2812a5b1b8b42edc34544b350c0ac78072452c96 100644
--- a/firmware/lib/tpm_lite/include/tlcl.h
+++ b/firmware/lib/tpm_lite/include/tlcl.h
@@ -26,8 +26,10 @@ void TlclStubInit(void);
void TlclCloseDevice(void);
void TlclOpenDevice(void);
-void TlclStubSendReceive(uint8_t* request, int request_length,
- uint8_t* response, int max_length);
+/* Send data to the TPM and receive a response. Returns 0 if success,
+ * nonzero if error. */
+uint32_t TlclStubSendReceive(uint8_t* request, int request_length,
+ uint8_t* response, int max_length);
/*****************************************************************************/
/* Functions implemented in tlcl.c */
@@ -36,7 +38,6 @@ void TlclStubSendReceive(uint8_t* request, int request_length,
*/
void TlclLibInit(void);
-
/* Logs to stdout. Arguments like printf.
*/
void TlclLog(char* format, ...);
@@ -116,7 +117,7 @@ uint32_t TlclClearEnable(void);
uint32_t TlclSetDeactivated(uint8_t flag);
/* Gets flags of interest. Pointers for flags you aren't interested in may
- * be NULL. The TPM error code is returned.
+ * be NULL. The TPM error code is returned.
*/
uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, uint8_t* nvlocked);
« no previous file with comments | « no previous file | firmware/lib/tpm_lite/include/tss_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698