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

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

Issue 4266002: Fix integration bugs (vboot side) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Rename tpm_lite.h to tlcl_stub.h Created 10 years, 1 month 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 | « firmware/include/tss_constants.h ('k') | host/Makefile » ('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
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 16 #include "tlcl_stub.h"
17 /*****************************************************************************/
18 /* Functions to be implemented by the stub library */
19
20 /* Initialize the stub library */
21 void TlclStubInit(void);
22
23 /* Close and open the device. This is needed for running more complex commands
24 * at user level, such as TPM_TakeOwnership, since the TPM device can be opened
25 * only by one process at a time.
26 */
27 void TlclCloseDevice(void);
28 void TlclOpenDevice(void);
29
30 /* Send data to the TPM and receive a response. Returns 0 if success,
31 * nonzero if error. */
32 uint32_t TlclStubSendReceive(const uint8_t* request, int request_length,
33 uint8_t* response, int max_length);
34 17
35 /*****************************************************************************/ 18 /*****************************************************************************/
36 /* Functions implemented in tlcl.c */ 19 /* Functions implemented in tlcl.c */
37 20
38 /* Call this first. 21 /* Call this first.
39 */ 22 */
40 void TlclLibInit(void); 23 void TlclLibInit(void);
41 24
42 /* Logs to stdout. Arguments like printf. 25 /* Logs to stdout. Arguments like printf.
43 */ 26 */
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 135
153 /* Gets the entire set of permanent flags. 136 /* Gets the entire set of permanent flags.
154 */ 137 */
155 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); 138 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags);
156 139
157 /* Gets the entire set of volatile (ST_CLEAR) flags. 140 /* Gets the entire set of volatile (ST_CLEAR) flags.
158 */ 141 */
159 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); 142 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags);
160 143
161 #endif /* TPM_LITE_TLCL_H_ */ 144 #endif /* TPM_LITE_TLCL_H_ */
OLDNEW
« no previous file with comments | « firmware/include/tss_constants.h ('k') | host/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698