opnsense-src/sys/dev/tpm
Justin Hibbits c2e9c5bbf0 tpm: Refactor TIS and add a SPI attachment
Summary:
Though mostly used in x86 devices, TPM can be used on others, with a
direct SPI attachment.  Refactor the TPM 2.0 driver set to use an
attachment interface, and implement a SPI bus interface.

Test Plan:
Tested on a Raspberry Pi 4, with a GeeekPi TPM2.0 module (SLB9670
TPM) using security/tpm2-tools tpm2_getcaps for very light testing against the
spibus attachment.

Reviewed by:	kd
Obtained from:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D45069
2024-05-03 16:26:11 -04:00
..
tpm.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tpm20.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm20.h tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_acpi.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tpm_bus.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_crb.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_if.m tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_isa.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tpm_spibus.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_tis_acpi.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_tis_core.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpm_tis_spibus.c tpm: Refactor TIS and add a SPI attachment 2024-05-03 16:26:11 -04:00
tpmvar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00