From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9C22AD8026F for ; Fri, 25 Aug 2023 04:15:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=FQHASXzcct/VzZVfMXB01LNqN/OxEqZ110RYm35IbAU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692936913; v=1; b=gQZltWuLgUUyKLj1AZra03othwxV8bi23pDjnoyG2Fww0t9DqTrM8Y70ZHrgI/+GJBylulEW 2AmQdYrlEqI5mD0BHTH1/bIIt40vP3wSeswEN8G9M6TNxgk2Be3fsmDE/9nNgAPr/E0jBPSZN/W EE7Tebbxss3il0oWYjhiwo8o= X-Received: by 127.0.0.2 with SMTP id 9ao1YY7687511xrrX0yhbrh8; Thu, 24 Aug 2023 21:15:13 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.6004.1692933355261151926 for ; Thu, 24 Aug 2023 20:15:55 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="374592608" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="374592608" X-Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2023 20:15:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="860938168" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="860938168" X-Received: from hongbin1-mobl1.ccr.corp.intel.com ([10.93.21.230]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2023 20:15:47 -0700 From: "Zhang, Hongbin1" To: devel@edk2.groups.io Cc: "Zhang, Hongbin1" , Chasel Chiu , Nate DeSimone , Duggapu Chinni B , Ray Han Lim Ng , Star Zeng , Ted Kuo , Ashraf Ali S , Susovan Mohapatra Subject: [edk2-devel] [PATCH v1] IntelFsp2Pkg: Add get and set FspSmmInit upd data pointer functions Date: Fri, 25 Aug 2023 11:15:22 +0800 Message-Id: <20230825031522.1241-1-hongbin1.zhang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,hongbin1.zhang@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: tyxfdxTIq46D6r8Fj3YWoxfVx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=gQZltWuL; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) FSP-SMM module need get and set FspSmmInit upd data pointer functions to get and set upd settings. Signed-off-by: Hongbin1 Zhang Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Ray Han Lim Ng Cc: Star Zeng Cc: Ted Kuo Cc: Ashraf Ali S Cc: Susovan Mohapatra --- IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c | 41 ++++++++++++++++++++ IntelFsp2Pkg/Include/Library/FspCommonLib.h | 22 +++++++++++ 2 files changed, 63 insertions(+) diff --git a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c index 6f6a086111..d33d01fe22 100644 --- a/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c +++ b/IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c @@ -372,6 +372,47 @@ GetFspSiliconInitUpdDataPointer ( return FspData->SiliconInitUpdPtr; } +/** + This function sets the FspSmmInit UPD data pointer. + + @param[in] SmmInitUpdPtr FspSmmInit UPD data pointer. +**/ +VOID +EFIAPI +SetFspSmmInitUpdDataPointer ( + IN VOID *SmmInitUpdPtr + ) +{ + FSP_GLOBAL_DATA *FspData; + + // + // Get the FSP Global Data Pointer + // + FspData = GetFspGlobalDataPointer (); + + // + // Set the FspSmmInit UPD data pointer. + // + FspData->SmmInitUpdPtr = SmmInitUpdPtr; +} + +/** + This function gets the FspSmmInit UPD data pointer. + + @return FspSmmInit UPD data pointer. +**/ +VOID * +EFIAPI +GetFspSmmInitUpdDataPointer ( + VOID + ) +{ + FSP_GLOBAL_DATA *FspData; + + FspData = GetFspGlobalDataPointer (); + return FspData->SmmInitUpdPtr; +} + /** Set FSP measurement point timestamp. diff --git a/IntelFsp2Pkg/Include/Library/FspCommonLib.h b/IntelFsp2Pkg/Include/Library/FspCommonLib.h index 13b67f8822..12d993b7cc 100644 --- a/IntelFsp2Pkg/Include/Library/FspCommonLib.h +++ b/IntelFsp2Pkg/Include/Library/FspCommonLib.h @@ -192,6 +192,28 @@ GetFspSiliconInitUpdDataPointer ( VOID ); +/** + This function sets the smm init UPD data pointer. + + @param[in] SmmInitUpdPtr smm init UPD data pointer. +**/ +VOID +EFIAPI +SetFspSmmInitUpdDataPointer ( + IN VOID *SmmInitUpdPtr + ); + +/** + This function gets the smm init UPD data pointer. + + @return smm init UPD data pointer. +**/ +VOID * +EFIAPI +GetFspSmmInitUpdDataPointer ( + VOID + ); + /** Set FSP measurement point timestamp. -- 2.37.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108029): https://edk2.groups.io/g/devel/message/108029 Mute This Topic: https://groups.io/mt/100950055/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-