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

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

Issue 2857030: Exhaustive test for rollback code (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix write count handling and improve comments. Created 10 years, 5 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 | « firmware/linktest/main.c ('k') | firmware/version.c » ('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 * 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 /* disable MSVC warnings on unused arguments */ 10 /* disable MSVC warnings on unused arguments */
11 __pragma(warning (disable: 4100)) 11 __pragma(warning (disable: 4100))
12 12
13 void TlclLibInit(void) { return; } 13 void TlclLibInit(void) { return; }
14 void TlclCloseDevice(void) { return; }
15 void TlclOpenDevice(void) { return; }
14 uint32_t TlclStartup(void) { return TPM_SUCCESS; } 16 uint32_t TlclStartup(void) { return TPM_SUCCESS; }
15 uint32_t TlclSelftestfull(void) { return TPM_SUCCESS; } 17 uint32_t TlclSelftestfull(void) { return TPM_SUCCESS; }
16 uint32_t TlclContinueSelfTest(void) { return TPM_SUCCESS; } 18 uint32_t TlclContinueSelfTest(void) { return TPM_SUCCESS; }
17 uint32_t TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) { 19 uint32_t TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) {
18 return TPM_SUCCESS; 20 return TPM_SUCCESS;
19 } 21 }
20 uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) { 22 uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) {
21 return TPM_SUCCESS; 23 return TPM_SUCCESS;
22 } 24 }
23 uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) { 25 uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) {
24 return TPM_SUCCESS; 26 return TPM_SUCCESS;
25 } 27 }
26 uint32_t TlclWriteLock(uint32_t index) { return TPM_SUCCESS; } 28 uint32_t TlclWriteLock(uint32_t index) { return TPM_SUCCESS; }
27 uint32_t TlclReadLock(uint32_t index) { return TPM_SUCCESS; } 29 uint32_t TlclReadLock(uint32_t index) { return TPM_SUCCESS; }
28 uint32_t TlclAssertPhysicalPresence(void) { return TPM_SUCCESS; } 30 uint32_t TlclAssertPhysicalPresence(void) { return TPM_SUCCESS; }
29 uint32_t TlclLockPhysicalPresence(void) { return TPM_SUCCESS; } 31 uint32_t TlclLockPhysicalPresence(void) { return TPM_SUCCESS; }
30 uint32_t TlclSetNvLocked(void) { return TPM_SUCCESS; } 32 uint32_t TlclSetNvLocked(void) { return TPM_SUCCESS; }
31 int TlclIsOwned(void) { return TPM_SUCCESS; } 33 int TlclIsOwned(void) { return TPM_SUCCESS; }
32 uint32_t TlclForceClear(void) { return TPM_SUCCESS; } 34 uint32_t TlclForceClear(void) { return TPM_SUCCESS; }
33 uint32_t TlclSetEnable(void) { return TPM_SUCCESS; } 35 uint32_t TlclSetEnable(void) { return TPM_SUCCESS; }
36 uint32_t TlclClearEnable(void) { return TPM_SUCCESS; }
34 uint32_t TlclSetDeactivated(int deactivated) { return TPM_SUCCESS; } 37 uint32_t TlclSetDeactivated(int deactivated) { return TPM_SUCCESS; }
35 uint32_t TlclSetGlobalLock(void) { return TPM_SUCCESS; } 38 uint32_t TlclSetGlobalLock(void) { return TPM_SUCCESS; }
36 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated) { 39 uint32_t TlclGetFlags(uint8_t* disable, uint8_t* deactivated) {
37 return TPM_SUCCESS; 40 return TPM_SUCCESS;
38 } 41 }
39 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions) { 42 uint32_t TlclGetPermissions(uint32_t index, uint32_t* permissions) {
40 return TPM_SUCCESS; 43 return TPM_SUCCESS;
41 } 44 }
OLDNEW
« no previous file with comments | « firmware/linktest/main.c ('k') | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698