From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web12.16053.1664915637938401602 for ; Tue, 04 Oct 2022 13:33:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CH8UQkTD; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: chasel.chiu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664915637; x=1696451637; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B9JUu2b/NPmSVfXeEYnh8VEeAFvPMYcPKjJylxw0uZo=; b=CH8UQkTD9JOsbKhAJKUaN16qCMaiZpJ895/6gwvjbufFiAlUoIXLkQ3m XllPAMklby4dgmI5uBAxPpfDr0eP1NmmB3Vn9/qlFoisKVKjDBFphvfxz +kEIxoeTZtMag+IZvj/78bgmltt4wiFDlCN8X2oCdb5A26wrZwO8+P0rP uPSUbftFJCINB3rcckVKAVZ2d/srS/WrWilWHCkoX2Sa3chbtN8m+H3te 2rZ72qlQLpKwBr9GqNQiMBOnNROP7S4UHZs8/WcJQjUA/p3bv3GGPH38K 1HMr7B+uxH86MgfrDsAD12pf+zCw7ajO2oTpGpGYRNZi/lv9mM3BbPX0z A==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="389312322" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="389312322" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 13:33:57 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="952924661" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="952924661" Received: from cchiu4-mobl.gar.corp.intel.com ([10.209.6.174]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 13:33:57 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Star Zeng Subject: [PATCH] IntelFsp2WrapperPkg: Add header for PlatformMultiPhaseLib. Date: Tue, 4 Oct 2022 13:33:37 -0700 Message-Id: <20221004203338.1355-1-chasel.chiu@intel.com> X-Mailer: git-send-email 2.35.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4092 To comply with coding style rule each library class should have its own header even if it is just a private child library instance consumed by parent public library in the same package. Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Chasel Chiu --- IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/PeiFspWrapperMu= ltiPhaseProcessLib.c | 2 +- IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProcessLib.h = | 18 ------------------ IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseLib.h = | 30 ++++++++++++++++++++++++++++++ IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec = | 2 +- 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/Pei= FspWrapperMultiPhaseProcessLib.c b/IntelFsp2WrapperPkg/Library/FspWrapperMu= ltiPhaseProcessLib/PeiFspWrapperMultiPhaseProcessLib.c index 3ddc07690a..1248accf87 100644 --- a/IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/PeiFspWrap= perMultiPhaseProcessLib.c +++ b/IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/PeiFspWrap= perMultiPhaseProcessLib.c @@ -16,7 +16,7 @@ #include =0D #include =0D #include =0D -#include =0D +#include =0D =0D /**=0D Execute 32-bit FSP API entry code.=0D diff --git a/IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProces= sLib.h b/IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProcessLib= .h index 65a5db233f..aadacc9b50 100644 --- a/IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProcessLib.h +++ b/IntelFsp2WrapperPkg/Include/Library/FspWrapperMultiPhaseProcessLib.h @@ -9,24 +9,6 @@ #ifndef __FSP_WRAPPER_MULTI_PHASE_PROCESS_LIB_H__=0D #define __FSP_WRAPPER_MULTI_PHASE_PROCESS_LIB_H__=0D =0D -/**=0D - FSP Wrapper Platform MultiPhase Handler=0D -=0D - @param[in] FspHobListPtr - Pointer to FSP HobList (valid after FS= P-M completed)=0D - @param[in] ComponentIndex - FSP Component which executing MultiPha= se initialization.=0D - @param[in] PhaseIndex - Indicates current execution phase of F= SP MultiPhase initialization.=0D -=0D - @retval EFI_STATUS Always return EFI_SUCCESS=0D -=0D -**/=0D -VOID=0D -EFIAPI=0D -FspWrapperPlatformMultiPhaseHandler (=0D - IN OUT VOID **FspHobListPtr,=0D - IN UINT8 ComponentIndex,=0D - IN UINT32 PhaseIndex=0D - );=0D -=0D /**=0D FSP Wrapper Variable Request Handler=0D =0D diff --git a/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPha= seLib.h b/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseL= ib.h new file mode 100644 index 0000000000..79b5ba0ec3 --- /dev/null +++ b/IntelFsp2WrapperPkg/Include/Library/FspWrapperPlatformMultiPhaseLib.h @@ -0,0 +1,30 @@ +/** @file=0D + Provide FSP wrapper Platform MultiPhase handling functions.=0D +=0D + Copyright (c) 2022, Intel Corporation. All rights reserved.
=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#ifndef __FSP_WRAPPER_PLATFORM_MULTI_PHASE_PROCESS_LIB_H__=0D +#define __FSP_WRAPPER_PLATFORM_MULTI_PHASE_PROCESS_LIB_H__=0D +=0D +/**=0D + FSP Wrapper Platform MultiPhase Handler=0D +=0D + @param[in] FspHobListPtr - Pointer to FSP HobList (valid after FS= P-M completed)=0D + @param[in] ComponentIndex - FSP Component which executing MultiPha= se initialization.=0D + @param[in] PhaseIndex - Indicates current execution phase of F= SP MultiPhase initialization.=0D +=0D + @retval EFI_STATUS Always return EFI_SUCCESS=0D +=0D +**/=0D +VOID=0D +EFIAPI=0D +FspWrapperPlatformMultiPhaseHandler (=0D + IN OUT VOID **FspHobListPtr,=0D + IN UINT8 ComponentIndex,=0D + IN UINT32 PhaseIndex=0D + );=0D +=0D +#endif=0D diff --git a/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec b/IntelFsp2Wrapper= Pkg/IntelFsp2WrapperPkg.dec index 95ada0f7a1..922ccc063f 100644 --- a/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec +++ b/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec @@ -33,7 +33,7 @@ FspWrapperMultiPhaseProcessLib|Include/Library/FspWrapperMultiPhaseProce= ssLib.h=0D =0D ## @libraryclass Provide MultiPhase platform actions related functions= .=0D - FspWrapperPlatformMultiPhaseLib|Include/Library/FspWrapperMultiPhaseProc= essLib.h=0D + FspWrapperPlatformMultiPhaseLib|Include/Library/FspWrapperPlatformMultiP= haseLib.h=0D =0D =0D [Guids]=0D --=20 2.35.0.windows.1