From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.13080.1625755299490668831 for ; Thu, 08 Jul 2021 07:41:39 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: chasel.chiu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="209332715" X-IronPort-AV: E=Sophos;i="5.84,224,1620716400"; d="scan'208";a="209332715" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 07:41:39 -0700 X-IronPort-AV: E=Sophos;i="5.84,224,1620716400"; d="scan'208";a="498448942" Received: from cchiu4-mobl.gar.corp.intel.com ([10.252.184.216]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 07:41:37 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Sai Chaganty , Liming Gao , Isaac Oram Subject: [edk2-platforms: PATCH 1/2] IpmiFeaturePkg: Fail to build this package. Date: Thu, 8 Jul 2021 22:40:55 +0800 Message-Id: <20210708144056.1740-2-chasel.chiu@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20210708144056.1740-1-chasel.chiu@intel.com> References: <20210708144056.1740-1-chasel.chiu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3484 Fixed the build failure of this package. Cc: Nate DeSimone Cc: Sai Chaganty Cc: Liming Gao Cc: Isaac Oram Signed-off-by: Chasel Chiu --- Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Pei/PeiGener= icIpmi.inf | 1 + Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/IpmiFeature.dsc = | 11 +++++++++++ Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/ServerManagement= .h | 17 +++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/= Pei/PeiGenericIpmi.inf b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/= GenericIpmi/Pei/PeiGenericIpmi.inf index 0ef2c18116..bd995ef25f 100644 --- a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Pei/Pei= GenericIpmi.inf +++ b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/GenericIpmi/Pei/Pei= GenericIpmi.inf @@ -42,6 +42,7 @@ DebugLib=0D IoLib=0D TimerLib=0D + ReportStatusCodeLib=0D =0D [Guids]=0D =0D diff --git a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Ipmi= Feature.dsc b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Ipm= iFeature.dsc index a1fcefad70..05a7d4f0af 100644 --- a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/IpmiFeature= .dsc +++ b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/IpmiFeature= .dsc @@ -59,6 +59,12 @@ PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf=0D PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf=0D PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/= PeiServicesTablePointerLibIdt.inf=0D + ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiRepor= tStatusCodeLib.inf=0D +=0D + #####################################=0D + # IPMI Feature Package=0D + #####################################=0D + IpmiBaseLib|OutOfBandManagement/IpmiFeaturePkg/Library/PeiIpmiBaseLib/Pe= iIpmiBaseLib.inf=0D =0D [LibraryClasses.common.DXE_DRIVER,LibraryClasses.common.UEFI_DRIVER]=0D #######################################=0D @@ -72,6 +78,11 @@ UefiLib|MdePkg/Library/UefiLib/UefiLib.inf=0D UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/U= efiRuntimeServicesTableLib.inf=0D =0D + #####################################=0D + # IPMI Feature Package=0D + #####################################=0D + IpmiBaseLib|OutOfBandManagement/IpmiFeaturePkg/Library/IpmiBaseLib/IpmiB= aseLib.inf=0D +=0D ##########################################################################= ######=0D #=0D # Component section - list of all components that need built for this feat= ure.=0D diff --git a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Serv= erManagement.h b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/= ServerManagement.h index 244b86e91a..7591f33aba 100644 --- a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/ServerManag= ement.h +++ b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/ServerManag= ement.h @@ -149,6 +149,15 @@ typedef enum { #define UPPER_NON_RECOVER_GOING_LOW 0x400=0D #define UPPER_NON_RECOVER_GOING_HI 0x800=0D =0D +//=0D +// Definitions for Get BMC Execution Context=0D +//=0D +#define EFI_FIRMWARE_GET_BMC_EXECUTION_CONTEXT 0x23=0D +//=0D +// Current Execution Context responses=0D +//=0D +#define EFI_FIRMWARE_BMC_IN_FORCED_UPDATE_MODE 0x11=0D +=0D //=0D // Server Management COM Addressing types=0D //=0D @@ -318,6 +327,14 @@ typedef struct { UINT16 IoBasePort;=0D } IPMI_HOB_DATA;=0D =0D +//=0D +// Constants and Structure definitions for "Get Device ID" command to fol= low here=0D +//=0D +typedef struct {=0D + UINT8 CurrentExecutionContext;=0D + UINT8 PartitionPointer;=0D +} EFI_IPMI_MSG_GET_BMC_EXEC_RSP;=0D +=0D //=0D // COM Layer Callback=0D //=0D --=20 2.28.0.windows.1