| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 /* Sets the log level. 0 is quietest. | 29 /* Sets the log level. 0 is quietest. |
| 30 */ | 30 */ |
| 31 void TlclSetLogLevel(int level); | 31 void TlclSetLogLevel(int level); |
| 32 | 32 |
| 33 /* Sends a TPM_Startup(ST_CLEAR). The TPM error code is returned (0 | 33 /* Sends a TPM_Startup(ST_CLEAR). The TPM error code is returned (0 |
| 34 * for success). | 34 * for success). |
| 35 */ | 35 */ |
| 36 uint32_t TlclStartup(void); | 36 uint32_t TlclStartup(void); |
| 37 | 37 |
| 38 /* Save the TPM state. Normally done by the kernel before a suspend, included |
| 39 * here for tests. The TPM error code is returned (0 for success). |
| 40 */ |
| 41 uint32_t TlclSaveState(void); |
| 42 |
| 38 /* Resumes by sending a TPM_Startup(ST_STATE). The TPM error code is returned | 43 /* Resumes by sending a TPM_Startup(ST_STATE). The TPM error code is returned |
| 39 * (0 for success). | 44 * (0 for success). |
| 40 */ | 45 */ |
| 41 uint32_t TlclResume(void); | 46 uint32_t TlclResume(void); |
| 42 | 47 |
| 43 /* Runs the self test. Note---this is synchronous. To run this in parallel | 48 /* Runs the self test. Note---this is synchronous. To run this in parallel |
| 44 * with other firmware, use ContinueSelfTest. The TPM error code is returned. | 49 * with other firmware, use ContinueSelfTest. The TPM error code is returned. |
| 45 */ | 50 */ |
| 46 uint32_t TlclSelfTestFull(void); | 51 uint32_t TlclSelfTestFull(void); |
| 47 | 52 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, | 125 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, |
| 121 uint8_t* nvlocked); | 126 uint8_t* nvlocked); |
| 122 | 127 |
| 123 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error | 128 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error |
| 124 * code is returned. | 129 * code is returned. |
| 125 */ | 130 */ |
| 126 uint32_t TlclSetGlobalLock(void); | 131 uint32_t TlclSetGlobalLock(void); |
| 127 | 132 |
| 128 /* Performs a TPM_Extend. | 133 /* Performs a TPM_Extend. |
| 129 */ | 134 */ |
| 130 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); | 135 uint32_t TlclExtend(int pcr_num, const uint8_t* in_digest, uint8_t* out_digest); |
| 131 | 136 |
| 132 /* Gets the permission bits for the NVRAM space with |index|. | 137 /* Gets the permission bits for the NVRAM space with |index|. |
| 133 */ | 138 */ |
| 134 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); | 139 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); |
| 135 | 140 |
| 136 /* Gets the entire set of permanent flags. | 141 /* Gets the entire set of permanent flags. |
| 137 */ | 142 */ |
| 138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); | 143 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
| 139 | 144 |
| 140 /* Gets the entire set of volatile (ST_CLEAR) flags. | 145 /* Gets the entire set of volatile (ST_CLEAR) flags. |
| 141 */ | 146 */ |
| 142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); | 147 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
| 143 | 148 |
| 144 #endif /* TPM_LITE_TLCL_H_ */ | 149 #endif /* TPM_LITE_TLCL_H_ */ |
| OLD | NEW |