From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com []) by mx.groups.io with SMTP id smtpd.web12.60531.1597731984824754947 for ; Mon, 17 Aug 2020 23:26:28 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: qi1.zhang@intel.com) IronPort-SDR: yscNdda+0IbsAwpx7829yNq30iSBJvgKrvo+Pv2nYnEcxSjNPXKSm43BIsmf9piUiEyWAbR9GS rq0Ts+Fl5tGg== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="155932639" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="155932639" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2020 23:26:27 -0700 IronPort-SDR: 9TT/kiyGSlJFxBhmeRFOvCVxY4ctPs4HfwFAQIYYYolMV2XtQgaZdYTqujMuBDcdPiKYki/mQo mQ8Hns8IQ71g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="441118165" Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.158.153]) by orsmga004.jf.intel.com with ESMTP; 17 Aug 2020 23:26:26 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Jiewen Yao , Chasel Chiu , Nate DeSimone , Star Zeng , Qi Zhang Subject: [PATCH v4 2/8] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Date: Tue, 18 Aug 2020 14:26:12 +0800 Message-Id: <20200818062618.3698-3-qi1.zhang@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 In-Reply-To: <20200818062618.3698-1-qi1.zhang@intel.com> References: <20200818062618.3698-1-qi1.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2376 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 diff --git a/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h b/Inte= lFsp2WrapperPkg/Include/Library/FspMeasurementLib.h new file mode 100644 index 0000000000..4620b4b08e --- /dev/null +++ b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h @@ -0,0 +1,39 @@ +/** @file=0D + This library is used by FSP modules to measure data to TPM.=0D +=0D +Copyright (c) 2020, Intel Corporation. All rights reserved.
=0D +SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#ifndef _FSP_MEASUREMENT_LIB_H_=0D +#define _FSP_MEASUREMENT_LIB_H_=0D +=0D +#define FSP_MEASURE_FSP BIT0=0D +#define FSP_MEASURE_FSPT BIT1=0D +#define FSP_MEASURE_FSPM BIT2=0D +#define FSP_MEASURE_FSPS BIT3=0D +#define FSP_MEASURE_FSPUPD BIT31=0D +=0D +/**=0D + Measure a FSP FirmwareBlob.=0D +=0D + @param[in] PcrIndex PCR Index.=0D + @param[in] Description Description for this FirmwareBlob.=0D + @param[in] FirmwareBlobBase Base address of this FirmwareBlob.=0D + @param[in] FirmwareBlobLength Size in bytes of this FirmwareBlob.= =0D +=0D + @retval EFI_SUCCESS Operation completed successfully.=0D + @retval EFI_UNSUPPORTED TPM device not available.=0D + @retval EFI_OUT_OF_RESOURCES Out of memory.=0D + @retval EFI_DEVICE_ERROR The operation was unsuccessful.=0D +*/=0D +EFI_STATUS=0D +EFIAPI=0D +MeasureFspFirmwareBlob (=0D + IN UINT32 PcrIndex,=0D + IN CHAR8 *Description OPTIONAL,=0D + IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase,=0D + IN UINT64 FirmwareBlobLength=0D + );=0D +#endif=0D --=20 2.26.2.windows.1