From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.6832.1597198549658217696 for ; Tue, 11 Aug 2020 19:15:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=PZ7DX5/e; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: jian.j.wang@intel.com) IronPort-SDR: MTSZEwjstqQGv/IKy9kSnrQVC1YTDTh9QIhEP1OjIJLRz7/UGEcRtGXZPRCsCZq6chMmXv10+3 rzR8TiguaEtA== X-IronPort-AV: E=McAfee;i="6000,8403,9710"; a="215388029" X-IronPort-AV: E=Sophos;i="5.76,302,1592895600"; d="scan'208";a="215388029" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2020 19:15:48 -0700 IronPort-SDR: zGbOyJZJ/sUzysnCe867zng/UasmLdgNxHRjzfE/d7FS54DIO6JtPDYb7/kd0w3qa7z1fh54lg STYvzkoUMXeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,302,1592895600"; d="scan'208";a="327044994" Received: from orsmsx603-2.jf.intel.com (HELO ORSMSX603.amr.corp.intel.com) ([10.22.229.83]) by fmsmga002.fm.intel.com with ESMTP; 11 Aug 2020 19:15:48 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 11 Aug 2020 19:15:47 -0700 Received: from orsmsx152.amr.corp.intel.com (10.22.226.39) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 11 Aug 2020 19:15:47 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX152.amr.corp.intel.com (10.22.226.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Aug 2020 19:15:46 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.107) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Aug 2020 19:15:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NeVI1mSraR6xNcRGQHPEObmgU0/ENZje3Y1zWcuzKBECg1O7TlQypPBXw5nqnz3MDbyf7hbiTXWUjFGoqAQYfwSe+UQkVjcrCJnjg3fqDHCabYEihbvR35VOi0PkvEWymI/XGGcXpTv96/cu3us09NyVSdtblRZb11Yq/I3HNND4Ikw7/j5zQvE9XWWumqaGgDg1JbhYPQFFmJFi89riyrqmV3dc69QVHrVnpS4jai8Gojf/oQaOwrtkjleSL0nmpO9Q0RzG5nx4v5OJoe3BfYVYKrVDEyradPOyXyfPuNpn9AjoVg1/FDT5nO14VIzSLLbD5qE+eYyZset9sepwVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kfXe/tPxDgoUcpOX4rkYpa4QZmiA5FKiPGhPI+x9Nb8=; b=dlmvoJYmAyHlQ+AOWbqFqQHiFAdy9RyUgV7tt0IzdLKsYxXfv4neNsDwChaEEl3WrzBdsiwLytNAw+GCKSPg0sZc2QQPmVlgfsNQr5nEFUVnCoJBuEGMCoM1Ftqb1pocPhq0ZZQgRCymLm3AesYWunvky9v1YTpji1ONQqM6FSl0G7XqA0BhS6LYOSgOY4EGguWPOAJlUbLkXG56LvMOk8d2JhgDwnzOJvUwreZvz+/RrEn62p8Il0tfvs0VEIoNi7JG2Dk5ZT4yqHFvIle7LA8qvHumacfWY2FEW9duFBBePU8SuZeWEXYkhmgcQxDvSEN1KKC9Ur43j2iywAtHAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kfXe/tPxDgoUcpOX4rkYpa4QZmiA5FKiPGhPI+x9Nb8=; b=PZ7DX5/eBR4l9wE18vxwLwxMoCs29b5RgGCyamfFqouQQsGSVZHZNjFhDh2hu56d74cR9uOOGy9KenHoCJ6gbPJBCdzY4k1dlqIerIgo69yN5TRtINqJrpzalp/1oWCnvbuxgI0wVoIwoJoKplTVjKRPDg+rCzObqOAyIOy/r5Y= Received: from SN6PR11MB3312.namprd11.prod.outlook.com (2603:10b6:805:c8::14) by SA0PR11MB4654.namprd11.prod.outlook.com (2603:10b6:806:98::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Wed, 12 Aug 2020 02:15:45 +0000 Received: from SN6PR11MB3312.namprd11.prod.outlook.com ([fe80::bc48:4db0:9666:124e]) by SN6PR11MB3312.namprd11.prod.outlook.com ([fe80::bc48:4db0:9666:124e%7]) with mapi id 15.20.3261.024; Wed, 12 Aug 2020 02:15:45 +0000 From: "Wang, Jian J" To: "devel@edk2.groups.io" , "Zhang, Qi1" CC: "Yao, Jiewen" , "Chiu, Chasel" , "Desimone, Nathaniel L" , "Zeng, Star" Subject: Re: [edk2-devel] [PATCH v2 5/9] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Thread-Topic: [edk2-devel] [PATCH v2 5/9] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Thread-Index: AQHWa4lSGfGSrc/NekuAShX1By8KqKkzxZCw Date: Wed, 12 Aug 2020 02:15:45 +0000 Message-ID: References: <20200806003342.17866-1-qi1.zhang@intel.com> <20200806003342.17866-6-qi1.zhang@intel.com> In-Reply-To: <20200806003342.17866-6-qi1.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTY1MGExMWEtNzk1Ny00YTRmLWFmNzYtMTIxZDE2MzUwNDkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicUZoS0dReGtcL29LakV1RlRCK2RocEIwb3hCRlhId0pNT215aDRTRmxwQ2VSZThaeldPRmVwM1cyc2dpRE93cGYifQ== dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-ctpclassification: CTP_NT authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.203] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4d614ce2-86ac-46e3-94a7-08d83e659f03 x-ms-traffictypediagnostic: SA0PR11MB4654: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:356; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4mbLTcjnORLaQJH1uppspY1Gv1IUNoHXwS7TZnPy5iSTM1obDgs1p519fG3MgkZJ5ehKMRP7oCQmZH5Un0hM36s+xfNrxNasQsG7WHqfvtS61g9RaQVEER/bTnhvhzYyT5vVAJqwCuKhODfh2JG6YX4iuIoGxx5nqsEWhU7xUD7pk1RhLA/cYrM63H1DxICWHcrfp7/uni5NwXu1GWVzV+PHtZiX9sthSFG4TcSME+FGbbV329LCf+f2RwSxUK1Vy2zGKgzGqf+icJwu3rx462DoFxjCetLkNcd1dkQwLYUCGM2J2PDdRgdQdqB1N1LlySB9vI+k/uItvNoJ2K9kTtcMjqqy4TDNP+Llo6gxSMRmj3euQnnCJfm0GkKVVMRxa3vR9XhEhH272OTUW2UTfQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB3312.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(396003)(366004)(136003)(346002)(6636002)(7696005)(33656002)(4326008)(966005)(52536014)(5660300002)(110136005)(8936002)(316002)(54906003)(2906002)(186003)(6506007)(478600001)(86362001)(9686003)(53546011)(66446008)(83380400001)(26005)(71200400001)(8676002)(66476007)(55016002)(76116006)(64756008)(66946007)(66556008)(107886003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: hceK41SryRiY1MN9AVNS3Ee6XmStaorZuLZhVd1ox+FAJRVZTTKTWloHq4GxJGQjIi+apSoBV9gq8DRZo2UsXYplVu2iE7NnmuAeMRsFS8UnCgXAg7WT2D5gxWJLVRpq0palpNY0wUGCXISptHUNhKo89VL95y683qrMaxFlwKoudx585nnuUSSjcgHeMiIj2Wf3Y89sdPO1UDK+SyWns3bLnrMeXNR3DDeBtH5bnycFgBltNj/EPgE2Os8duQSk7ltsvlkQjphGZtzDgfBG9l0G/mbj5q+KzC5BOyXh7xHPZRCzahdPBtcFGfnLSzos0IGoSqm7TITjIkwa6QQ+pFnCndpuiHvjDBdHgLiRaNPmMj9n/noWy/mJGRbo/4w62B20AgXzjXU87cBGuA8jlxfJFvUYePt7JkK//IjJ02rJjLSWa8xl8dxK1yuVPaDUY8ft01+MX2/ozrSklUNzS+yBYyonL8RHCwOYMdAs5YAQagS4r2RCE/oKvHl3qfnEYbD7TOxTjd/FFzxEXWRsz3oXAQ1I10IK9pGZ4Za4zX8WIgVbAGDlYzIch8X15hZN8G1HdYyP8oFnBzJFGMU05hCPYNVzUkvgBQwY9PBYsEi0u9+ZJ7r9PCxdrgfQMAVlPRDrf9NJHfup2AouZ1ZbCg== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3312.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d614ce2-86ac-46e3-94a7-08d83e659f03 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2020 02:15:45.2226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UhIUp1YEWeuE45Rk+lYy1/ztJEty3pfBuql5FZ/HdHc5P8ZDULNom7XvN75EH56wDCOTpLgZJ/RHPZmYFFJRtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4654 Return-Path: jian.j.wang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Qi, Some typos below. > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Qi Zhang > Sent: Thursday, August 06, 2020 8:34 AM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Chiu, Chasel ; > Desimone, Nathaniel L ; Zeng, Star > ; Zhang, Qi1 > Subject: [edk2-devel] [PATCH v2 5/9] IntelFsp2WrapperPkg/FspMeasurementLi= b: > Add header file. >=20 > From: Jiewen Yao >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2376 >=20 > Cc: Jiewen Yao > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Star Zeng > Cc: Qi Zhang > Signed-off-by: Jiewen Yao > --- > .../Include/Library/FspMeasurementLib.h | 39 +++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 > IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h >=20 > diff --git a/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > new file mode 100644 > index 0000000000..4ab40420ad > --- /dev/null > +++ b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h > @@ -0,0 +1,39 @@ > +/** @file >=20 > + This library is used by FSP modules to measure data to TPM. >=20 > + >=20 > +Copyright (c) 2020, Intel Corporation. All rights reserved.
>=20 > +SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > + >=20 > +**/ >=20 > + >=20 > +#ifndef _FSP_MEASUREMENT_LIB_H_ >=20 > +#define _FSP_MEASUREMENT_LIB_H_ >=20 > + >=20 > +#define FSP_MEASURE_FSP BIT0 >=20 > +#define FSP_MEASURE_FSPT BIT1 >=20 > +#define FSP_MEASURE_FSPM BIT2 >=20 > +#define FSP_MEASURE_FSPS BIT3 >=20 > +#define FSP_MEASURE_FSPUPD BIT31 >=20 > + >=20 > +/** >=20 > + Mesure a FSP FirmwareBlob. 'Mesure' -> 'Measure' >=20 > + >=20 > + @param[in] PcrIndex PCR Index. >=20 > + @param[in] Descrption Description for this FirmwareBlob. 'Descrption' -> 'Description' >=20 > + @param[in] FirmwareBlobBase Base address of this FirmwareBlob. >=20 > + @param[in] FirmwareBlobLength Size in bytes of this FirmwareBlob= . >=20 > + >=20 > + @retval EFI_SUCCESS Operation completed successfully. >=20 > + @retval EFI_UNSUPPORTED TPM device not available. >=20 > + @retval EFI_OUT_OF_RESOURCES Out of memory. >=20 > + @retval EFI_DEVICE_ERROR The operation was unsuccessful. >=20 > +*/ >=20 > +EFI_STATUS >=20 > +EFIAPI >=20 > +MeasureFspFirmwareBlob ( >=20 > + IN UINT32 PcrIndex, >=20 > + IN CHAR8 *Description OPTIONAL, >=20 > + IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase, >=20 > + IN UINT64 FirmwareBlobLength >=20 > + ); >=20 > +#endif >=20 > -- > 2.26.2.windows.1 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. >=20 > View/Reply Online (#63756): https://edk2.groups.io/g/devel/message/63756 > Mute This Topic: https://groups.io/mt/76019586/1768734 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [jian.j.wang@intel.com= ] > -=3D-=3D-=3D-=3D-=3D-=3D