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

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

Issue 5796005: vboot TPM stub functions return error codes (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years 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
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
11 #ifndef TPM_LITE_TLCL_H_ 11 #ifndef TPM_LITE_TLCL_H_
12 #define TPM_LITE_TLCL_H_ 12 #define TPM_LITE_TLCL_H_
13 13
14 #include "sysincludes.h" 14 #include "sysincludes.h"
15 #include "tss_constants.h" 15 #include "tss_constants.h"
16 #include "tlcl_stub.h" 16 #include "tlcl_stub.h"
17 17
18 /*****************************************************************************/ 18 /*****************************************************************************/
19 /* Functions implemented in tlcl.c */ 19 /* Functions implemented in tlcl.c */
20 20
21 /* Call this first. 21 /* Call this first. Returns 0 if success, nonzero if error.
22 */ 22 */
23 void TlclLibInit(void); 23 uint32_t TlclLibInit(void);
24 24
25 /* Logs to stdout. Arguments like printf. 25 /* Logs to stdout. Arguments like printf.
26 */ 26 */
27 void TlclLog(char* format, ...); 27 void TlclLog(char* format, ...);
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
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 /* Gets the entire set of permanent flags. 136 /* Gets the entire set of permanent flags.
137 */ 137 */
138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); 138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags);
139 139
140 /* Gets the entire set of volatile (ST_CLEAR) flags. 140 /* Gets the entire set of volatile (ST_CLEAR) flags.
141 */ 141 */
142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); 142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags);
143 143
144 #endif /* TPM_LITE_TLCL_H_ */ 144 #endif /* TPM_LITE_TLCL_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698