From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.68]) by mx.groups.io with SMTP id smtpd.web10.71964.1671802052447634510 for ; Fri, 23 Dec 2022 05:27:32 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=mz3urQaG; 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.92.68, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MTj9wwDX5XmJoRY4ZhBwW5ymlByej3ZPbh5w2ZFAB0yOuIcjnMwWFrvxtlTAaE21r+jOhq1l6ZuEWSR4cxkKx2m/FNkLAmPKDFfKZsxNemd87l8mgd0aWNdqbbaV0oS9fidqxOqgxtelfv44ggyJtm+tdV5W6FTxAz2oAi06kJdAHM1v/yryyWseHaD/iiXbrH5319x/kyJmogcKQhqlx/i/fWREUi3JvAPQ17zTerf5mkHGx37vQla2Mz/u8ZlCnZKGKUYXkF5JgoKwxs0/rSK3Clgbd8HEGjIknWiiYwW6r6ORbMsifk+ReMcceQKcJOLcxNRZ3zXHw5joGzGj7g== 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=Y92B/6t9gx7cwFy1W6fUdj9xu6tKAVW5It58Eg5jn9I=; b=Wtoczs606OJbO3MkB29UeOdkFrihSzzgAecWTWeudEIsYUXfHFUhNUhasaTsDHorK7BwP1mt8mjtTfv+PPOG6OkFafzJId3CdbvuFuEzpInaEH9eJvlLVu4UaASVOkMbJqRa/qwn9W3ieR7iEEoe81d4DKcSe3wiL66u+oLI9EVILLHIkLJpuHc+owYHCuwCOjuQ08yayYEXyFKKFYIiT+Cv+JhSCdXlT09CHAhrknleMOXcG/jOAgdh71ZHwL0Pds6sP9BDtfE/Y5x+jgSeKKRvkMZgpQIGthg35dAwta+zmqM0ILNCU90hnm64A/mMYTiyvmO+i5GQHrgydp0FGA== 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=Y92B/6t9gx7cwFy1W6fUdj9xu6tKAVW5It58Eg5jn9I=; b=mz3urQaG+AZn1SJynBhT4Qa/fcWV4ubnahA7hUwY1XYg5VlX76WZckVpaoReqOcLnBeAgzOnJBYCXvVZX4fZTFxaz3TBGYE5YPFUsf8Tc3Q+mmir4yL/tizgGFi8nUUOZGr8TIYdxdgyjNGmAs6bJV8602HOJG3Xen42zLtq7Nw= Received: from CY8PR19CA0008.namprd19.prod.outlook.com (2603:10b6:930:44::13) by DM4PR12MB6184.namprd12.prod.outlook.com (2603:10b6:8:a6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Fri, 23 Dec 2022 13:27:30 +0000 Received: from CY4PEPF0000C97A.namprd02.prod.outlook.com (2603:10b6:930:44:cafe::6b) by CY8PR19CA0008.outlook.office365.com (2603:10b6:930:44::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.13 via Frontend Transport; Fri, 23 Dec 2022 13:27:30 +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 CY4PEPF0000C97A.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.8 via Frontend Transport; Fri, 23 Dec 2022 13:27:30 +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; Fri, 23 Dec 2022 07:27:26 -0600 From: "Chang, Abner" To: CC: Isaac Oram , Nate DeSimone , Liming Gao , Nickle Wang , Igor Kulchytskyy Subject: [edk2-platforms][PATCH 1/3] Features/IpmiFeaturePkg: Add IPMI functions Date: Fri, 23 Dec 2022 21:26:58 +0800 Message-ID: <20221223132700.1864-2-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20221223132700.1864-1-abner.chang@amd.com> References: <20221223132700.1864-1-abner.chang@amd.com> MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com 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: CY4PEPF0000C97A:EE_|DM4PR12MB6184:EE_ X-MS-Office365-Filtering-Correlation-Id: cfb6f28f-38a6-4887-286e-08dae4e97110 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QWAWMVwYHmF0Rfer/vEzPRNjG1s9HhLRY/A1iVB5/abJD4x+ZvidEy6WsIE29V4Q75+9Q1QE49Uuwbf3cHE6ARQBYEhNJuSMMVV/Vxxal9K30EdC7YdMz1VKUdjNsGXdxC+0sHDuyz7uu0nlZcHOKcDsTSW6khE3GdMe5MnEubclAqklLzf5PE7/P11Zmf+Png+fB++HTYWZLaA+D20YOyOpgTboeKmhChwfW+KS4r7xA+nljS7sqbsKwNmywFvIXs/p9VnFj/VEz28tVcfUfM2NqY3ONq6Uc6PULkHH81m5lY1nnWZiaHEEnPH8EEA/z2G1GH5x0eI1P0A/y1nAYvmZrK8oZYEfeeX0Ls93EP4KIyzdIe0PYF6CdicO5qrzsdrXM/cddU6Lsb40V+Vu8D9kAEAU96iw9jLsIBYSNguEwuvEJr2vERLSsJenAlLyRyZle86qnSKIqWI4OwdLtKAisDmzNMxvzofu2yKrluNzJ0jw06JUetmmafvT+KjFdocCkCms2GwqsGwPeKE82mpTw1c7Rhf0ZIZvPY1S66N3laOUP371Pk2yJWDhCHkkfcPLSe8pfCFZwAFXpvV/BclpLGY19a8l8gGlTbjw4jtcThlkD+lARIQhlnbxOIUVAusIFqMXJjQSBzac0upO938WbuTeMiiY5yawiqqJS5XrDyj8lutMkrixMuXBpUUsHx5lPZ3Z+gu6A4VyjpbKKl2mSqtiw+b20C32KJdGNgs= 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)(346002)(136003)(396003)(39860400002)(376002)(451199015)(36840700001)(40470700004)(46966006)(356005)(36756003)(6916009)(40460700003)(316002)(86362001)(26005)(478600001)(54906003)(40480700001)(70586007)(41300700001)(8676002)(6666004)(2906002)(4326008)(2876002)(8936002)(70206006)(36860700001)(5660300002)(1076003)(82740400003)(2616005)(47076005)(82310400005)(186003)(16526019)(7696005)(83380400001)(81166007)(336012)(426003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2022 13:27:30.0650 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfb6f28f-38a6-4887-286e-08dae4e97110 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: CY4PEPF0000C97A.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6184 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 | 60 +++++++++++++++++++ 1 file changed, 60 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..c816750544 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) 2022 Advanced Micro Devices, Inc. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -88,6 +90,43 @@ 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 r= equest. + @param[in] GetChannelInfoResponse The get channel information r= esponse. + @param[in,out] GetChannelInfoResponseSize When input, the expected size= of response. + When output, the exact size o= f the returned + response. + + @retval EFI_SUCCESS Get channel information successfully. + @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 +153,27 @@ IpmiGetSolConfigurationParameters ( IN OUT UINT32 *GetConfigurationPara= metersResponseSize ); =20 +/** + This function gets the LAN configuration parameter. + + @param[in] GetLanConfigurationParametersRequest Request data + @param[in] 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 in = the response. + @retval Others Other errors. + +**/ + +EFI_STATUS +EFIAPI +IpmiGetLanConfigurationParameters ( + IN IPMI_GET_LAN_CONFIGURATION_PARAMETERS_REQUEST *GetLanConfiguration= ParametersRequest, + OUT IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE *GetLanConfiguration= ParametersResponse, + IN OUT UINT32 *GetLanConfiguration= ParametersSize + ); + // // NetFnChasis // --=20 2.37.1.windows.1