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

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

Issue 3271006: Make TPM datagrams const, since they cannot be modified in the RO firmware. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: 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/lib/tpm_lite/include/tlcl_structures.h » ('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 11 matching lines...) Expand all
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
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_ */
OLDNEW
« no previous file with comments | « no previous file | firmware/lib/tpm_lite/include/tlcl_structures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698