From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw2.ami.com (atlmailgw2.ami.com [63.147.10.42]) by mx.groups.io with SMTP id smtpd.web08.3139.1623951632771034903 for ; Thu, 17 Jun 2021 10:40:33 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: ami.com, ip: 63.147.10.42, mailfrom: manickavasakamk@ami.com) X-AuditID: ac10606f-8edff70000006d35-04-60cb890e5f6f Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw2.ami.com (Symantec Messaging Gateway) with SMTP id 0A.89.27957.E098BC06; Thu, 17 Jun 2021 13:40:30 -0400 (EDT) Received: from MANIC-WIN10.us.megatrends.com (172.16.98.169) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.498.0; Thu, 17 Jun 2021 13:40:29 -0400 From: "manickavasakam karpagavinayagam" To: CC: , , , , , , , Subject: [edk2] [PATCH V2] MdePkg : Add IPMI Macro and Structure Defintions to resolve build errors Date: Thu, 17 Jun 2021 13:40:29 -0400 Message-ID: <20210617174029.11301-1-manickavasakamk@ami.com> X-Mailer: git-send-email 2.25.0.windows.1 MIME-Version: 1.0 Return-Path: manickavasakamk@ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRmVeSWpSXmKPExsWyRiBhgi5f5+kEg3PtRhbtE2azWSy6OZnJ on/FMVaL478+MDuweMz8H+2x/fsFRo/Fe14yBTBHNTDaJObl5ZcklqQqpKQWJ9sqBRRlliUm VyopZKbYKhkqKRTkJCan5qbmldgqJRYUpOalKNlxKWAAG6CyzDyF1Lzk/JTMvHRbJc9gf10L C1NLXUMlu5CMVIXMvLT8otzEksz8PIXk/LwSoOrUFKCoQkI3Z0bP2fssBbPFKm48vsvSwLhc uIuRk0NCwETi/+Y9zF2MXBxCAruYJPp65zCBJIQEtjFKLFpXBGKzCdhLbJ86mx3EFhGQkphy YCYTSAOzwClGiRc9W9hAEsICyRK3NrezgNgsAqoSNxf0gsV5BWwk3nWuZIbYpilxdeY1qLig xMmZT8DqmQW0JZYtfM0MYUtIHHzxAsjmADpCReLJMYcJjHyzkHTMQtIxC0nHAkbmVYxCiSU5 uYmZOenlRnqJuZl6yfm5mxgh0Za/g/HjR/NDjEwcjIcYJTiYlUR4dYtPJAjxpiRWVqUW5ccX leakFh9idAK6fyKzFDcoAIExEm9sYCAlCuMYmpiZmBuZG1qamBsbK4nzrnI/Gi8kkA6M2ezU 1ILUIpghTBycUg2MuWKvX3P8XBBUu3l5tfGfGUuPHPnjqX2ZxYrr8L5InT8S0vkfblT8a5ZK lngbO23fn+lKic/lqz77b7L/Gix+2VCrWPT6f2ffg3McHz69dF9h8bTrcafyYmNMX537tVGx l5P94+k79t3XRfkUOv5x/O3QKtipqnSrI1w37dZbE5HZIpHhqlqTlViKMxINtZiLihMBcsJr LssCAAA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain MdePkg : Add IPMI Macro and Structure Defintions to resolve build errors Build error reported for missing structures IPMI_SET_BOOT_OPTIONS_RESPONSE,= EFI_IPMI_MSG_GET_BMC_EXEC_RSP and macros EFI_FIRMWARE_GET_BMC_EXECUTION_CONTEXT EFI_FIRMWARE_BMC_IN_FULL_RUNTI= ME/EFI_FIRMWARE_BMC_IN_FORCED_UPDATE_MODE when using edk2-platforms\Features\Intel\OutOfBandManagement\IpmiFeaturePkg MdePkg : Rename IPMI Macro and Structure Defintions Rename the EFI_IPMI_MSG_GET_BMC_EXEC_RSPB, EFI_FIRMWARE_GET_BMC_EXECUTION_CONTEXT EFI_FIRMWARE_BMC_IN_FORCED_UPDATE_MODE to IPMI_MSG_GET_BMC_EXEC_RSPB,IPMI_GET_BMC_EXECUTION_CONTEXT IPMI_BMC_IN_FORCED_UPDATE_MODE Notes: V1 : Rename the EFI_IPMI_MSG_GET_BMC_EXEC_RSPB, EFI_FIRMWARE_GET_BMC_EXECUTION_CONTEXT EFI_FIRMWARE_BMC_IN_FORCED_UPDATE_MODE to IPMI_MSG_GET_BMC_EXEC_RSPB,IPMI_GET_BMC_EXECUTION_CONTEXT IPMI_BMC_IN_FORCED_UPDATE_MODE V2: Remove 0001-MdePkg-Add-IPMI-Macro-and-Structure-Defintions-to-re.patch --- .../IndustryStandard/IpmiNetFnChassis.h | 4 ++++ .../IndustryStandard/IpmiNetFnFirmware.h | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/IpmiNetFnChassis.h b/MdePkg/Inc= lude/IndustryStandard/IpmiNetFnChassis.h index 79db55523d..d7cdd3a865 100644 --- a/MdePkg/Include/IndustryStandard/IpmiNetFnChassis.h +++ b/MdePkg/Include/IndustryStandard/IpmiNetFnChassis.h @@ -186,6 +186,10 @@ typedef struct { UINT8 ParameterData[0];=0D= } IPMI_SET_BOOT_OPTIONS_REQUEST;=0D= =0D= +typedef struct {=0D= + UINT8 CompletionCode:8;=0D= +} IPMI_SET_BOOT_OPTIONS_RESPONSE;=0D= +=0D= //=0D= // Definitions for Get System Boot options command=0D= //=0D= diff --git a/MdePkg/Include/IndustryStandard/IpmiNetFnFirmware.h b/MdePkg/In= clude/IndustryStandard/IpmiNetFnFirmware.h index 2d892dbd5a..c4cbe2349b 100644 --- a/MdePkg/Include/IndustryStandard/IpmiNetFnFirmware.h +++ b/MdePkg/Include/IndustryStandard/IpmiNetFnFirmware.h @@ -17,4 +17,22 @@ // All Firmware commands and their structure definitions to follow here=0D= //=0D= =0D= +// ------------------------------------------------------------------------= ----------------=0D= +// Definitions for Get BMC Execution Context=0D= +// ------------------------------------------------------------------------= ----------------=0D= +#define IPMI_GET_BMC_EXECUTION_CONTEXT 0x23=0D= +=0D= +//=0D= +// Constants and Structure definitions for "Get Device ID" command to foll= ow here=0D= +//=0D= +typedef struct {=0D= + UINT8 CurrentExecutionContext;=0D= + UINT8 PartitionPointer;=0D= +} IPMI_MSG_GET_BMC_EXEC_RSP;=0D= +=0D= +//=0D= +// Current Execution Context responses=0D= +//=0D= +#define IPMI_BMC_IN_FORCED_UPDATE_MODE 0x11=0D= +=0D= #endif=0D= -- 2.25.0.windows.1 Please consider the environment before printing this email. The information contained in this message may be confidential and proprietar= y to American Megatrends (AMI). This communication is intended to be read o= nly by the individual or entity to whom it is addressed or by their designee= . If the reader of this message is not the intended recipient, you are on no= tice that any distribution of this message, in any form, is strictly prohibi= ted. Please promptly notify the sender by reply e-mail or by telephone at 7= 70-246-8600, and then delete or destroy all copies of the transmission.