From nobody Thu Nov 14 17:43:35 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+98052+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 1672973902796698.5179392012229; Thu, 5 Jan 2023 18:58:22 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 7GKLYY1788612xjZm0FKhyug; Thu, 05 Jan 2023 18:58:22 -0800 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.86]) by mx.groups.io with SMTP id smtpd.web10.5185.1672973901778072790 for ; Thu, 05 Jan 2023 18:58:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=laJk9F0HHOkSj1vaylc7KvzndAoUlNQUuDDZH7iFEkjPTnhPLb62A0FUkmGhRp1JfdnlQsrGSdHDAxhzo6cC3w/qc2qH2FKvVYn/UVbVCEaNcLIBfcayBPGUVOnW3zz+SNg5n4uKcuyPwv9oLcO5KYtqo1cZfXZAKQ2weIf9YccS6x6ltJfqZI9rfi8/zi9ewPIKADe5zFXiep4eSh9esNDol8SUR6QdDlwsZ/ES9cElNRuH1ZgrOthfwp5lzS4OtDbAv1VVQuyxMuGr4irAitPksSUWW7vhZy595fQcCYlB5JMQrTk8E/IjuqUFrig6ySr+WBkh3UFmeVj//MFgOg== 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=WBQF1zJV0t8j7bkD4yAvUVloXcdGmrMbrdosyOU8ycw=; b=NjkswCjuRsq2/EMAYgeclSFBeVt6H1UexChw6EyNG69YVrAewS5+xrxdb6/5qrsamCE13eF7AdZCWsRrtHIH5nBJ0YMLOMDAzwzdi7afudHYKSBLX0rW9SpGlRQEfhNKy6SE00Uvjdc3ct4ex8vw+SlFKilxbIXul35Kbr5uJckeWfrhr1wfS9FVBFVA3Yp+x5ioj17oU18E8OoeiesoACNb75V+5OcDLMIjn1D5ncSB7apXau5s52Z1qaZXhZ8fdoWCJ7D/36cA1nl8TbqDM+8fqkR7NnxQldihEzlNrj076PgRQ0pNsCJoYMFDo/xXamv63GVvKhXAGKVXf54cUw== 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 MW4PR03CA0236.namprd03.prod.outlook.com (2603:10b6:303:b9::31) by SA0PR12MB4496.namprd12.prod.outlook.com (2603:10b6:806:9b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 02:58:20 +0000 X-Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::c5) by MW4PR03CA0236.outlook.office365.com (2603:10b6:303:b9::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.15 via Frontend Transport; Fri, 6 Jan 2023 02:58:19 +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+98052+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 CO1NAM11FT037.mail.protection.outlook.com (10.13.174.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5966.17 via Frontend Transport; Fri, 6 Jan 2023 02:58:19 +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 20:58:17 -0600 From: "Chang, Abner via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Isaac Oram" Subject: [edk2-devel] [PATCH V4 2/3] RedfishPkg/Include: Add Redfish IPMI definitions Date: Fri, 6 Jan 2023 10:57:54 +0800 Message-ID: <20230106025756.1184-3-abner.chang@amd.com> In-Reply-To: <20230106025756.1184-1-abner.chang@amd.com> References: <20230106025756.1184-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: CO1NAM11FT037:EE_|SA0PR12MB4496:EE_ X-MS-Office365-Filtering-Correlation-Id: 13ec60ad-4e28-4984-cb2d-08daef91ddc1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: n7NZ9rbegxR2ir6Dt0o0Mqdzw7v4bbi/jDYvUfEACsQLnnik1gH6RpgoccdS66RrSZmiHr+WIb/cgj36mqjd5jcm48Rmbl4ZIeY9W4hMwLn4k2NLFkW6jJitpnFVO4yNGp8m9Tsfv7bD4jygi4l/RunwOA7RgLMQj0wucTAdWmWAQkv+wZsj0QvA0DHORN/mvPZ1OGM0Be+W5c5oFTRf6349zibdOxvBw6RWoqJkFtCRNHkIhZ75HfoBNS4ZvVWXVBrxBtA7wbGAW7fb5QWiY85J+cYOeH9zqMSSplvHEJVMFq3/wUHtOw4BRJsePStKLTEShiawzj5+UY2u4D2GRB4GjizcY4pkp5mFoil32Vpvmb0NJQ+N+Y0D2gmWbng6YBkERNVwpPTWRdTISMnkJMpkR9nRRs6+5JG6NOhC8vfe3Vpyw0IFR7GISOXOohOQnZFr1nq1luDoAgOjipT2vvbEakwdD8VdiiJmCnre8XWav58SHxREaSNiO/tcdMPn6vBBifePxX4B013dYG4WkappEz0/XGRjQEyucWOvwRsNLk88Ohy/PFGja12S1E53GHHFNueQ+FOoxHVtP6v07HzJqKPow4QdzNirrCCfgvD8sTvumiv+I7tVGhjBYllt1HRKrCs4HW+i1/zZb/hmKxufnWhom3glfNEuApJ0XUldgiftZwHAS/c9+IhjhcsnHTHdA/LBYfKu8rE8VAZLdQORI8YBMmQKdV5jrbnzpy4= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 02:58:19.4701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13ec60ad-4e28-4984-cb2d-08daef91ddc1 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: CO1NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4496 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: cAel3JzB5tT8GXyHsa9R8U7Lx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672973902; bh=/PUagMnsUWPCH2/L7/sn7rjZv/7BkvjKTLxA7TWK7kc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Qz/7Y+WvIkXmVkvE9QvzvH30BxMt9N300yWj7w4oXtY6C7w6mHsbYBuRhyBHZDMq8vg WmqpCDlErbMGcYocvMsSo7Iyq+3naYkY0TQRHijxAbYrx8yauurw+3FoiD2u8PGm3hgLI pQOmQQRhnTwC3bWg6JYBvKNfkevZrvNjOMM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672973904099100010 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 Reviewed-by: Igor Kulchytskyy Reviewed-by: Isaac Oram --- .../RedfishHostInterfaceIpmi.h | 51 +++++++++++++++++++ 1 file changed, 51 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..9b4a5eb8e3f --- /dev/null +++ b/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h @@ -0,0 +1,51 @@ +/** @file + Redfish Host Interface IPMI command + + Copyright (c) 2023 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 length 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 { + UINT8 GroupExtensionId; + UINT8 DisableBootstrapControl; +} IPMI_BOOTSTRAP_CREDENTIALS_COMMAND_DATA; + +/// +/// The response data of getting bootstrap credential +/// +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 (#98052): https://edk2.groups.io/g/devel/message/98052 Mute This Topic: https://groups.io/mt/96087046/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-