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

Side by Side Diff: vboot_firmware/stub/tlcl.c

Issue 2711006: Import recent tpm_lite changes that make all TPM commands return a status. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: cleanup from gauravsh's feedback Created 10 years, 6 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
« no previous file with comments | « vboot_firmware/linktest/main.c ('k') | no next file » | 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 * Stub implementations of TPM Lite Library. 5 * Stub implementations of TPM Lite Library.
6 */ 6 */
7 7
8 #include "tss_constants.h" 8 #include "tss_constants.h"
9 9
10 void TlclLibinit(void) { return; } 10 void TlclLibInit(void) { return; }
11 void TlclStartup(void) { return; } 11 uint32_t TlclStartup(void) { return TPM_SUCCESS; }
12 void TlclSelftestfull(void) { return; } 12 uint32_t TlclSelftestfull(void) { return TPM_SUCCESS; }
13 void TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) { return; } 13 uint32_t TlclContinueSelfTest(void) { return TPM_SUCCESS; }
14 uint32_t TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) {
15 return TPM_SUCCESS;
16 }
14 uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) { 17 uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) {
15 return TPM_SUCCESS; 18 return TPM_SUCCESS;
16 } 19 }
17 uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) { 20 uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) {
18 return TPM_SUCCESS; 21 return TPM_SUCCESS;
19 } 22 }
20 void TlclWriteLock(uint32_t index) { return; } 23 uint32_t TlclWriteLock(uint32_t index) { return TPM_SUCCESS; }
21 void TlclReadLock(uint32_t index) { return; } 24 uint32_t TlclReadLock(uint32_t index) { return TPM_SUCCESS; }
22 void TlclAssertPhysicalPresence(void) { return; } 25 uint32_t TlclAssertPhysicalPresence(void) { return TPM_SUCCESS; }
23 uint32_t TlclLockPhysicalPresence(void) { return TPM_SUCCESS; } 26 uint32_t TlclLockPhysicalPresence(void) { return TPM_SUCCESS; }
24 void TlclSetNvLocked(void) { return; } 27 uint32_t TlclSetNvLocked(void) { return TPM_SUCCESS; }
25 int TlclIsOwned(void) { return 0; } 28 int TlclIsOwned(void) { return TPM_SUCCESS; }
26 void TlclForceClear(void) { return; } 29 uint32_t TlclForceClear(void) { return TPM_SUCCESS; }
27 uint32_t TlclSetEnable(void) { return TPM_SUCCESS; } 30 uint32_t TlclSetEnable(void) { return TPM_SUCCESS; }
28 uint32_t TlclSetDeactivated(int deactivated) { return TPM_SUCCESS; } 31 uint32_t TlclSetDeactivated(int deactivated) { return TPM_SUCCESS; }
29 uint32_t TlclSetGlobalLock(void) { return TPM_SUCCESS; } 32 uint32_t TlclSetGlobalLock(void) { return TPM_SUCCESS; }
30 int TlclGetFlags(uint8_t* disable, uint8_t* deactivated) { return TPM_SUCCESS; } 33 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated) {
34 return TPM_SUCCESS;
35 }
OLDNEW
« no previous file with comments | « vboot_firmware/linktest/main.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698