blob: 1b551895c85bd3145b92165eaf60c7427dfa7a39 [file] [log] [blame]
Gaurav Shahce0cc302010-03-24 13:48:55 -07001/* 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
3 * found in the LICENSE file.
4 *
5 * Stub implementations of TPM Lite Library.
6 */
7
Gaurav Shah887e3d42010-04-27 16:26:48 -07008#include "tss_constants.h"
Gaurav Shahce0cc302010-03-24 13:48:55 -07009
10void TlclLibinit(void) { return; }
11void TlclStartup(void) { return; }
12void TlclSelftestfull(void) { return; }
13void TlclDefineSpace(uint32_t index, uint32_t perm, uint32_t size) { return; }
14uint32_t TlclWrite(uint32_t index, uint8_t *data, uint32_t length) {
15 return TPM_SUCCESS;
16}
17uint32_t TlclRead(uint32_t index, uint8_t *data, uint32_t length) {
18 return TPM_SUCCESS;
19}
20void TlclWriteLock(uint32_t index) { return; }
21void TlclReadLock(uint32_t index) { return; }
22void TlclAssertPhysicalPresence(void) { return; }
Luigi Semenzato596b6402010-05-27 14:04:52 -070023uint32_t TlclLockPhysicalPresence(void) { return TPM_SUCCESS; }
Gaurav Shahce0cc302010-03-24 13:48:55 -070024void TlclSetNvLocked(void) { return; }
25int TlclIsOwned(void) { return 0; }
26void TlclForceClear(void) { return; }
Luigi Semenzato596b6402010-05-27 14:04:52 -070027uint32_t TlclSetEnable(void) { return TPM_SUCCESS; }
28uint32_t TlclSetDeactivated(int deactivated) { return TPM_SUCCESS; }
29uint32_t TlclSetGlobalLock(void) { return TPM_SUCCESS; }
Gaurav Shahce0cc302010-03-24 13:48:55 -070030int TlclGetFlags(uint8_t* disable, uint8_t* deactivated) { return TPM_SUCCESS; }