blob: e1faa0ca454585fe79b257e91a5f00f738143098 [file] [log] [blame]
Christian Walter0bd84ed2019-07-23 10:26:30 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#if CONFIG(TPM1) || CONFIG(TPM2)
15
16/* Start of the root of trust */
17uint32_t vboot_setup_tpm(struct vb2_context *ctx);
18
19/* vboot_extend_pcr function for vb2 context */
Joel Kitching220ac042019-07-31 14:19:00 +080020vb2_error_t vboot_extend_pcr(struct vb2_context *ctx, int pcr,
21 enum vb2_pcr_digest which_digest);
Christian Walter0bd84ed2019-07-23 10:26:30 +020022
23#else
24
25#define vboot_setup_tpm(ctx) 0
26
27#define vboot_extend_pcr(ctx, pcr, which_digest) 0
28
29#endif