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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 uint32_t TlclWriteLock(uint32_t index); | 81 uint32_t TlclWriteLock(uint32_t index); |
82 | 82 |
83 /* Read-locks space at [index]. The TPM error code is returned. | 83 /* Read-locks space at [index]. The TPM error code is returned. |
84 */ | 84 */ |
85 uint32_t TlclReadLock(uint32_t index); | 85 uint32_t TlclReadLock(uint32_t index); |
86 | 86 |
87 /* Asserts physical presence in software. The TPM error code is returned. | 87 /* Asserts physical presence in software. The TPM error code is returned. |
88 */ | 88 */ |
89 uint32_t TlclAssertPhysicalPresence(void); | 89 uint32_t TlclAssertPhysicalPresence(void); |
90 | 90 |
| 91 /* Enable the physical presence command. The TPM error code is returned. |
| 92 */ |
| 93 uint32_t TlclPhysicalPresenceCMDEnable(void); |
| 94 |
91 /* Turns off physical presence and locks it off until next reboot. The TPM | 95 /* Turns off physical presence and locks it off until next reboot. The TPM |
92 * error code is returned. | 96 * error code is returned. |
93 */ | 97 */ |
94 uint32_t TlclLockPhysicalPresence(void); | 98 uint32_t TlclLockPhysicalPresence(void); |
95 | 99 |
96 /* Sets the nvLocked bit. The TPM error code is returned. | 100 /* Sets the nvLocked bit. The TPM error code is returned. |
97 */ | 101 */ |
98 uint32_t TlclSetNvLocked(void); | 102 uint32_t TlclSetNvLocked(void); |
99 | 103 |
100 /* Returns 1 if the TPM is owned, 0 otherwise. | 104 /* Returns 1 if the TPM is owned, 0 otherwise. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 141 |
138 /* Gets the entire set of permanent flags. | 142 /* Gets the entire set of permanent flags. |
139 */ | 143 */ |
140 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); | 144 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
141 | 145 |
142 /* Gets the entire set of volatile (ST_CLEAR) flags. | 146 /* Gets the entire set of volatile (ST_CLEAR) flags. |
143 */ | 147 */ |
144 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); | 148 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
145 | 149 |
146 #endif /* TPM_LITE_TLCL_H_ */ | 150 #endif /* TPM_LITE_TLCL_H_ */ |
OLD | NEW |