]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.h
SecurityPkg: Tcg2: Fix TCG2 PP issues
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Smm / Tcg2Smm.h
index ebd71edb772d2d2442d6b902bddac7c2859cadc7..0b09032d633d50fc86304dad57ebe508711b44ae 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file for Tcg2 SMM driver.\r
   \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -37,6 +37,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/TpmMeasurementLib.h>\r
 #include <Library/Tpm2DeviceLib.h>\r
 #include <Library/Tcg2PhysicalPresenceLib.h>\r
+#include <Library/IoLib.h>\r
+\r
+#include <IndustryStandard/TpmPtp.h>\r
 \r
 #pragma pack(1)\r
 typedef struct {\r
@@ -59,6 +62,7 @@ typedef struct {
 typedef struct {\r
   PHYSICAL_PRESENCE_NVS  PhysicalPresence;\r
   MEMORY_CLEAR_NVS       MemoryClear;\r
+  UINT32                 PPRequestUserConfirm;\r
 } TCG_NVS;\r
 \r
 typedef struct {\r
@@ -84,4 +88,10 @@ typedef struct {
 #define MOR_REQUEST_SUCCESS                                        0\r
 #define MOR_REQUEST_GENERAL_FAILURE                                1\r
 \r
+//\r
+// Physical Presence Interface Version supported by Platform\r
+//\r
+#define PHYSICAL_PRESENCE_VERSION_TAG                              "$PV"\r
+#define PHYSICAL_PRESENCE_VERSION_SIZE                             4\r
+\r
 #endif  // __TCG_SMM_H__\r