From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=08kghXVe; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.220.62, mailfrom: abner.chang@amd.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9lgUAzSqsARJ63B+jjSuwwTV26NR8DjGCtdHrjgOOhw=; b=08kghXVeolIgen4fucT2MX+zLVYKvHl85d8KSB4W7W5n6vEUytEo8eB/sqg2I9pNgJLlBoqWWI+KdhSH/UrmCQStXLf6PwcSvLhtiigumtYu7vweOhJAqaDPwiUFvI7eOhtQ0k4rYpoy2/J9fN6knqiARLUa+/zjRf6V1dETaHY= 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 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 (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 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 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" To: CC: Isaac Oram , Nate DeSimone , Liming Gao , Nickle Wang , Igor Kulchytskyy Subject: [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> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20230105160100.772-1-abner.chang@amd.com> References: <20230105160100.772-1-abner.chang@amd.com> MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com 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: BCL: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-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(346002)(136003)(376002)(451199015)(46966006)(36840700001)(40470700004)(426003)(47076005)(83380400001)(336012)(16526019)(7696005)(186003)(6666004)(26005)(40480700001)(82310400005)(40460700003)(86362001)(36860700001)(36756003)(81166007)(356005)(82740400003)(1076003)(2616005)(8676002)(4326008)(8936002)(41300700001)(5660300002)(2876002)(2906002)(478600001)(54906003)(70586007)(316002)(6916009)(70206006)(36900700001);DIR:OUT;SFP:1101; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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