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 C983A9410E8 for ; Wed, 18 Oct 2023 04:51:27 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nHmH95oXHN+KR8H3vyZc1qopRGOZkY/YIlqnBeVDiHE=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1697604686; v=1; b=LLAbLbqsBXgNVQWd4ONPTSgccwRjYRhV4CUhppvvnrAu/6LiEb1KGNSTXHeaVV2cb/f/Ltz2 kCh9Xr4c2EYGAx2NyThoYGfBYFw+YJIRKsIzGmu4wb917DV6YvqAFkGUwDIPEYyj28GyOBaAWxb Xo8I2suWHxpHaeaRPgL9FEvU= X-Received: by 127.0.0.2 with SMTP id yamgYY7687511xtzy1eUmwzT; Tue, 17 Oct 2023 21:51:26 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.46]) by mx.groups.io with SMTP id smtpd.web10.275392.1697604685530774894 for ; Tue, 17 Oct 2023 21:51:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KIq8884DKchphYBiULX9kSXVk4qjB9Z4fpMNd6qLU/W24FgXLATdreh5iQHT8RjoGuCH53EHub0SgkfnClOxXSJQiItM5HrcKc3wpfe4fCqBxquvdZekI5L0Q+98P9jcIxIChI1S94K3UliI1bej1tGYJ0KRw6AHmWDV6ZSRn8HHwgo2mBa6jD7KXXMB+go3S2gi6hLxzqh1NtJet39E+UXEmyupaXonCFyXdKWnwWnmjifKiR3J+jy8C3iWl/o/OLumiqbV/ftUYeD7/QXUNXjTqk5GPnH2/9wNKZqp7eEPC5yk1bWLbbMPCPiN70p8AgKzKpRK4lRhGBUtCufXsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hToHFlHgNkUFPPaGHlEuc6hkknclvPhXvOcGhegDsG0=; b=PTpxwZj+eloD4MeT53Eg4TNQK+DmmN8c9h3hJ1ueXOT/Y2b9OpoO0sO2zrsbiqXmjq+GJCeXUqptdWRxGYH3NxM2pD6FG0FBeVkg4R5wxRBZq8GMm4bN0fui524ugxJPNMpMMWRvfa93YVsAIXZ76p5KOOUvALOJhmseHk7HpZntAbBxEzEvLSuWakJ+tvJ2WaoXE0T3K6Y/FhX9VKMjJhuoTiJ+KCOtilihmJDoOucp9lRshCkYQpQbV1G75gtA7TRkyP+eyY164rwpXW49CB/jkwGVTsRT9m/hm2hwhHm1vWda0LdTXasbVm1zXGQajll29v3n8QSdsl8EO8wevg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by BY5PR12MB4100.namprd12.prod.outlook.com (2603:10b6:a03:200::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Wed, 18 Oct 2023 04:51:21 +0000 X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::345a:6816:7343:3e6b]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::345a:6816:7343:3e6b%6]) with mapi id 15.20.6907.021; Wed, 18 Oct 2023 04:51:21 +0000 From: "Chang, Abner via groups.io" To: "devel@edk2.groups.io" CC: "Attar, AbdulLateef (Abdul Lateef)" , Isaac Oram , Nickle Wang Subject: Re: [edk2-devel] [edk2-platforms][PATCH 1/2] ManageabilityPkg/Ipmi: Remove IpmiCommandLib.h from ManageabilityPkg Thread-Topic: [edk2-devel] [edk2-platforms][PATCH 1/2] ManageabilityPkg/Ipmi: Remove IpmiCommandLib.h from ManageabilityPkg Thread-Index: AQHZ+1MF2kcPTA9Ir0yAkbshGnGqMrBPBpJw Date: Wed, 18 Oct 2023 04:51:21 +0000 Message-ID: References: <178CB15F1160DDED.5378@groups.io> In-Reply-To: <178CB15F1160DDED.5378@groups.io> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=0f1dc331-f84e-4fe8-9756-3e11103956b7;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-10-18T04:50:26Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|BY5PR12MB4100:EE_ x-ms-office365-filtering-correlation-id: 6105f77f-6225-4cc4-7c74-08dbcf95dfa1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 5tMHixTLoGeYJFitX+QvFXwFHBVorxGsPcV+WAYwChodLe2UvOh5eIpDBjmwQUprXEYRgKeb651MvRMQXmqO1I6chdiXEokwRrKwfMY2nXysZZcM3Yn3rDF+m5BNfcncjBbHlpcKQi1Li+R+9pzhhxai6Hl+xMA3KYNVHR8vGY4gZCnbBEBaXIxjG3FUgv8bdIhaO9G06vtzJiYYlofD3fTmpo0oHnSHpkAN3p5sr8ZCpECcJbrHWmZEUb7L9tulK/RyPBDmAUmRto+ZukiCGZQRCLmxiy8t4SYMKvd0pRt57E+2XTxqa0Ill/Im5qk0/10i49pj2A5QLfNgClqAVP4o97C2LnNoDtQ598Isujcfd2P4Tt5ktfSxTxGUhHT6nMFoCLbZyfeDed08755TIaS8vqwdpCbbhggkP0VMP5ttXL6nG7nOPaH+H92MO294OZS1uubHWyqPtjWotCW2FIXXXen2rYSogAS7jahFMHmBqeuAsyqZGWfiJrVnnvVsw1Zgfhl0eb3CFmaYcMMoyIZRXC0EMrMge2HKbp1ZhD2EKoTP9+geRzJD9i6himfH3jFlrC3K23wGcK0q81CZXn6ignkJ9G7pMCYnux1hG+o= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ENaDinzncbrck7H5+i/IN6TZFNiqeLovH+rNuIbs4H2WdKMjaQmsRc0YoLhe?= =?us-ascii?Q?AlMob1Fv0buuToHaiZt/+j1zHq4dmH03pdeCtTgHDzgTsANPJsGZTTVnmryR?= =?us-ascii?Q?oCjKjQs10g5gpO08Rf5Etr+kzKjjBipiqwxSDJVsA68rLkRlmq1wKvAeJ2St?= =?us-ascii?Q?GmW5B19Jku2WTEi4qjACieGHWLYL65JMxjJROiVkgJ+3X61DTJTVk+EWQtMx?= =?us-ascii?Q?rm+EH2vNIdxg6wcvJ6jfB1i/nGGswfAwe6PJaOxjk4HI6fJ31HSc0t1DXpdL?= =?us-ascii?Q?OBaJk6aHnyGX7vYBUdXUlQLg9I46M7OhkOrOK0WdQkB0YXwNOY2h1ql4SwZg?= =?us-ascii?Q?k6+kNm67gjU2j6lUSybcm4QLOw97QrYzDEB85/1V2Ou4fS5nHLY7/DmgZnyI?= =?us-ascii?Q?QGa/LRD+mGzmd8VXg+IMCUgrA3u0yb09RKDF6+U6Bdeu8/3d5toFBD/0vmxY?= =?us-ascii?Q?NLONtbzYcJXjTBtLwDW5H5QAMRoc2Vyu/Ka9Mst0UwJJakAeIlQBuyopOsdG?= =?us-ascii?Q?PxH8h2OhHIkoZg4nIkn9cVjOoDd21qppboqFmK0ZMXJ/0OU+5Gs3w9TQxh1K?= =?us-ascii?Q?d8aVuIQClHICQALHbszICGcqQTC0Df/zxrX8K6N17UF23YvL/JKuETiF8lvj?= =?us-ascii?Q?iMMvbZNdd+yHrKsKNr9mbfR9RZd/xvCb/R0DKiseTcjihgiWyUlfesZGBDt9?= =?us-ascii?Q?8AdAH8vfLl//hI+IWF1GW9G/SQXLa0l+Hn+Dd6PgIVL1nRpMu2+MsKksTS6Y?= =?us-ascii?Q?rsd8yZsHHC0IX/eya7EgR8YEjpP9g7IaSoEaqfyy7QSDG2IVGoMVNYVap0yF?= =?us-ascii?Q?fg40j/KtOSfH7oVajhUuYDaTT6uvBcUnYYyIszW4w7VtKMElYuKGdWx9WszX?= =?us-ascii?Q?9YjpdQrKSC/FFeeBtaM4tXccDN70KqZnjbVlZTtiYWl6gUD0+oxLoJ5ihoHM?= =?us-ascii?Q?AAZD4Y19lWJ4tq03XMIyV2ns0MD6ZERVlBX9BAWXRqy6Kjj15Y8Qz5UXDnmm?= =?us-ascii?Q?hvaTRk7gygeqPHoUxtjfsX9utBbdvABsVSDHlmzvRmEdkNvyext9VTgi534j?= =?us-ascii?Q?mp+NbwHFye/kcgAZOFARNNui0x9PkorF+xxRSPwH7cmhrP8O/RLncIIUcV41?= =?us-ascii?Q?bNKUVFNWCj6DVh7eUeZKxfa1gbZh4BFG6x/0I08Ke9ZZqJH7qAlvBbdrvO9q?= =?us-ascii?Q?DO/kMU90v4nF3sB824NWiJsBGJlmbmJ4P6jFPPtDQPC0IRJgARaEK5HTac8D?= =?us-ascii?Q?EZknViPuJkbNjTrV9MWLYnMW0DdAPYcEBjkkosFmtlR6VOHt4wXhFRkvu+q3?= =?us-ascii?Q?y5FT8gkhsEPbxZpjwweofLm9v+OrrN0AbtppufQQkV4pcwyxKuGVaGCtToYA?= =?us-ascii?Q?+vZrqb7pdl285Hwu2HvLHcjDhtXp5JorEJwRdz8SylCeMenGAnOm5DEk1ylc?= =?us-ascii?Q?YDN3ALikpTM+YyEpmbsM7JZdMQt/yP5QoLzvi22uQQpeIdG41wYilG+kUE5b?= =?us-ascii?Q?Sn5ZSztqIAZ8/Wgm0VftraAyJKZXU6jqNOY8hjMMYMvEVltgvrhSY7ms6em3?= =?us-ascii?Q?iFJvxn/EYovZzFVxdkyyX9VHGSx0FHpgmopU3DQl?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6105f77f-6225-4cc4-7c74-08dbcf95dfa1 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2023 04:51:21.1591 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: m2Kz67bMwzWLVbe41JT9YkPxQXg+joRHYm04oAFXHhExCf0Om4oGNS8u91Vn+bnrFEA448mcI34vsFvntMtd3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4100 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,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: B7weKsJ0LWrXqisKsJL6lPNyx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=LLAbLbqs; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io [AMD Official Use Only - General] Hi Reviewers, Please help to review this patch. Thanks Abner > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner via groups.io > Sent: Tuesday, October 10, 2023 4:22 PM > To: devel@edk2.groups.io > Cc: Attar, AbdulLateef (Abdul Lateef) ; Isaac > Oram ; Nickle Wang > Subject: [edk2-devel] [edk2-platforms][PATCH 1/2] ManageabilityPkg/Ipmi: > Remove IpmiCommandLib.h from ManageabilityPkg > > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. > > > From: Abner Chang > > Remove duplicate IpmiCommandLib.h and use the one > under MdeModulePKg instead. > > Signed-off-by: Abner Chang > Cc: Abdul Lateef Attar > Cc: Isaac Oram > Cc: Nickle Wang > --- > .../Universal/IpmiBmcElog/BmcElog.inf | 1 + > .../Universal/IpmiFrb/FrbPei.inf | 1 + > .../Universal/IpmiFru/IpmiFru.inf | 1 + > .../Universal/IpmiOsWdt/OsWdt.inf | 1 + > .../Universal/IpmiSolStatus/SolStatus.inf | 1 + > .../Include/Library/IpmiCommandLib.h | 620 ------------------ > 6 files changed, 5 insertions(+), 620 deletions(-) > delete mode 100644 > Features/ManageabilityPkg/Include/Library/IpmiCommandLib.h > > diff --git a/Features/ManageabilityPkg/Universal/IpmiBmcElog/BmcElog.inf > b/Features/ManageabilityPkg/Universal/IpmiBmcElog/BmcElog.inf > index 4c28862fe5..e624f9c8fa 100644 > --- a/Features/ManageabilityPkg/Universal/IpmiBmcElog/BmcElog.inf > +++ b/Features/ManageabilityPkg/Universal/IpmiBmcElog/BmcElog.inf > @@ -21,6 +21,7 @@ > > [Packages] > ManageabilityPkg/ManageabilityPkg.dec > + MdeModulePkg/MdeModulePkg.dec > MdePkg/MdePkg.dec > > [LibraryClasses] > diff --git a/Features/ManageabilityPkg/Universal/IpmiFrb/FrbPei.inf > b/Features/ManageabilityPkg/Universal/IpmiFrb/FrbPei.inf > index 89d633f32e..74d9f5d57e 100644 > --- a/Features/ManageabilityPkg/Universal/IpmiFrb/FrbPei.inf > +++ b/Features/ManageabilityPkg/Universal/IpmiFrb/FrbPei.inf > @@ -20,6 +20,7 @@ > > [Packages] > ManageabilityPkg/ManageabilityPkg.dec > + MdeModulePkg/MdeModulePkg.dec > MdePkg/MdePkg.dec > > [LibraryClasses] > diff --git a/Features/ManageabilityPkg/Universal/IpmiFru/IpmiFru.inf > b/Features/ManageabilityPkg/Universal/IpmiFru/IpmiFru.inf > index ddef310309..2eaad95417 100644 > --- a/Features/ManageabilityPkg/Universal/IpmiFru/IpmiFru.inf > +++ b/Features/ManageabilityPkg/Universal/IpmiFru/IpmiFru.inf > @@ -21,6 +21,7 @@ > > [Packages] > ManageabilityPkg/ManageabilityPkg.dec > + MdeModulePkg/MdeModulePkg.dec > MdePkg/MdePkg.dec > > [LibraryClasses] > diff --git a/Features/ManageabilityPkg/Universal/IpmiOsWdt/OsWdt.inf > b/Features/ManageabilityPkg/Universal/IpmiOsWdt/OsWdt.inf > index b5af3b25e1..b7720ee4d3 100644 > --- a/Features/ManageabilityPkg/Universal/IpmiOsWdt/OsWdt.inf > +++ b/Features/ManageabilityPkg/Universal/IpmiOsWdt/OsWdt.inf > @@ -20,6 +20,7 @@ > > [Packages] > ManageabilityPkg/ManageabilityPkg.dec > + MdeModulePkg/MdeModulePkg.dec > MdePkg/MdePkg.dec > > [LibraryClasses] > diff --git a/Features/ManageabilityPkg/Universal/IpmiSolStatus/SolStatus.= inf > b/Features/ManageabilityPkg/Universal/IpmiSolStatus/SolStatus.inf > index 1d7cbf1a08..0525ad7d76 100644 > --- a/Features/ManageabilityPkg/Universal/IpmiSolStatus/SolStatus.inf > +++ b/Features/ManageabilityPkg/Universal/IpmiSolStatus/SolStatus.inf > @@ -21,6 +21,7 @@ > > [Packages] > ManageabilityPkg/ManageabilityPkg.dec > + MdeModulePkg/MdeModulePkg.dec > MdePkg/MdePkg.dec > > [Pcd] > diff --git a/Features/ManageabilityPkg/Include/Library/IpmiCommandLib.h > b/Features/ManageabilityPkg/Include/Library/IpmiCommandLib.h > deleted file mode 100644 > index 42d4f69359..0000000000 > --- a/Features/ManageabilityPkg/Include/Library/IpmiCommandLib.h > +++ /dev/null > @@ -1,620 +0,0 @@ > -/** @file > - This library abstract how to send/receive IPMI command. > - > -Copyright (c) 2018-2021, Intel Corporation. All rights reserved.
> -Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
> - > -SPDX-License-Identifier: BSD-2-Clause-Patent > - > -**/ > - > -#ifndef IPMI_COMMAND_LIB_H_ > -#define IPMI_COMMAND_LIB_H_ > - > -#include > -#include > - > -/// > -/// Functions for IPMI NetFnApp commands > -/// > - > -/** > - This function is used to retrieve device ID. > - > - @param [out] DeviceId The pointer to receive > IPMI_GET_DEVICE_ID_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetDeviceId ( > - OUT IPMI_GET_DEVICE_ID_RESPONSE *DeviceId > - ); > - > -/** > - This function returns device self test results > - > - @param [out] SelfTestResult The pointer to receive > IPMI_SELF_TEST_RESULT_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSelfTestResult ( > - OUT IPMI_SELF_TEST_RESULT_RESPONSE *SelfTestResult > - ); > - > -/** > - This function is used for starting and restarting the Watchdog > - Timer from the initial countdown value that was specified in > - the Set Watchdog Timer command the watchdog timer. > - > - @param [out] CompletionCode IPMI completetion code, refer to Ipmi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiResetWatchdogTimer ( > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function is used for initializing and configuring > - the watchdog timer. > - > - @param [in] SetWatchdogTimer Pointer to receive > IPMI_SET_WATCHDOG_TIMER_REQUEST. > - @param [out] CompletionCode IPMI completetion code, refer to Ipmi.= h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetWatchdogTimer ( > - IN IPMI_SET_WATCHDOG_TIMER_REQUEST *SetWatchdogTimer, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function retrieves the current settings and present > - countdown of the watchdog timer. > - > - @param [out] GetWatchdogTimer Pointer to receive > IPMI_GET_WATCHDOG_TIMER_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetWatchdogTimer ( > - OUT IPMI_GET_WATCHDOG_TIMER_RESPONSE *GetWatchdogTimer > - ); > - > -/** > - This function enables message reception into Message Buffers, > - and any interrupt associated with that buffer getting full. > - > - @param [in] SetBmcGlobalEnables Pointer receive to > IPMI_SET_BMC_GLOBAL_ENABLES_REQUEST. > - @param [out] CompletionCode IPMI completetion code, refer to Ip= mi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetBmcGlobalEnables ( > - IN IPMI_SET_BMC_GLOBAL_ENABLES_REQUEST *SetBmcGlobalEnables, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function retrieves the present setting of the Global Enables > - > - @param [out] GetBmcGlobalEnables Pointer to receive > IPMI_GET_BMC_GLOBAL_ENABLES_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetBmcGlobalEnables ( > - OUT IPMI_GET_BMC_GLOBAL_ENABLES_RESPONSE *GetBmcGlobalEnables > - ); > - > -/** > - This function is used to flush unread data from the Receive > - Message Queue or Event Message Buffer > - > - @param [in] ClearMessageFlagsRequest > IPMI_CLEAR_MESSAGE_FLAGS_REQUEST > - @param [out] CompletionCode IPMI completetion code, refer t= o > Ipmi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiClearMessageFlags ( > - IN IPMI_CLEAR_MESSAGE_FLAGS_REQUEST *ClearMessageFlagsRequest, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function is used to retrieve the present message available states= . > - > - @param [out] GetMessageFlagsResponse Pointer to receive > IPMI_GET_MESSAGE_FLAGS_RESPONSE > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetMessageFlags ( > - OUT IPMI_GET_MESSAGE_FLAGS_RESPONSE *GetMessageFlagsResponse > - ); > - > -/** > - This function is used to get data from the Receive Message Queue. > - > - @param [out] GetMessageResponse Pointer to receive > IPMI_GET_MESSAGE_RESPONSE. > - @param [in, out] GetMessageResponseSize When in, which is the expect= ed > size of > - response. When out, which is= the actual > - size returned. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetMessage ( > - OUT IPMI_GET_MESSAGE_RESPONSE *GetMessageResponse, > - IN OUT UINT32 *GetMessageResponseSize > - ); > - > -/** > - This function is used for bridging IPMI messages between channels, > - and between the system management software (SMS) and a given channel > - > - @param [in] SendMessageRequest Pointer to > IPMI_SEND_MESSAGE_REQUEST. > - @param [in] SendMessageRequestSize Size of entire > SendMessageRequestSize. > - @param [out] SendMessageResponse Pointer to receive > IPMI_SEND_MESSAGE_RESPONSE. > - @param [in] SendMessageResponseSize When in, which is the expected > size of > - response. When out, which is th= e actual > - size returned. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSendMessage ( > - IN IPMI_SEND_MESSAGE_REQUEST *SendMessageRequest, > - IN UINT32 SendMessageRequestSize, > - OUT IPMI_SEND_MESSAGE_RESPONSE *SendMessageResponse, > - IN OUT UINT32 *SendMessageResponseSize > - ); > - > -/** > - This function gets the system UUID. > - > - @param [out] SystemGuid The pointer to retrieve system UUID. > - > - @retval EFI_SUCCESS UUID is returned. > - @retval EFI_INVALID_PARAMETER SystemGuid is a NULL pointer. > - @retval Others See return value of IpmiSubmitComman= d () > function. > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSystemUuid ( > - OUT EFI_GUID *SystemGuid > - ); > - > -/** > - This function gets the channel information. > - > - @param [in] GetChannelInfoRequest The get channel information > request. > - @param [out] GetChannelInfoResponse The get channel information > response. > - @param [out] GetChannelInfoResponseSize When input, the expected siz= e > of response. > - When output, the exact size = of the returned > - response. > - > - @retval EFI_SUCCESS Get channel information successfully. > - @retval EFI_INVALID_PARAMETER One of the given input parameters is > invalid. > - @retval Others See return value of IpmiSubmitCommand (= ) > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetChannelInfo ( > - IN IPMI_GET_CHANNEL_INFO_REQUEST *GetChannelInfoRequest, > - OUT IPMI_GET_CHANNEL_INFO_RESPONSE *GetChannelInfoResponse, > - OUT UINT32 *GetChannelInfoResponseSize > - ); > - > -/// > -/// Functions for IPMI NetFnTransport commands. > -/// > - > -/** > - This function sends command to BMC to notify a remote application > - that a SOL payload is activating on another channel. > - > - @param [in] SolActivatingRequest Pointer to > IPMI_SOL_ACTIVATING_REQUEST. > - @param [out] CompletionCode IPMI completetion code, refer to I= pmi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSolActivating ( > - IN IPMI_SOL_ACTIVATING_REQUEST *SolActivatingRequest, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function is used to set parameters such as the network addressing > - information required for SOL payload operation. > - > - @param [in] SetConfigurationParametersRequest Pointer to > IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST. > - @param [in] SetConfigurationParametersRequestSize Size of entire > SetConfigurationParametersRequestSize. > - @param [out] CompletionCode IPMI completetion = code, refer > to Ipmi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetSolConfigurationParameters ( > - IN IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST > *SetConfigurationParametersRequest, > - IN UINT32 SetConfigurationPar= ametersRequestSize, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function is used to retrieve the configuration parameters from th= e > - Set SOL Configuration Parameters. > - > - @param [in] GetConfigurationParametersRequest Pointer to > IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST. > - @param [out] GetConfigurationParametersResponse Pointer to r= eceive > IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE. > - @param [in, out] GetConfigurationParametersResponseSize When in, > which is the expected size of > - response. Wh= en out, which is the actual > - size returne= d. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSolConfigurationParameters ( > - IN IPMI_GET_SOL_CONFIGURATION_PARAMETERS_REQUEST > *GetConfigurationParametersRequest, > - OUT IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE > *GetConfigurationParametersResponse, > - IN OUT UINT32 > *GetConfigurationParametersResponseSize > - ); > - > -/** > - This function gets the LAN configuration parameter. > - > - @param[in] GetLanConfigurationParametersRequest Request data > - @param[out] GetLanConfigurationParametersResponse Response data > - @param[in,out] GetLanConfigurationParametersSize When input, the > expected size of response data. > - When out, the e= xact size of response data. > - > - @retval EFI_SUCCESS Lan configuration parameter is returned= in the > response. > - @retval EFI_INVALID_PARAMETER One of the given input parameters is > invalid. > - @retval Others Other errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetLanConfigurationParameters ( > - IN IPMI_GET_LAN_CONFIGURATION_PARAMETERS_REQUEST > *GetLanConfigurationParametersRequest, > - OUT IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE > *GetLanConfigurationParametersResponse, > - IN OUT UINT32 *GetLanConfigur= ationParametersSize > - ); > - > -/// > -/// Functions for IPMI NetFnChasis commands > -/// > - > -/** > - This function returns information about which main chassis management > functions are > - present and what addresses are used to access those functions. > - > - @param [out] GetChassisCapabilitiesResponse Pointer to > IPMI_GET_CHASSIS_CAPABILITIES_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetChassisCapabilities ( > - OUT IPMI_GET_CHASSIS_CAPABILITIES_RESPONSE > *GetChassisCapabilitiesResponse > - ); > - > -/** > - This function gets information regarding the high-level status of the= system > - chassis and main power subsystem. > - > - @param [out] GetChassisStatusResponse Pointer to > IPMI_GET_CHASSIS_STATUS_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetChassisStatus ( > - OUT IPMI_GET_CHASSIS_STATUS_RESPONSE *GetChassisStatusResponse > - ); > - > -/** > - This function sends command to control power up, power down, and reset= . > - > - @param [in] ChassisControlRequest Pointer to > IPMI_CHASSIS_CONTROL_REQUEST. > - @param [out] CompletionCode IPMI completetion code, refer to > Ipmi.h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiChassisControl ( > - IN IPMI_CHASSIS_CONTROL_REQUEST *ChassisControlRequest, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function is used to configure the power restore policy. > - > - @param [in] ChassisControlRequest Pointer to > IPMI_SET_POWER_RESTORE_POLICY_REQUEST. > - @param [out] ChassisControlResponse Pointer to > IPMI_SET_POWER_RESTORE_POLICY_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetPowerRestorePolicy ( > - IN IPMI_SET_POWER_RESTORE_POLICY_REQUEST > *ChassisControlRequest, > - OUT IPMI_SET_POWER_RESTORE_POLICY_RESPONSE > *ChassisControlResponse > - ); > - > -/** > - This function is used to set parameters that direct the system boot > - following a system power up or reset. > - > - @param [in] BootOptionsRequest Pointer to > IPMI_SET_BOOT_OPTIONS_REQUEST. > - @param [out] BootOptionsResponse Pointer to > IPMI_SET_BOOT_OPTIONS_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetSystemBootOptions ( > - IN IPMI_SET_BOOT_OPTIONS_REQUEST *BootOptionsRequest, > - OUT IPMI_SET_BOOT_OPTIONS_RESPONSE *BootOptionsResponse > - ); > - > -/** > - This function is used to retrieve the boot options set by the > - Set System Boot Options command. > - > - @param [in] BootOptionsRequest Pointer to > IPMI_GET_BOOT_OPTIONS_REQUEST. > - @param [out] BootOptionsResponse Pointer to > IPMI_GET_BOOT_OPTIONS_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSystemBootOptions ( > - IN IPMI_GET_BOOT_OPTIONS_REQUEST *BootOptionsRequest, > - OUT IPMI_GET_BOOT_OPTIONS_RESPONSE *BootOptionsResponse > - ); > - > -/// > -/// Functions for IPMI NetFnStorage commands > -/// > - > -/** > - This function is used to retrieve FRU Inventory Area > - > - @param [in] GetFruInventoryAreaInfoRequest Pointer to > IPMI_GET_FRU_INVENTORY_AREA_INFO_REQUEST. > - @param [out] GetFruInventoryAreaInfoResponse Pointer to > IPMI_GET_FRU_INVENTORY_AREA_INFO_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetFruInventoryAreaInfo ( > - IN IPMI_GET_FRU_INVENTORY_AREA_INFO_REQUEST > *GetFruInventoryAreaInfoRequest, > - OUT IPMI_GET_FRU_INVENTORY_AREA_INFO_RESPONSE > *GetFruInventoryAreaInfoResponse > - ); > - > -/** > - This function returns specified data from the FRU Inventory Info area. > - > - @param [in] ReadFruDataRequest Pointer to > IPMI_READ_FRU_DATA_REQUEST. > - @param [out] ReadFruDataResponse Pointer to > IPMI_READ_FRU_DATA_RESPONSE. > - @param [in, out] ReadFruDataResponseSize Returns the size of > ReadFruDataResponse. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiReadFruData ( > - IN IPMI_READ_FRU_DATA_REQUEST *ReadFruDataRequest, > - OUT IPMI_READ_FRU_DATA_RESPONSE *ReadFruDataResponse, > - IN OUT UINT32 *ReadFruDataResponseSize > - ); > - > -/** > - This function writes specified data from the FRU Inventory Info area. > - > - @param [in] WriteFruDataRequest Pointer to > IPMI_WRITE_FRU_DATA_REQUEST. > - @param [in] WriteFruDataRequestSize Size of WriteFruDataRequest. > - @param [out] WriteFruDataResponse Pointer to receive > IPMI_WRITE_FRU_DATA_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiWriteFruData ( > - IN IPMI_WRITE_FRU_DATA_REQUEST *WriteFruDataRequest, > - IN UINT32 WriteFruDataRequestSize, > - OUT IPMI_WRITE_FRU_DATA_RESPONSE *WriteFruDataResponse > - ); > - > -/** > - This function returns the number of entries in the SEL > - > - @param [out] GetSelInfoResponse Pointer to receive > IPMI_GET_SEL_INFO_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSelInfo ( > - OUT IPMI_GET_SEL_INFO_RESPONSE *GetSelInfoResponse > - ); > - > -/** > - This function retrieves entries from the SEL > - > - @param [in] GetSelEntryRequest Pointer to > IPMI_GET_SEL_ENTRY_REQUEST. > - @param [out] GetSelEntryResponse Pointer to receive > IPMI_GET_SEL_ENTRY_RESPONSE. > - @param [in] GetSelEntryResponseSize Size of entire GetSelEntryRespo= nse. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSelEntry ( > - IN IPMI_GET_SEL_ENTRY_REQUEST *GetSelEntryRequest, > - OUT IPMI_GET_SEL_ENTRY_RESPONSE *GetSelEntryResponse, > - IN OUT UINT32 *GetSelEntryResponseSize > - ); > - > -/** > - This function adds an entry in the SEL > - > - @param [in] AddSelEntryRequest Pointer to > IPMI_ADD_SEL_ENTRY_REQUEST. > - @param [out] AddSelEntryResponse Pointer to receive > IPMI_ADD_SEL_ENTRY_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiAddSelEntry ( > - IN IPMI_ADD_SEL_ENTRY_REQUEST *AddSelEntryRequest, > - OUT IPMI_ADD_SEL_ENTRY_RESPONSE *AddSelEntryResponse > - ); > - > -/** > - This function adds SEL Entry command that allows the record to be > incrementally > - added to the SEL. > - > - @param [in] PartialAddSelEntryRequest Pointer to > IPMI_PARTIAL_ADD_SEL_ENTRY_REQUEST. > - @param [in] PartialAddSelEntryRequestSize Size of entire > PartialAddSelEntryRequest. > - @param [out] PartialAddSelEntryResponse Pointer to receive > IPMI_PARTIAL_ADD_SEL_ENTRY_RESPONSE. > - > - @retval EFI_STATUS See return value of IpmiSubmitCommand () function= . > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiPartialAddSelEntry ( > - IN IPMI_PARTIAL_ADD_SEL_ENTRY_REQUEST *PartialAddSelEntryRequest, > - IN UINT32 PartialAddSelEntryRequestSize= , > - OUT IPMI_PARTIAL_ADD_SEL_ENTRY_RESPONSE > *PartialAddSelEntryResponse > - ); > - > -/** > - This function erases all contents of the System Event Log. > - > - @param [in] ClearSelRequest Pointer to IPMI_CLEAR_SEL_REQUEST. > - @param [out] ClearSelResponse Pointer to receive > IPMI_CLEAR_SEL_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiClearSel ( > - IN IPMI_CLEAR_SEL_REQUEST *ClearSelRequest, > - OUT IPMI_CLEAR_SEL_RESPONSE *ClearSelResponse > - ); > - > -/** > - This function returns the time from the SEL Device. > - > - @param [out] GetSelTimeResponse Pointer to > IPMI_GET_SEL_TIME_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSelTime ( > - OUT IPMI_GET_SEL_TIME_RESPONSE *GetSelTimeResponse > - ); > - > -/** > - This function set the time in the SEL Device. > - > - @param [in] SetSelTimeRequest Pointer to IPMI_SET_SEL_TIME_REQUEST. > - @param [out] CompletionCode IPMI completetion code, refer to Ipmi= .h. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiSetSelTime ( > - IN IPMI_SET_SEL_TIME_REQUEST *SetSelTimeRequest, > - OUT UINT8 *CompletionCode > - ); > - > -/** > - This function returns the SDR command version for the SDR Repository. > - > - @param [out] ClearSelResponse Pointer to receive > IPMI_GET_SDR_REPOSITORY_INFO_RESPONSE. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSdrRepositoryInfo ( > - OUT IPMI_GET_SDR_REPOSITORY_INFO_RESPONSE > *GetSdrRepositoryInfoResp > - ); > - > -/** > - This function returns the sensor record specified by Record ID. > - > - @param [in] GetSdrRequest Pointer to IPMI_GET_SDR_REQUEST. > - @param [out] GetSdrResponse Pointer to receive > IPMI_GET_SDR_RESPONSE. > - @param [in, out] GetSdrResponseSize Size of entire GetSdrResponse. > - > - @retval EFI_STATUS See the return values of IpmiSubmitCommand () > function. > - > -**/ > -EFI_STATUS > -EFIAPI > -IpmiGetSdr ( > - IN IPMI_GET_SDR_REQUEST *GetSdrRequest, > - OUT IPMI_GET_SDR_RESPONSE *GetSdrResponse, > - IN OUT UINT32 *GetSdrResponseSize > - ); > - > -#endif // IPMI_COMMAND_LIB_H_ > -- > 2.37.1.windows.1 > > > >=20 > -=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 (#109706): https://edk2.groups.io/g/devel/message/109706 Mute This Topic: https://groups.io/mt/101870850/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-