2 * This file is part of the coreboot project.
4 * Copyright (C) 2015 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <tpm_lite/tlcl.h>
20 #define VBDEBUG(format, args...) printf(format, ## args)
22 #include <console/console.h>
23 #define VBDEBUG(format, args...) printk(BIOS_DEBUG, format, ## args)
26 uint32_t tlcl_lib_init(void) {
27 VBDEBUG("MOCK_TPM: %s\n", __func__
);
28 return TPM_E_NO_DEVICE
;
31 uint32_t tlcl_startup(void) {
32 VBDEBUG("MOCK_TPM: %s\n", __func__
);
33 return TPM_E_NO_DEVICE
;
36 uint32_t tlcl_resume(void) {
37 VBDEBUG("MOCK_TPM: %s\n", __func__
);
38 return TPM_E_NO_DEVICE
;
41 uint32_t tlcl_self_test_full(void)
43 VBDEBUG("MOCK_TPM: %s\n", __func__
);
44 return TPM_E_NO_DEVICE
;
47 uint32_t tlcl_continue_self_test(void)
49 VBDEBUG("MOCK_TPM: %s\n", __func__
);
50 return TPM_E_NO_DEVICE
;
53 uint32_t tlcl_define_space(uint32_t index
, uint32_t perm
, uint32_t size
)
55 VBDEBUG("MOCK_TPM: %s\n", __func__
);
56 return TPM_E_NO_DEVICE
;
59 uint32_t tlcl_write(uint32_t index
, const void* data
, uint32_t length
)
61 VBDEBUG("MOCK_TPM: %s\n", __func__
);
62 return TPM_E_NO_DEVICE
;
65 uint32_t tlcl_read(uint32_t index
, void* data
, uint32_t length
)
67 VBDEBUG("MOCK_TPM: %s\n", __func__
);
68 return TPM_E_NO_DEVICE
;
72 uint32_t tlcl_assert_physical_presence(void) {
73 VBDEBUG("MOCK_TPM: %s\n", __func__
);
74 return TPM_E_NO_DEVICE
;
77 uint32_t tlcl_physical_presence_cmd_enable(void) {
78 VBDEBUG("MOCK_TPM: %s\n", __func__
);
79 return TPM_E_NO_DEVICE
;
82 uint32_t tlcl_finalize_physical_presence(void) {
83 VBDEBUG("MOCK_TPM: %s\n", __func__
);
84 return TPM_E_NO_DEVICE
;
87 uint32_t tlcl_set_nv_locked(void) {
88 VBDEBUG("MOCK_TPM: %s\n", __func__
);
89 return TPM_E_NO_DEVICE
;
92 uint32_t tlcl_force_clear(void) {
93 VBDEBUG("MOCK_TPM: %s\n", __func__
);
94 return TPM_E_NO_DEVICE
;
97 uint32_t tlcl_set_enable(void) {
98 VBDEBUG("MOCK_TPM: %s\n", __func__
);
99 return TPM_E_NO_DEVICE
;
102 uint32_t tlcl_set_deactivated(uint8_t flag
)
104 VBDEBUG("MOCK_TPM: %s\n", __func__
);
105 return TPM_E_NO_DEVICE
;
108 uint32_t tlcl_get_permanent_flags(TPM_PERMANENT_FLAGS
* pflags
)
110 VBDEBUG("MOCK_TPM: %s\n", __func__
);
111 return TPM_E_NO_DEVICE
;
114 uint32_t tlcl_get_flags(uint8_t* disable
, uint8_t* deactivated
,
117 VBDEBUG("MOCK_TPM: %s\n", __func__
);
118 return TPM_E_NO_DEVICE
;
121 uint32_t tlcl_set_global_lock(void)
123 VBDEBUG("MOCK_TPM: %s\n", __func__
);
124 return TPM_E_NO_DEVICE
;
127 uint32_t tlcl_extend(int pcr_num
, const uint8_t* in_digest
,
130 VBDEBUG("MOCK_TPM: %s\n", __func__
);
131 return TPM_E_NO_DEVICE
;