From nobody Mon Feb 9 09:29:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+63756+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63756+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1596674037; cv=none; d=zohomail.com; s=zohoarc; b=KP3JFKlfLbzredkfiUu3acQNaK++ieGIMu8JUQpYMLukkadhqRi7wyh+SqIOK8YeGgPqJgu5E1kV/M0U24414MqrTJUZbazD/aNS4z6bVqM9lWdATsHHlPSufyq2M3z9eY2P4+3cpYy8YQr3HYNnFxddGd5bHfCIIJcjxXjF7KI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596674037; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Wh6rOTsfJboxM2tMzknUecI7ybjuf8/mlbpe16W958Q=; b=Y6qAsLfPsEMBdm+Z4eoIfJnDfoE8S/eLEZM9t8/tBIir1FCaY4j2ZVOTHqt7YRimqVW2nGeu6pOhmGBd9brs1GzQEmhW3dZHPbVgOV3QHEQNf1Lb7qJqGQHDwyz73Yzup7cn0+vMUqolCVAPOotP2Cu7+TrVoxA3IE4g1sPLrEI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63756+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1596674037804421.41767248491317; Wed, 5 Aug 2020 17:33:57 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NnwnYY1788612xB0ankW6Xqt; Wed, 05 Aug 2020 17:33:57 -0700 X-Received: from mga04.intel.com (mga04.intel.com []) by mx.groups.io with SMTP id smtpd.web11.3442.1596674029695996418 for ; Wed, 05 Aug 2020 17:33:57 -0700 IronPort-SDR: eimm5sA/BzC65F6c1FYm1asix/Ry31a/idllg6Nmuhfbr6f1aubc8CF+t2uWleOQQbir2sQRLO RMUGokjeGx+Q== X-IronPort-AV: E=McAfee;i="6000,8403,9704"; a="150152820" X-IronPort-AV: E=Sophos;i="5.75,439,1589266800"; d="scan'208";a="150152820" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2020 17:33:56 -0700 IronPort-SDR: ZnMriX/uu8P/zxsxfZmO/nw++UwSD6O3MKaSYT2N7rvubrqWQWub/qyfltnebmrkHUO7bAvwKD H4cMUWXuY6XQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,439,1589266800"; d="scan'208";a="274924414" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.9.10]) by fmsmga007.fm.intel.com with ESMTP; 05 Aug 2020 17:33:54 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Jiewen Yao , Chasel Chiu , Nate DeSimone , Star Zeng , Qi Zhang Subject: [edk2-devel] [PATCH v2 5/9] IntelFsp2WrapperPkg/FspMeasurementLib: Add header file. Date: Thu, 6 Aug 2020 08:33:38 +0800 Message-Id: <20200806003342.17866-6-qi1.zhang@intel.com> In-Reply-To: <20200806003342.17866-1-qi1.zhang@intel.com> References: <20200806003342.17866-1-qi1.zhang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,qi1.zhang@intel.com X-Gm-Message-State: pgom3qRXShrwNG7dGJONqMXSx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1596674037; bh=GkTnM8vz6xDuZraBjjVrrEGkby/kIZObNKVqFstIDMQ=; h=Cc:Date:From:Reply-To:Subject:To; b=aCKbgPhH5RYYp3yCLQ18nnWNZEboc76CyrpflLbLr9P44pOZGse6FYneH2KTpNj40P6 4wSVwun+wot0SjGUTRWyN7/yFqBghH0hg09kkhjCYxN7YFTc9ndcu9LebVtcEn/vVYvcR GQ8jZxnt8KtUwXGe6kWA94jUpKJcM3Jgg8Y= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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..4ab40420ad --- /dev/null +++ b/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h @@ -0,0 +1,39 @@ +/** @file + This library is used by FSP modules to measure data to TPM. + +Copyright (c) 2020, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef _FSP_MEASUREMENT_LIB_H_ +#define _FSP_MEASUREMENT_LIB_H_ + +#define FSP_MEASURE_FSP BIT0 +#define FSP_MEASURE_FSPT BIT1 +#define FSP_MEASURE_FSPM BIT2 +#define FSP_MEASURE_FSPS BIT3 +#define FSP_MEASURE_FSPUPD BIT31 + +/** + Mesure a FSP FirmwareBlob. + + @param[in] PcrIndex PCR Index. + @param[in] Descrption Description for this FirmwareBlob. + @param[in] FirmwareBlobBase Base address of this FirmwareBlob. + @param[in] FirmwareBlobLength Size in bytes of this FirmwareBlob. + + @retval EFI_SUCCESS Operation completed successfully. + @retval EFI_UNSUPPORTED TPM device not available. + @retval EFI_OUT_OF_RESOURCES Out of memory. + @retval EFI_DEVICE_ERROR The operation was unsuccessful. +*/ +EFI_STATUS +EFIAPI +MeasureFspFirmwareBlob ( + IN UINT32 PcrIndex, + IN CHAR8 *Description OPTIONAL, + IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase, + IN UINT64 FirmwareBlobLength + ); +#endif --=20 2.26.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63756): https://edk2.groups.io/g/devel/message/63756 Mute This Topic: https://groups.io/mt/76019586/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-