summaryrefslogtreecommitdiff
path: root/Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h
diff options
context:
space:
mode:
Diffstat (limited to 'Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h')
-rw-r--r--Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h b/Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h
new file mode 100644
index 0000000..f372b45
--- /dev/null
+++ b/Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h
@@ -0,0 +1,32 @@
+#ifndef TPM_2_0_PEI_H
+#define TPM_2_0_PEI_H
+
+#include <Tpm20Includes\Tpm20.h>
+
+#pragma pack(push, 1)
+
+typedef struct _TPM2_Startup{
+ TPMI_ST_COMMAND_TAG tag;
+ UINT32 CommandSize;
+ TPM_CC CommandCode;
+ TPM_SU StartupType;
+}TPM2_Startup_Cmd;
+
+typedef struct _TPM2_SelfTest{
+ TPMI_ST_COMMAND_TAG tag;
+ UINT32 CommandSize;
+ TPM_CC CommandCode;
+ TPMI_YES_NO SelfTestType;
+}TPM2_SelfTest;
+
+typedef struct _TPM2_Startup_Resp{
+ TPM_ST tag;
+ UINT32 ResponsSize;
+ TPM_RC ResponseCode;
+}TPM2_Common_RespHdr;
+
+#pragma pack(pop)
+
+EFI_STATUS Tpm20PeiSendStartup(IN EFI_PEI_SERVICES **PeiServices);
+EFI_STATUS Tpm20PeiSelfTest();
+#endif \ No newline at end of file