From nobody Thu Nov 14 07:10:43 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+97734+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 1671798853863690.5229071167378; Fri, 23 Dec 2022 04:34:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6VVbYY1788612x6m1AwRwtf5; Fri, 23 Dec 2022 04:34:13 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.73]) by mx.groups.io with SMTP id smtpd.web10.71102.1671798852795087922 for ; Fri, 23 Dec 2022 04:34:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fU0m/S9sfhdHUMe/BkJYl1DbZkgecBcIKcZ2XvGa8h3pLxwPProgGi33ZcFnPRHXGcNujxuAbWM9EiNWPoPWE9Q9vy8CiagsvmSvBg2Rj2r9yzuSfafzX6i2p58d37MgcAtd2sJ9lmG/ut5E33Sfz1fkzydGtTY/OvX713fH5hjyGNXlfz7gYw78VC+qtnmn8e6+eSbHGFvfACh60bTUaxPYMePIETW1CTWc+j867NcqJ089maj+Olicp9/ghUuzhBAoroxuTvWCUndbzPJTCR+PfVt6EmQe8pwK/sikwJjpUAtgzSY/h3uA9QaIGKg3NJdIHTr8vAH6KFKh+DxsKw== 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=Tr/rxSYYQ8BuDjlDjioXz8F6LbW2lp6GRiNBLdzJmdU=; b=CgWJrqTYnCkAGMjeF0lAEyuPb3MXB+IbrhnhzJvoQT0Q5fFIhV9jUaIi0C6dzg+MQV+lZDsyoOL295rVB+yD+PHTK5/WetxeWZk9iM7eibwJw23+DblctkWJ0s0QyhLTM6g+oMYU/0XaqI6Eab8b5zsRWNqSzsLE8ZeW6Xa+zJFEU7ykl4wqhMKJfvAk1T0RGw4zyQEj75Qzg9BRiOExAJGjV1UdPqj1I/aASBcpTbIdJfS47PFg9rWvTIB2HCFHBKS+5WQGA2wulyzgMclRo2kcD3EQwx+RuzaIlvn2rGhV50fxndRv+qydP49wlWyWr3ITvmofQmSBAup9G+QyoA== 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 DS7PR05CA0097.namprd05.prod.outlook.com (2603:10b6:8:56::26) by MN2PR12MB4533.namprd12.prod.outlook.com (2603:10b6:208:266::18) 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 12:34:10 +0000 X-Received: from DS1PEPF0000E64D.namprd02.prod.outlook.com (2603:10b6:8:56:cafe::75) by DS7PR05CA0097.outlook.office365.com (2603:10b6:8:56::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.5 via Frontend Transport; Fri, 23 Dec 2022 12:34:10 +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+97734+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 DS1PEPF0000E64D.mail.protection.outlook.com (10.167.18.43) 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 12:34:10 +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; Fri, 23 Dec 2022 06:34:07 -0600 From: "Chang, Abner via groups.io" To: CC: Abner Chang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH 2/3] RedfishPkg/Include: Add Redfish IPMI definitions Date: Fri, 23 Dec 2022 20:33:35 +0800 Message-ID: <20221223123336.2014-3-abner.chang@amd.com> In-Reply-To: <20221223123336.2014-1-abner.chang@amd.com> References: <20221223123336.2014-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: DS1PEPF0000E64D:EE_|MN2PR12MB4533:EE_ X-MS-Office365-Filtering-Correlation-Id: f60ad044-84d0-44ce-f794-08dae4e1fdca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: LLQ+wbdRLExwuQ3uAqXhsXef8MnoAHk/CZqzGftMNV9qEBioMYIwaBwFxznQuldtfyvBrRYmclfqkaP1oJYfyHDVIPi4ukHeIL46Fcic+JQIaJ6YcpG/Myfx93RICGtgOlQBp2eKah+GRH1VUkRorTvuPo5JAzfaXRs5o4CbLLjt9pw3N46aqVNqh74A8JzKVBC0mP3XYlt9lMaw4JbDrV9k5gK+Sz7fFK9e7aBsQq9cpZjbGe/2b7vLf3UK1bXhu7Y5o+4fBAdOzLG3O1ZAcnpYRzlFlMb5gTmcvzv6ZnzGhUe1rRsuowRo8WoPMVuPyFIP9r3SRHCiTkKe380Z2dmSeaXhxrGKz/2uTbomhU+1Q3IQb0/Oo9mRl5ocMJ7eA2WnsaJDM444zvJ0+w7fiwqzdsbmO10utLFerty3cNl+lFfjmaVGFgC4Ck/4NVmvldL4eEXrQpudbNcdVfz0uwRzjDMVFUosutTE9jvIWv79+dogSDqaWGWjnqPLV1LjTeDbim3PwiwxIgfQX7s5RaV9eKiE3OigXE26YYB/8WHhqdbTSZYoEXH/wvIwSksZdJ+Ix8G/TCBBGWzgFE/qn6FwAXe3D46WiKySUdYbreSQlElEq1QZSWpyRlSfCPmMzz3fwHchYUNaHXuWz/5ulgW1HtV6qlqwDUH//j8WUa57peuMiua9uxErPk8dADc5dOPydKxcoBQhaz7httj9cg4gnQQIhmP9/ds6zS2UGls= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2022 12:34:10.2277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f60ad044-84d0-44ce-f794-08dae4e1fdca 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: DS1PEPF0000E64D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4533 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: sWYMQrT4Xx3ZgiHM5REv1gK2x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1671798853; bh=bz9gwmj664ZYFpmFgtoFAjIS1IOHXq4QAF5nC4vKUB8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=GOMGjTimsqfPlgefpf5ckHuuRPq/v50on8mKQwyLrcAOD0av379jC6Qqzq7/qAlYH/p H3FwJKgpoZwOAqqYrcTEMnwnQm4PrTkQAhElW+oFj4cmgsw6b6yhylNiSUVNJYZfUVvqL 6Jrgg1/QGkG2PbRgEbmYSV4PRO52QfIBqtg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1671798855401100005 Content-Type: text/plain; charset="utf-8" From: Abner Chang Add the definitions of Redfish Host Interface credential bootstrapping IPMI commands. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- .../RedfishHostInterfaceIpmi.h | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 RedfishPkg/Include/IndustryStandard/RedfishHostInterfac= eIpmi.h diff --git a/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h= b/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h new file mode 100644 index 00000000000..892b744c458 --- /dev/null +++ b/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h @@ -0,0 +1,50 @@ +/** @file + Redfish Host Interface IPMI command + + Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef REDFISH_HOST_INTERFACE_IPMI_H_ +#define REDFISH_HOST_INTERFACE_IPMI_H_ + +#include +#include + +#define REDFISH_IPMI_GROUP_EXTENSION 0x52 +#define REDFISH_IPMI_GET_BOOTSTRAP_CREDENTIALS_CMD 0x02 +#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_ENABLE 0xA5 +#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_DISABLE 0x00 +#define REDFISH_IPMI_COMP_CODE_BOOTSTRAP_CREDENTIAL_DISABLED 0x80 + +/// +/// Per Redfish Host Interface Specification 1.3, The maximum lenght of +/// username and password is 16 characters long. +// +#define USERNAME_MAX_LENGTH 16 +#define PASSWORD_MAX_LENGTH 16 +#define USERNAME_MAX_SIZE (USERNAME_MAX_LENGTH + 1) // NULL terminator +#define PASSWORD_MAX_SIZE (PASSWORD_MAX_LENGTH + 1) // NULL terminator + +#pragma pack(1) + +/// +/// The definition of IPMI command to get bootstrap account credentials +/// typedef struct { +typedef struct { + UINT8 GroupExtensionId; + UINT8 DisableBootstrapControl; +} IPMI_BOOTSTRAP_CREDENTIALS_COMMAND_DATA; + +/// +/// The response data of getting bootstrap credential /// typedef +typedef struct { + UINT8 CompletionCode; + UINT8 GroupExtensionId; + CHAR8 Username[USERNAME_MAX_LENGTH]; + CHAR8 Password[PASSWORD_MAX_LENGTH]; +} IPMI_BOOTSTRAP_CREDENTIALS_RESULT_RESPONSE; + +#pragma pack() + +#endif --=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 (#97734): https://edk2.groups.io/g/devel/message/97734 Mute This Topic: https://groups.io/mt/95843860/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-