From nobody Tue May 14 05:57:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98009+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1672934492333921.0797248631566; Thu, 5 Jan 2023 08:01:32 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2aN9YY1788612xlS1suu0y1h; Thu, 05 Jan 2023 08:01:31 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.62]) by mx.groups.io with SMTP id smtpd.web11.16445.1672934491251374643 for ; Thu, 05 Jan 2023 08:01:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jS8pb2+XZ0QtqK22695MLWLpg+VmFsGwzFCcyvCj0slJdO7UQKUcKqkfSAuyQSDrGZVnFpboLdPCp/J0PTgEtOm3a5jQw59C+mhstOZtglWk3GceY607+rODvvpjGTCxTh1aNCf/X8i+xPKb4rbzK5T+Po+P2Oktg/UcaQL85wBVsRFgyXH7GUq1lYZF9SwzXW/3Bl0Mr5rVjiDsw4OxYg10k5bOGgnrL8FSZ1aJ9WhcEk7BAUwsJciUsz7Ngm5IYYqjeBchM/OKlYbtXOWxmXBwfKYz+eDJivLxbu4DkJw5yzAM0TOX5qmaO5BuA0yXJLygUzM6FQL0QbmCrWan/A== 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=9lgUAzSqsARJ63B+jjSuwwTV26NR8DjGCtdHrjgOOhw=; b=b+i9jWt1rymzlUKppZim76EzvKvLcDxMJGk2tdIm1Q2XY5Pefyyhkpc0vc5VcZ5LeyVibjxE2wk8dBw3GNq0AIhNZeQdlCn+EN1T+QDHz7hMhQlsKimMkXYg+kiwu6bLR4+4N1+fQvpntVyAi3IzLp+2w6EwPBMxpROq7gguw5dV9TiEsqhVBRGJ5irjN2s/xWOKf0SAow04vSMQPSgKQ8i6Cie6ZV8JNiau8H95uKQxlLpj27ROJN6HnOWKCS8qKwG283nL2sl2YL3jb4iBc8IvzRy9RcV6tcT65vPCY/aOQJcnJOLcglTCzKQM5iZTSO/6A/74INJllAhIq7EWUg== 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 DS7PR05CA0054.namprd05.prod.outlook.com (2603:10b6:8:2f::28) by CO6PR12MB5426.namprd12.prod.outlook.com (2603:10b6:5:35d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 16:01:28 +0000 X-Received: from DS1PEPF0000E63E.namprd02.prod.outlook.com (2603:10b6:8:2f:cafe::ea) by DS7PR05CA0054.outlook.office365.com (2603:10b6:8:2f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.6 via Frontend Transport; Thu, 5 Jan 2023 16:01:27 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98009+1787277+3901457@groups.io; helo=mail02.groups.io; 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 DS1PEPF0000E63E.mail.protection.outlook.com (10.167.17.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5986.15 via Frontend Transport; Thu, 5 Jan 2023 16:01:27 +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.2375.34; Thu, 5 Jan 2023 10:01:23 -0600 From: "Chang, Abner via groups.io" To: CC: Isaac Oram , Nate DeSimone , Liming Gao , Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [edk2-platforms][PATCH V2] Features/IpmiFeaturePkg: Add IPMI functions Date: Fri, 6 Jan 2023 00:00:58 +0800 Message-ID: <20230105160100.772-2-abner.chang@amd.com> In-Reply-To: <20230105160100.772-1-abner.chang@amd.com> References: <20230105160100.772-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E63E:EE_|CO6PR12MB5426:EE_ X-MS-Office365-Filtering-Correlation-Id: b9755ac2-8407-4418-518a-08daef361a2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 0u9SlKSwMsjxUEbVf4juXAjfNJRDrYYHzDzi6KklDXq/MXW8ZRuc0BcpY2TIp18VzUCYN81w8gtRP/5gjYsOKsS7SWZMh5t3+Vbd4n33+lizBwpbcojJjvVkGK8RKnkRnif6JzV3gbyGZI9ZytGkfHQmAKHfBFU8FzYnKf7rqPkgnXYJDN06AX0VEbOqsYjWMY4V7ZRaKLlIeJ1QhyT+NAwEBEHgxRGjsp08PMlFskbF1dJw/Y2agYuApsFp2FU47zyv3mT2TNpKcv/ZXZQCY9KJHzSpyhqI0ynzio6AJ9efR2zkjGTO1BTrjUmgVp1m4Nfz9kY5SE2CLoLFMnBopSvbp9BsiyWsM5P+nt6tNwBSfi3EXuPjoFoiqOyFyXbkv8Pk9pi+IJs3LXEJ/ETj8c2vLwzy2EDGJv2qKAB8AKPGJwXCBFHlblfmFXnCAKCtVqbVy3glfitZxEGu2WQDZorLhLAtQTvL2yQmHjwKg4NbdEmJrJNrJhxIBP4aQ24yJzdHntpYjU8e9MheJHgyxqVtPyhXHyHAIlvK53LOdgdQwrrtJ4nWf7UwtbVNf14rouh8/BByRpksFNk4j9x0bX+oMuS/3e39DJLkI7utj6oWKN+CZgZPMnl93CelaTvnQpZ9wKdzlwmYV03Cs2s5o6GxtO2lqqHhPc+sZ3JWAjcc8c8OPVZkYu/EgBqJThfGWPl1j6+/0Pg/qmkSTl+c3XEa9T7yID/cs3y4UHxREPE= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 16:01:27.2015 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9755ac2-8407-4418-518a-08daef361a2d 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: DS1PEPF0000E63E.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5426 Precedence: Bulk List-Unsubscribe: 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 X-Gm-Message-State: 3TZtRgkMnVkvyDvsInovgqwkx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672934491; bh=v8c3Svhnci0iaIIk/Lb5bRIOkqnaciCIERRTQpK7ztA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=WoIU22NDe5JcgsWjriqa24YrPbz8jd0xYxL9pbsbiicyzshwWGajNR2pB2WUI1bqhaM wqafusRMYtPpfcTuzSpSRYOikNdgo7yYrCkrhH9nU51ErcoDpVbC+s3iVHOAtpa6XYpOQ 0VarH7jb6nIdQydRoWzrgkzn8fnGeSFvaak= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672934492674100001 Content-Type: text/plain; charset="utf-8" From: Abner Chang Add functions to get system UUID and LAN configuration parameter. Signed-off-by: Abner Chang Cc: Isaac Oram Cc: Nate DeSimone Cc: Liming Gao Cc: Nickle Wang Cc: Igor Kulchytskyy --- .../Include/Library/IpmiCommandLib.h | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Libr= ary/IpmiCommandLib.h b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/In= clude/Library/IpmiCommandLib.h index 18f9d123c9..911b9c1d7a 100644 --- a/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Library/Ipm= iCommandLib.h +++ b/Features/Intel/OutOfBandManagement/IpmiFeaturePkg/Include/Library/Ipm= iCommandLib.h @@ -2,6 +2,8 @@ This library abstract how to send/receive IPMI command. =20 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 =20 **/ @@ -88,6 +90,44 @@ IpmiSendMessage ( IN OUT UINT32 *SendMessageResponseSize ); =20 +/** + 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 Other errors. + +**/ +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 inva= lid. + @retval Others Other errors. + +**/ +EFI_STATUS +EFIAPI +IpmiGetChannelInfo ( + IN IPMI_GET_CHANNEL_INFO_REQUEST *GetChannelInfoRequest, + OUT IPMI_GET_CHANNEL_INFO_RESPONSE *GetChannelInfoResponse, + OUT UINT32 *GetChannelInfoResponseSize + ); + // // NetFnTransport // @@ -114,6 +154,28 @@ IpmiGetSolConfigurationParameters ( IN OUT UINT32 *GetConfigurationPara= metersResponseSize ); =20 +/** + This function gets the LAN configuration parameter. + + @param[in] GetLanConfigurationParametersRequest Request data + @param[out] GetLanConfigurationParametersResponse Response data + @param[in,out] GetLanConfigurationParametersSize When input, the ex= pected size of response data. + When out, the exac= t 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 *GetLanConfigurati= onParametersRequest, + OUT IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE *GetLanConfigurati= onParametersResponse, + IN OUT UINT32 *GetLanConfigurati= onParametersSize + ); + // // NetFnChasis // --=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 (#98009): https://edk2.groups.io/g/devel/message/98009 Mute This Topic: https://groups.io/mt/96074594/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-