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. | 91 /* Enables the physical presence command. The TPM error code is returned. |
92 */ | 92 */ |
93 uint32_t TlclPhysicalPresenceCMDEnable(void); | 93 uint32_t TlclPhysicalPresenceCMDEnable(void); |
94 | 94 |
| 95 /* Finalizes the physical presence settings: sofware PP is enabled, hardware PP |
| 96 * is disabled, and the lifetime lock is set. The TPM error code is returned. |
| 97 */ |
| 98 uint32_t TlclFinalizePhysicalPresence(void); |
| 99 |
95 /* Turns off physical presence and locks it off until next reboot. The TPM | 100 /* Turns off physical presence and locks it off until next reboot. The TPM |
96 * error code is returned. | 101 * error code is returned. |
97 */ | 102 */ |
98 uint32_t TlclLockPhysicalPresence(void); | 103 uint32_t TlclLockPhysicalPresence(void); |
99 | 104 |
100 /* Sets the nvLocked bit. The TPM error code is returned. | 105 /* Sets the nvLocked bit. The TPM error code is returned. |
101 */ | 106 */ |
102 uint32_t TlclSetNvLocked(void); | 107 uint32_t TlclSetNvLocked(void); |
103 | 108 |
104 /* Returns 1 if the TPM is owned, 0 otherwise. | 109 /* Returns 1 if the TPM is owned, 0 otherwise. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 146 |
142 /* Gets the entire set of permanent flags. | 147 /* Gets the entire set of permanent flags. |
143 */ | 148 */ |
144 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); | 149 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
145 | 150 |
146 /* Gets the entire set of volatile (ST_CLEAR) flags. | 151 /* Gets the entire set of volatile (ST_CLEAR) flags. |
147 */ | 152 */ |
148 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); | 153 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
149 | 154 |
150 #endif /* TPM_LITE_TLCL_H_ */ | 155 #endif /* TPM_LITE_TLCL_H_ */ |
OLD | NEW |