From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6520B81EFB for ; Tue, 24 Jan 2017 00:21:41 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP; 24 Jan 2017 00:21:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,277,1477983600"; d="scan'208";a="51842196" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 24 Jan 2017 00:21:40 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 24 Jan 2017 00:21:40 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Tue, 24 Jan 2017 16:21:38 +0800 From: "Yao, Jiewen" To: "Zhang, Chao B" , "edk2-devel@lists.01.org" CC: "Zhang, Chao B" , "Zeng, Star" Thread-Topic: [edk2] [PATCH 1/3] MdePkg: UefiTcgPlatform.h: Add UEFI_VARIABLE_DATA Thread-Index: AQHSdheRjb0cRYy9uUujQHZEMnCkRKFHSYVw Date: Tue, 24 Jan 2017 08:21:37 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8E4CA7@shsmsx102.ccr.corp.intel.com> References: <20170124075732.27484-1-chao.b.zhang@intel.com> In-Reply-To: <20170124075732.27484-1-chao.b.zhang@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 1/3] MdePkg: UefiTcgPlatform.h: Add UEFI_VARIABLE_DATA X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 08:21:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Series reviewed-by: jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Zh= ang, > Chao B > Sent: Tuesday, January 24, 2017 3:58 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Zhang, Chao B > ; Zeng, Star > Subject: [edk2] [PATCH 1/3] MdePkg: UefiTcgPlatform.h: Add > UEFI_VARIABLE_DATA >=20 > Add UEFI_VARIABLE_DATA according to TCG PC-Client PFP Spec 00.21. > http://www.trustedcomputinggroup.org/wp-content/uploads/PC-ClientSpecific > _Platform_Profile_for_TPM_2p0_Systems_v21.pdf >=20 > Cc: Star Zeng > Cc: Yao Jiewen > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Chao Zhang > --- > MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 17 > +++++++++++++++++ > 1 file changed, 17 insertions(+) >=20 > diff --git a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h > b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h > index 6ce808e..8a3e170 100644 > --- a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h > +++ b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h > @@ -151,6 +151,7 @@ typedef struct tdEFI_HANDOFF_TABLE_POINTERS { > /// This structure serves as the header for measuring variables. The nam= e of the > /// variable (in Unicode format) should immediately follow, then the var= iable > /// data. > +/// This is defined in TCG EFI Platform Spec for TPM1.1 or 1.2 V1.22 > /// > typedef struct tdEFI_VARIABLE_DATA { > EFI_GUID VariableName; > @@ -160,6 +161,22 @@ typedef struct tdEFI_VARIABLE_DATA { > INT8 VariableData[1]; ///< Driver or > platform-specific data > } EFI_VARIABLE_DATA; >=20 > +/// > +/// UEFI_VARIABLE_DATA > +/// > +/// This structure serves as the header for measuring variables. The nam= e of the > +/// variable (in Unicode format) should immediately follow, then the var= iable > +/// data. > +/// This is defined in TCG PC Client Firmware Profile Spec 00.21 > +/// > +typedef struct tdUEFI_VARIABLE_DATA { > + EFI_GUID VariableName; > + UINT64 UnicodeNameLength; > + UINT64 VariableDataLength; > + CHAR16 UnicodeName[1]; > + INT8 VariableData[1]; ///< Driver or > platform-specific data > +} UEFI_VARIABLE_DATA; > + > // > // For TrEE1.0 compatibility > // > -- > 1.9.5.msysgit.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel