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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 /* Close and open the device. This is needed for running more complex commands | 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 | 24 * at user level, such as TPM_TakeOwnership, since the TPM device can be opened |
25 * only by one process at a time. | 25 * only by one process at a time. |
26 */ | 26 */ |
27 void TlclCloseDevice(void); | 27 void TlclCloseDevice(void); |
28 void TlclOpenDevice(void); | 28 void TlclOpenDevice(void); |
29 | 29 |
30 /* Send data to the TPM and receive a response. Returns 0 if success, | 30 /* Send data to the TPM and receive a response. Returns 0 if success, |
31 * nonzero if error. */ | 31 * nonzero if error. */ |
32 uint32_t TlclStubSendReceive(uint8_t* request, int request_length, | 32 uint32_t TlclStubSendReceive(const uint8_t* request, int request_length, |
33 uint8_t* response, int max_length); | 33 uint8_t* response, int max_length); |
34 | 34 |
35 /*****************************************************************************/ | 35 /*****************************************************************************/ |
36 /* Functions implemented in tlcl.c */ | 36 /* Functions implemented in tlcl.c */ |
37 | 37 |
38 /* Call this first. | 38 /* Call this first. |
39 */ | 39 */ |
40 void TlclLibInit(void); | 40 void TlclLibInit(void); |
41 | 41 |
42 /* Logs to stdout. Arguments like printf. | 42 /* Logs to stdout. Arguments like printf. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 /* Gets the entire set of permanent flags. | 152 /* Gets the entire set of permanent flags. |
153 */ | 153 */ |
154 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); | 154 uint32_t TlclGetPermanentFlags(TPM_PERMANENT_FLAGS* pflags); |
155 | 155 |
156 /* Gets the entire set of volatile (ST_CLEAR) flags. | 156 /* Gets the entire set of volatile (ST_CLEAR) flags. |
157 */ | 157 */ |
158 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); | 158 uint32_t TlclGetSTClearFlags(TPM_STCLEAR_FLAGS* pflags); |
159 | 159 |
160 #endif /* TPM_LITE_TLCL_H_ */ | 160 #endif /* TPM_LITE_TLCL_H_ */ |
OLD | NEW |