diff options
author | Luigi Semenzato <semenzato@google.com> | 2010-07-08 12:12:12 -0700 |
---|---|---|
committer | Luigi Semenzato <semenzato@google.com> | 2010-07-08 12:12:12 -0700 |
commit | 416f681882d8a35fa4c7ad9245a9e544c3115670 (patch) | |
tree | a3bb46ed6083082cc374645854f3ba7b974562f2 /firmware/include | |
parent | 783e64e70e5e5fff6d374b6aaf1d0ccd68cb2404 (diff) | |
download | vboot-416f681882d8a35fa4c7ad9245a9e544c3115670.tar.gz |
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
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/tlcl.h | 13 |
1 files changed, 12 insertions, 1 deletions
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); |