Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: src/tlcl/tlcl.h

Issue 2854029: Add PhysicalDisable command. (Closed) Base URL: ssh://git@chromiumos-git/tpm_lite.git
Patch Set: . Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/tlcl/structures.h ('k') | src/tlcl/tlcl.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 uint32_t TlclSetNvLocked(void); 120 uint32_t TlclSetNvLocked(void);
121 121
122 /* Returns 1 if the TPM is owned, 0 otherwise. 122 /* Returns 1 if the TPM is owned, 0 otherwise.
123 */ 123 */
124 int TlclIsOwned(void); 124 int TlclIsOwned(void);
125 125
126 /* Issues a ForceClear. The TPM error code is returned. 126 /* Issues a ForceClear. The TPM error code is returned.
127 */ 127 */
128 uint32_t TlclForceClear(void); 128 uint32_t TlclForceClear(void);
129 129
130 /* Issues a SetEnable. The TPM error code is returned. 130 /* Issues a PhysicalEnable. The TPM error code is returned.
131 */ 131 */
132 uint32_t TlclSetEnable(void); 132 uint32_t TlclSetEnable(void);
133 133
134 /* Issues a PhysicalDisable. The TPM error code is returned.
135 */
136 uint32_t TlclClearEnable(void);
137
134 /* Issues a SetDeactivated. Pass 0 to activate. Returns result code. 138 /* Issues a SetDeactivated. Pass 0 to activate. Returns result code.
135 */ 139 */
136 uint32_t TlclSetDeactivated(uint8_t flag); 140 uint32_t TlclSetDeactivated(uint8_t flag);
137 141
138 /* Gets flags of interest. (Add more here as needed.) The TPM error code is 142 /* Gets flags of interest. (Add more here as needed.) The TPM error code is
139 * returned. 143 * returned.
140 */ 144 */
141 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated); 145 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated);
142 146
143 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error 147 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error
144 * code is returned. 148 * code is returned.
145 */ 149 */
146 uint32_t TlclSetGlobalLock(void); 150 uint32_t TlclSetGlobalLock(void);
147 151
148 /* Performs a TPM_Extend. 152 /* Performs a TPM_Extend.
149 */ 153 */
150 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); 154 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest);
151 155
152 /* Gets the permission bits for the NVRAM space with |index|. 156 /* Gets the permission bits for the NVRAM space with |index|.
153 */ 157 */
154 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); 158 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions);
155 159
156 #endif /* TPM_LITE_TLCL_H_ */ 160 #endif /* TPM_LITE_TLCL_H_ */
OLDNEW
« no previous file with comments | « src/tlcl/structures.h ('k') | src/tlcl/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698