]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg : UefiTcgPlatform.h: Define Startup Locality Event & Indicator
authorZhang, Chao B <chao.b.zhang@intel.com>
Sun, 22 Jan 2017 04:48:03 +0000 (12:48 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Tue, 24 Jan 2017 02:22:33 +0000 (10:22 +0800)
Add Startup Locality Event definition according to PC Client PFP 00.21
http://www.trustedcomputinggroup.org/wp-content/uploads/PC-ClientSpecific_Platform_Profile_for_TPM_2p0_Systems_v21.pdf
Add Locality Indicator definition according to PC Client PTP 00.43
https://www.trustedcomputinggroup.org/wp-content/uploads/PC-Client-Specific-Platform-TPM-Profile-for-TPM-2-0-v43-150126.pdf

Cc: Star Zeng <star.zeng@intel.com>
Cc: Yao Jiewen <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
MdePkg/Include/IndustryStandard/UefiTcgPlatform.h

index 23eaa53acdc5e7788a6aeae0012103ef171d02d2..6ce808e6c95145b2b0052644aa845a39e0d29b6a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   TCG EFI Platform Definition in TCG_EFI_Platform_1_20_Final\r
 \r
-  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2017, 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
@@ -268,6 +268,33 @@ typedef struct {
 //UINT8               vendorInfo[vendorInfoSize];\r
 } TCG_EfiSpecIDEventStruct;\r
 \r
+\r
+\r
+#define TCG_EfiStartupLocalityEvent_SIGNATURE      "StartupLocality"\r
+\r
+\r
+//\r
+// PC Client PTP spec Table 8 Relationship between Locality and Locality Attribute\r
+//\r
+#define LOCALITY_0_INDICATOR        0x01\r
+#define LOCALITY_1_INDICATOR        0x02\r
+#define LOCALITY_2_INDICATOR        0x03\r
+#define LOCALITY_3_INDICATOR        0x04\r
+#define LOCALITY_4_INDICATOR        0x05\r
+\r
+\r
+//\r
+// Startup Locality Event\r
+//\r
+typedef struct tdTCG_EfiStartupLocalityEvent{\r
+  UINT8       Signature[16];\r
+  //\r
+  // The Locality Indicator which sent the TPM2_Startup command\r
+  //\r
+  UINT8       StartupLocality;\r
+} TCG_EfiStartupLocalityEvent;\r
+\r
+\r
 //\r
 // Restore original structure alignment\r
 //\r