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

Side by Side Diff: firmware/lib/tpm_lite/include/tlcl.h

Issue 3389004: Rehaul of firmware TPM tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: remove leaked change Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | firmware/version.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 */ 127 */
128 uint32_t TlclClearEnable(void); 128 uint32_t TlclClearEnable(void);
129 129
130 /* Issues a SetDeactivated. Pass 0 to activate. Returns result code. 130 /* Issues a SetDeactivated. Pass 0 to activate. Returns result code.
131 */ 131 */
132 uint32_t TlclSetDeactivated(uint8_t flag); 132 uint32_t TlclSetDeactivated(uint8_t flag);
133 133
134 /* Gets flags of interest. Pointers for flags you aren't interested in may 134 /* Gets flags of interest. Pointers for flags you aren't interested in may
135 * be NULL. The TPM error code is returned. 135 * be NULL. The TPM error code is returned.
136 */ 136 */
137 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated, uint8_t* nvlocked) ; 137 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated,
138 uint8_t* nvlocked);
138 139
139 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error 140 /* Sets the bGlobalLock flag, which only a reboot can clear. The TPM error
140 * code is returned. 141 * code is returned.
141 */ 142 */
142 uint32_t TlclSetGlobalLock(void); 143 uint32_t TlclSetGlobalLock(void);
143 144
144 /* Performs a TPM_Extend. 145 /* Performs a TPM_Extend.
145 */ 146 */
146 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest); 147 uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest);
147 148
148 /* Gets the permission bits for the NVRAM space with |index|. 149 /* Gets the permission bits for the NVRAM space with |index|.
149 */ 150 */
150 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions); 151 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions);
151 152
152 /* Gets the entire set of permanent flags. 153 /* Gets the entire set of permanent flags.
153 */ 154 */
154 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); 155 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags);
155 156
156 /* Gets the entire set of volatile (ST_CLEAR) flags. 157 /* Gets the entire set of volatile (ST_CLEAR) flags.
157 */ 158 */
158 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); 159 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags);
159 160
160 #endif /* TPM_LITE_TLCL_H_ */ 161 #endif /* TPM_LITE_TLCL_H_ */
OLDNEW
« no previous file with comments | « no previous file | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698