From 416f681882d8a35fa4c7ad9245a9e544c3115670 Mon Sep 17 00:00:00 2001 From: Luigi Semenzato Date: Thu, 8 Jul 2010 12:12:12 -0700 Subject: This test sets the TPM to a each of a large amount of "interesting" initial states, and runs the firmware code at user level. This code compiles and installs using a modified ebuild (which needs to be committed after this change). Review URL: http://codereview.chromium.org/2857030 --- firmware/include/tlcl.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'firmware/include') diff --git a/firmware/include/tlcl.h b/firmware/include/tlcl.h index 82947f63..5bdbaa38 100644 --- a/firmware/include/tlcl.h +++ b/firmware/include/tlcl.h @@ -30,6 +30,13 @@ */ void TlclLibInit(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. + */ +void TlclCloseDevice(void); +void TlclOpenDevice(void); + /* Sends a TPM_Startup(ST_CLEAR). Note that this is a no-op for the emulator, * because it runs this command during initialization. The TPM error code is * returned (0 for success). @@ -89,10 +96,14 @@ int TlclIsOwned(void); */ uint32_t TlclForceClear(void); -/* Issues a SetEnable. The TPM error code is returned. +/* Issues a PhysicalEnable. The TPM error code is returned. */ uint32_t TlclSetEnable(void); +/* Issues a PhysicalDisable. The TPM error code is returned. + */ +uint32_t TlclClearEnable(void); + /* Issues a SetDeactivated. Pass 0 to activate. Returns result code. */ uint32_t TlclSetDeactivated(uint8_t flag); -- cgit v1.2.1