vTPM/TPM2: TPM2.0 TIS initialization and self test.
PATCH v3 7/14 vTPM/TPM2: TPM2.0 TIS initialization and self test.
call the TPM 2.0 various registers that allow communication between the TPM 2.0 and platform hardware and software. TPM2_SelfTest causes the TPM 2.0 to perform a test of its capabilities.
Signed-off-by Quan Xu <[email protected]>
--- extras/mini-os/include/tpm_tis.h | 1 + extras/mini-os/tpm_tis.c | 156 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+)
extras/mini-os/include/tpm_tis.h +1 -0
@@ -36,6 +36,7 @@struct tpm_chip ;struct tpm_chip *init_tpm_tis (unsigned long baseaddr,int localities,unsigned int irq); +struct tpm_chip *init_tpm2_tis (unsigned long baseaddr,int localities,unsigned int irq);void shutdown_tpm_tis (struct tpm_chip * tpm);int tpm_tis_request_locality (struct tpm_chip * tpm,int locality);
extras/mini-os/tpm_tis.c +156 -0
161 lines not on this page · raw message
Signature · 1 line
1.8.3.2