summaryrefslogtreecommitdiff
path: root/include/tpm-v2.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 12:57:13 +0300
committerTom Rini <trini@konsulko.com>2018-05-26 03:12:57 +0300
commit2dc6d97e1edd50634fa9f3dba4746d77cb1b9328 (patch)
tree22aebd86494f681574b1495482dc67b0e79421ea /include/tpm-v2.h
parent1922df201003b8736579aed70148a283bb62e33f (diff)
downloadu-boot-2dc6d97e1edd50634fa9f3dba4746d77cb1b9328.tar.xz
tpm: add TPM2_SelfTest command support
Add support for the TPM2_Selftest command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/tpm-v2.h')
-rw-r--r--include/tpm-v2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index a9c604dd52..29422ee11b 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -134,4 +134,13 @@ enum tpm2_algorithms {
*/
u32 tpm2_startup(enum tpm2_startup_types mode);
+/**
+ * Issue a TPM2_SelfTest command.
+ *
+ * @full_test Asking to perform all tests or only the untested ones
+ *
+ * @return code of the operation
+ */
+u32 tpm2_self_test(enum tpm2_yes_no full_test);
+
#endif /* __TPM_V2_H */