summaryrefslogtreecommitdiff
path: root/Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h
diff options
context:
space:
mode:
authorraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
committerraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
commitb7c51c9cf4864df6aabb99a1ae843becd577237c (patch)
treeeebe9b0d0ca03062955223097e57da84dd618b9a /Core/EM/TCG2/Common/Tpm20Includes/Tpm20Pei.h
downloadzprj-master.tar.xz
init. 1AQQW051HEADmaster
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