xref: /aosp_15_r20/external/coreboot/src/security/vboot/tpm_common.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #if CONFIG(TPM)
4 
5 /* Start of the root of trust */
6 tpm_result_t vboot_setup_tpm(struct vb2_context *ctx);
7 
8 /* vboot_extend_pcr function for vb2 context */
9 tpm_result_t vboot_extend_pcr(struct vb2_context *ctx, int pcr,
10 			     enum vb2_pcr_digest which_digest);
11 
12 #else
13 
14 #define vboot_setup_tpm(ctx) TPM_SUCCESS
15 
16 #define vboot_extend_pcr(ctx, pcr, which_digest) TPM_SUCCESS
17 
18 #endif
19