| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* TPM Lightweight Command Library. | 6 /* TPM Lightweight Command Library. |
| 7 * | 7 * |
| 8 * A low-level library for interfacing to TPM hardware or an emulator. | 8 * A low-level library for interfacing to TPM hardware or an emulator. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void TlclWriteLock(uint32_t index); | 59 void TlclWriteLock(uint32_t index); |
| 60 | 60 |
| 61 /* Read-locks space at [index]. | 61 /* Read-locks space at [index]. |
| 62 */ | 62 */ |
| 63 void TlclReadLock(uint32_t index); | 63 void TlclReadLock(uint32_t index); |
| 64 | 64 |
| 65 /* Asserts physical presence in software. | 65 /* Asserts physical presence in software. |
| 66 */ | 66 */ |
| 67 void TlclAssertPhysicalPresence(void); | 67 void TlclAssertPhysicalPresence(void); |
| 68 | 68 |
| 69 /* Turns off physical presence and locks it off until next reboot. |
| 70 */ |
| 71 uint32_t TlclLockPhysicalPresence(void); |
| 72 |
| 69 /* Sets the nvLocked bit. | 73 /* Sets the nvLocked bit. |
| 70 */ | 74 */ |
| 71 void TlclSetNvLocked(void); | 75 void TlclSetNvLocked(void); |
| 72 | 76 |
| 73 /* Returns 1 if the TPM is owned, 0 otherwise. | 77 /* Returns 1 if the TPM is owned, 0 otherwise. |
| 74 */ | 78 */ |
| 75 int TlclIsOwned(void); | 79 int TlclIsOwned(void); |
| 76 | 80 |
| 77 /* Issues a ForceClear. | 81 /* Issues a ForceClear. |
| 78 */ | 82 */ |
| 79 void TlclForceClear(void); | 83 void TlclForceClear(void); |
| 80 | 84 |
| 81 /* Issues a PhysicalEnable. | 85 /* Issues a SetEnable. |
| 82 */ | 86 */ |
| 83 void TlclPhysicalEnable(void); | 87 void TlclSetEnable(void); |
| 84 | 88 |
| 85 /* Issues a PhysicalSetDeactivated. Pass 0 to activate. Returns result code. | 89 /* Issues a SetDeactivated. Pass 0 to activate. Returns result code. |
| 86 */ | 90 */ |
| 87 int TlclPhysicalSetDeactivated(uint8_t flag); | 91 int TlclSetDeactivated(uint8_t flag); |
| 88 | 92 |
| 89 /* Gets some permanent flags of interest. (Add more here as needed.) | 93 /* Gets some permanent flags of interest. (Add more here as needed.) |
| 90 */ | 94 */ |
| 91 int TlclGetFlags(uint8_t* disable, uint8_t* deactivated); | 95 int TlclGetFlags(uint8_t* disable, uint8_t* deactivated); |
| 92 | 96 |
| 97 /* Sets the bGlobalLock flag, which only a reboot can clear. |
| 98 */ |
| 99 uint32_t TlclSetGlobalLock(void); |
| 100 |
| 93 #endif /* TPM_LITE_TLCL_H_ */ | 101 #endif /* TPM_LITE_TLCL_H_ */ |
| OLD | NEW |