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 6E719AC0E84 for ; Tue, 10 Oct 2023 08:23:03 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+nfPZKI+V5TMRG5T+Xb1jTu8PVeXvm3TV3W37VQ1Zfg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF: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:Content-Type; s=20140610; t=1696926182; v=1; b=hGdJaNeK5qtrt+qusY9IA7jZMb24EXAH+yVX1tJ/o8TWFOye2HJJtPC9zraMXAUZoCfwHtqW SoJS8oiXSJ7DvcrtqNfq/C9SdOq9nEKTDdMsb58YpQUqkenMfN8dHsvu/B1YXAGCetXhg47MftV EwnFe/w7A1LR0ZGZ80odMwf0= X-Received: by 127.0.0.2 with SMTP id tIBZYY7687511xiKf2md7Qp2; Tue, 10 Oct 2023 01:23:02 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.44]) by mx.groups.io with SMTP id smtpd.web11.86077.1696926181160331228 for ; Tue, 10 Oct 2023 01:23:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W2gtCDQ6+j5SDMJxSNir7HaqO/lNwqleR7YrV03M4nRI9kq0FAXLsS38v9IPtxxfd3sWI20bpTBL5mThcGF95vH/Ny8tYRH5WHwZNp4ymsCkTL/BFFXo+q/slPgglP0B+RuxPO5ILK+Rt227PJ+in4pcQyKJ8f6PQdKmVKBbZf1KIwHib+KbwS8QEsiLTDxRBLbwUC+QwZY7olafr4X6DqCNeUOpRssgBtIP4x15bIAfUUgFHnMlTq/VmJ8l8Jb1o4UG6hm4oHmGHYfHCDrI1z7IPfWycfTuk2QTvaSe4gS6A/x1owiv27qb19TgvhjVPq367QAOoxO+csw/owOGTg== 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=3G8M2QhmK36YCoRq4o19eBvgklf6eg4EUTeHE5q8xbM=; b=NUYuB87Tyla1v9AFFD5vEVPzbzVfT2ww5ikqHnZv4bue9giVe52fxYSQALNn0vLVWEo1rwEkJNhgJ9lg5XBsPluCK75aBOZogJiKqkqHUuaAnnBizaXKGPFR/BuXH1fUgMc98irRlPdEZ9K5tL2Wt+3p86F3ba1X1YfYmxJ25ivkPhxNnQsxjtHcN+Jy+PcqJM66uYixEwckss6WUyx3cfjMVjGRWuHAd2pRsfIAlI1IuC4dsmqIx8X2eU37Joern+3N4D7nkQmFTO3G5oXbFvwlrJNmCAuBWxcF661UZvrJhb5fXepxzkHDds3QkTDqcHljPC4eoIpbuLvkJ/tqDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from SJ0PR13CA0099.namprd13.prod.outlook.com (2603:10b6:a03:2c5::14) by DM8PR12MB5400.namprd12.prod.outlook.com (2603:10b6:8:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Tue, 10 Oct 2023 08:22:55 +0000 X-Received: from MWH0EPF000971E2.namprd02.prod.outlook.com (2603:10b6:a03:2c5:cafe::b0) by SJ0PR13CA0099.outlook.office365.com (2603:10b6:a03:2c5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.20 via Frontend Transport; Tue, 10 Oct 2023 08:22:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by MWH0EPF000971E2.mail.protection.outlook.com (10.167.243.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Tue, 10 Oct 2023 08:22:55 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 10 Oct 2023 03:22:51 -0500 From: "Chang, Abner via groups.io" To: CC: Abdul Lateef Attar , Isaac Oram , Nickle Wang Subject: [edk2-devel] [edk2-platforms][PATCH 1/2] ManageabilityPkg/Ipmi: Remove IpmiCommandLib.h from ManageabilityPkg Date: Tue, 10 Oct 2023 16:22:22 +0800 Message-ID: <20231010082223.1421-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E2:EE_|DM8PR12MB5400:EE_ X-MS-Office365-Filtering-Correlation-Id: b6b90b2d-937d-4aab-5548-08dbc96a1a9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: zOv/4npaLzSGKGzh0FuEE2VWygWg4B34+z8HE9A/OPQrkemox4JjCdnj5Ix2RPfiNIGZ9g5wfIT5VI8K9Q6TH4iTQgDmYcdXfgTevE3jxMzd3LXlB0ofJpP/RGnVlrZEr9Q2Ghv+3qeD0+EIGhbLTtYmUURFLDKnmbMfMkO80XMUjY2Phk5KMpAiOFVGdqF9A9KhquaSXrQE7eJP3+AzH3rs41aQjwIC0CUX6t4Qd4uvfVysAGojbp5yo8HZQulLmXwL4knNVOzFwd6PC9b3AMBcFjNNFJ39KaKhyyLtlANg9PepCENNBl2/1n9otwOU/LyjrPLTmYQ6TV2iMlrkNQYWSViQQkeWgmR7nCt3iRTiNOIYV4ySfSOj3GsUKILHf9lfHxQBPmj0518YjnBrwSCgoxzkKHSEz8KsPWURHCZFD9Zvj4A3+ZT1AyGploUrfJw8HVuHHi82kE8EwUnPRXl3FwL5j4h8UUVZr+dCKDZ4DGClfCgCurdu8GcLUzI6i65nlRucFlOPWFqJY6724DTGS4gcJdW28uvtgcpVGTUVce6mgGzmY398GxeAEN4g+O3tUXrLOii7QkxtMCahFCI+p7I3hmKN8W29JTPIsJ85L1xex1m/UQH1/mbGB3e2YkcdzF54tP/v6WVXa2QDroZFmUZh2FVLbAtAnKCCqN033Fp9IsX84k/hUOh/pIYFl0bHse2nBLblwCQYLtevtX30bK97h2z+48z8beCeRDHimkACnbTHGnA3XXP2epvA34Nb854vO6HNb/3lJIIrwA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 08:22:55.1326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6b90b2d-937d-4aab-5548-08dbc96a1a9e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E2.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5400 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: JN7tRTZYPhRY0yLnO3bJNiixx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=hGdJaNeK; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 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/IpmiCommandLi= b.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 @@ =20 [Packages] ManageabilityPkg/ManageabilityPkg.dec + MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec =20 [LibraryClasses] diff --git a/Features/ManageabilityPkg/Universal/IpmiFrb/FrbPei.inf b/Featu= res/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 @@ =20 [Packages] ManageabilityPkg/ManageabilityPkg.dec + MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec =20 [LibraryClasses] diff --git a/Features/ManageabilityPkg/Universal/IpmiFru/IpmiFru.inf b/Feat= ures/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 @@ =20 [Packages] ManageabilityPkg/ManageabilityPkg.dec + MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec =20 [LibraryClasses] diff --git a/Features/ManageabilityPkg/Universal/IpmiOsWdt/OsWdt.inf b/Feat= ures/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 @@ =20 [Packages] ManageabilityPkg/ManageabilityPkg.dec + MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec =20 [LibraryClasses] diff --git a/Features/ManageabilityPkg/Universal/IpmiSolStatus/SolStatus.in= f 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 @@ =20 [Packages] ManageabilityPkg/ManageabilityPkg.dec + MdeModulePkg/MdeModulePkg.dec MdePkg/MdePkg.dec =20 [Pcd] diff --git a/Features/ManageabilityPkg/Include/Library/IpmiCommandLib.h b/F= eatures/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_RESPON= SE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_RESU= LT_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 () funct= ion. - -**/ -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_TIM= ER_REQUEST. - @param [out] CompletionCode IPMI completetion code, refer to Ipmi.h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_TIM= ER_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_GLOBA= L_ENABLES_REQUEST. - @param [out] CompletionCode IPMI completetion code, refer to Ipmi= .h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_GLOBA= L_ENABLES_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 to = Ipmi.h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_MESSA= GE_FLAGS_RESPONSE - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_ME= SSAGE_RESPONSE. - @param [in, out] GetMessageResponseSize When in, which is the expected= size of - response. When out, which is t= he actual - size returned. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_REQU= EST. - @param [in] SendMessageRequestSize Size of entire SendMessageRequest= Size. - @param [out] SendMessageResponse Pointer to receive IPMI_SEND_MESS= AGE_RESPONSE. - @param [in] SendMessageResponseSize When in, which is the expected si= ze of - response. When out, which is the = actual - size returned. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 IpmiSubmitCommand = () function. -**/ -EFI_STATUS -EFIAPI -IpmiGetSystemUuid ( - OUT EFI_GUID *SystemGuid - ); - -/** - This function gets the channel information. - - @param [in] GetChannelInfoRequest The get channel information re= quest. - @param [out] GetChannelInfoResponse The get channel information re= sponse. - @param [out] GetChannelInfoResponseSize When input, the expected size = 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 inva= lid. - @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_REQUE= ST. - @param [out] CompletionCode IPMI completetion code, refer to Ipm= i.h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 SetCo= nfigurationParametersRequestSize. - @param [out] CompletionCode IPMI completetion co= de, refer to Ipmi.h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -EFI_STATUS -EFIAPI -IpmiSetSolConfigurationParameters ( - IN IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST *SetConfigurationPara= metersRequest, - IN UINT32 SetConfigurationParam= etersRequestSize, - OUT UINT8 *CompletionCode - ); - -/** - This function is used to retrieve the configuration parameters from the - Set SOL Configuration Parameters. - - @param [in] GetConfigurationParametersRequest Pointer to IPM= I_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST. - @param [out] GetConfigurationParametersResponse Pointer to rec= eive IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE. - @param [in, out] GetConfigurationParametersResponseSize When in, which= is the expected size of - response. When= out, which is the actual - size returned. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -EFI_STATUS -EFIAPI -IpmiGetSolConfigurationParameters ( - IN IPMI_GET_SOL_CONFIGURATION_PARAMETERS_REQUEST *GetConfigurationPar= ametersRequest, - OUT IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE *GetConfigurationPar= ametersResponse, - IN OUT UINT32 *GetConfigurationPar= ametersResponseSize - ); - -/** - This function gets the LAN configuration parameter. - - @param[in] GetLanConfigurationParametersRequest Request data - @param[out] GetLanConfigurationParametersResponse Response data - @param[in,out] GetLanConfigurationParametersSize When input, the e= xpected size of response data. - When out, the exa= ct size of response data. - - @retval EFI_SUCCESS Lan configuration parameter is returned i= n the response. - @retval EFI_INVALID_PARAMETER One of the given input parameters is inva= lid. - @retval Others Other errors. - -**/ -EFI_STATUS -EFIAPI -IpmiGetLanConfigurationParameters ( - IN IPMI_GET_LAN_CONFIGURATION_PARAMETERS_REQUEST *GetLanConfigurat= ionParametersRequest, - OUT IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE *GetLanConfigurat= ionParametersResponse, - IN OUT UINT32 *GetLanConfigurat= ionParametersSize - ); - -/// -/// Functions for IPMI NetFnChasis commands -/// - -/** - This function returns information about which main chassis management fu= nctions are - present and what addresses are used to access those functions. - - @param [out] GetChassisCapabilitiesResponse Pointer to IPMI_GET_CHASSI= S_CAPABILITIES_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -EFI_STATUS -EFIAPI -IpmiGetChassisCapabilities ( - OUT IPMI_GET_CHASSIS_CAPABILITIES_RESPONSE *GetChassisCapabilitiesRespo= nse - ); - -/** - This function gets information regarding the high-level status of the s= ystem - chassis and main power subsystem. - - @param [out] GetChassisStatusResponse Pointer to IPMI_GET_CHASSIS_STAT= US_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_REQ= UEST. - @param [out] CompletionCode IPMI completetion code, refer to Ip= mi.h. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 () funct= ion. - -**/ -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_REQU= EST. - @param [out] BootOptionsResponse Pointer to IPMI_SET_BOOT_OPTIONS_RESP= ONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_REQU= EST. - @param [out] BootOptionsResponse Pointer to IPMI_GET_BOOT_OPTIONS_RESP= ONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_I= NVENTORY_AREA_INFO_REQUEST. - @param [out] GetFruInventoryAreaInfoResponse Pointer to IPMI_GET_FRU_I= NVENTORY_AREA_INFO_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -EFI_STATUS -EFIAPI -IpmiGetFruInventoryAreaInfo ( - IN IPMI_GET_FRU_INVENTORY_AREA_INFO_REQUEST *GetFruInventoryAreaInfoR= equest, - OUT IPMI_GET_FRU_INVENTORY_AREA_INFO_RESPONSE *GetFruInventoryAreaInfoR= esponse - ); - -/** - 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 ReadFruDa= taResponse. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_RE= QUEST. - @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 () funct= ion. - -**/ -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 () funct= ion. - -**/ -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_REQ= UEST. - @param [out] GetSelEntryResponse Pointer to receive IPMI_GET_SEL_E= NTRY_RESPONSE. - @param [in] GetSelEntryResponseSize Size of entire GetSelEntryRespons= e. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 () funct= ion. - -**/ -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 increm= entally - added to the SEL. - - @param [in] PartialAddSelEntryRequest Pointer to IPMI_PARTIAL_ADD_= SEL_ENTRY_REQUEST. - @param [in] PartialAddSelEntryRequestSize Size of entire PartialAddSel= EntryRequest. - @param [out] PartialAddSelEntryResponse Pointer to receive IPMI_PART= IAL_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_RESPON= SE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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 () funct= ion. - -**/ -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 () funct= ion. - -**/ -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_REPOSITO= RY_INFO_RESPONSE. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_RE= SPONSE. - @param [in, out] GetSdrResponseSize Size of entire GetSdrResponse. - - @retval EFI_STATUS See the return values of IpmiSubmitCommand () funct= ion. - -**/ -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_ --=20 2.37.1.windows.1 -=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 (#109478): https://edk2.groups.io/g/devel/message/109478 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-