2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
\r
4 * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG
\r
5 * Author: Corvin Köhne <c.koehne@beckhoff.com>
\r
11 #include "tpm_device.h"
\r
13 #define TPM_INTF_TYPE_FIFO_PTP 0x0
\r
14 #define TPM_INTF_TYPE_CRB 0x1
\r
15 #define TPM_INTF_TYPE_FIFO_TIS 0xF
\r
17 #define TPM_INTF_VERSION_FIFO 0
\r
18 #define TPM_INTF_VERSION_CRB 1
\r
20 #define TPM_INTF_CAP_CRB_DATA_XFER_SIZE_4 0
\r
21 #define TPM_INTF_CAP_CRB_DATA_XFER_SIZE_8 1
\r
22 #define TPM_INTF_CAP_CRB_DATA_XFER_SIZE_32 2
\r
23 #define TPM_INTF_CAP_CRB_DATA_XFER_SIZE_64 3
\r
25 #define TPM_INTF_SELECTOR_FIFO 0
\r
26 #define TPM_INTF_SELECTOR_CRB 1
\r
31 int (*init)(void **sc);
\r
32 void (*deinit)(void *sc);
\r
33 int (*build_acpi_table)(void *sc);
\r
35 #define TPM_INTF_SET(x) DATA_SET(tpm_intf_set, x)
\r