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

Unified Diff: firmware/include/tlcl_stub.h

Issue 5796005: vboot TPM stub functions return error codes (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years 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/include/tss_constants.h » ('j') | firmware/stub/tpm_lite_stub.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/include/tlcl_stub.h
diff --git a/firmware/include/tlcl_stub.h b/firmware/include/tlcl_stub.h
index 72582af0564adfcfda047b5de17f7b6f24a1f5d6..b9a1f9abdb2d72467b72eec31dfaa226896100bc 100644
--- a/firmware/include/tlcl_stub.h
+++ b/firmware/include/tlcl_stub.h
@@ -17,15 +17,15 @@
/*****************************************************************************/
/* Functions to be implemented by the stub library */
-/* Initialize the stub library */
-void TlclStubInit(void);
+/* Initialize the stub library. Returns 0 if success, nonzero if error. */
+uint32_t TlclStubInit(void);
/* Close and open the device. This is needed for running more complex commands
* at user level, such as TPM_TakeOwnership, since the TPM device can be opened
- * only by one process at a time.
+ * only by one process at a time. Returns 0 if success, nonzero if error.
*/
-void TlclCloseDevice(void);
-void TlclOpenDevice(void);
+uint32_t TlclCloseDevice(void);
+uint32_t TlclOpenDevice(void);
/* Send data to the TPM and receive a response. Returns 0 if success,
* nonzero if error. */
« no previous file with comments | « no previous file | firmware/include/tss_constants.h » ('j') | firmware/stub/tpm_lite_stub.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698