From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.51]) by mx.groups.io with SMTP id smtpd.web11.175878.1672204475234454975 for ; Tue, 27 Dec 2022 21:14:35 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=vJEn1hch; 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.243.51, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jRuflDScSB+kLXeWWR8hWdtVg6cRio7u5HjYNf04lwY8XptB3lzWD4wldhLlJ3XKDsJx6ANUZggVir4xRR2S/t4ZcT+fk1IwTngsxz+5nfsGni66guE7yUD2ChskMFTtE7f6q35AJtVA/Nnu5bwrHp4sjkvKTlBiBbOuarT47EEse7/dmSQ2UvAbgS/mpLJOQoWY9eksGnQJgKGXxl3TECyRNHBwyGgzqKwDKZHSU0+1T2z72Yyg9sYzkBeLqurZWL8ruj5Oro5U3/kiVhzoX0yL381G6D76FNRuK0gqclcvu6bVn1mxV2TayD2nMY7MFwM/1kHWUJ4rwWYMxcAe6w== 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=jXDQ0SdqoH+VFA5SGz1yDXeJL3Oe83L8ubxsfUsR/y+CIitNFzpvkHwuSCEf8OYJCt8b5CE8G8J1rZSKdg7n2vnH0867rO6ZhsTWcNBYL10i0W+9Aj3BW+chbFFZ8Z6qxSiJoEPLc790G7l90tt45rBxg9mxLDboqSD/3itSxbDptcgUmxh5zabhrt3FzLvbdcXd/m8Jhq4iimYDj+NX0nyddObWfuPl98Y7Juh1MZH0/bLTYGThjMCErDIt/Y2W+dTT0+RGe8dgHUVpFEKKdtrwoD4FTLwZ+tS0m5oXFvKfBQG5Bab5reBMXDN429bkP3T/fn+TC+wrbuuFp+z6tg== 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=Tr/rxSYYQ8BuDjlDjioXz8F6LbW2lp6GRiNBLdzJmdU=; b=vJEn1hchq+9VFAnsUklu/7C8hRmvcUUCexaH7bKwuhi2FbNIu2P20YLKCnhYEQ+Hq5w4p/d9DN0hKI+ssWuJJ9K04HhD199rLumXl+x11wWVG02gh2kieCESOO+Tw87OWIFo+f9u6osAETobC43qt+mQXsogRFFhRO0aoDRcoJU= Received: from MW4PR02CA0029.namprd02.prod.outlook.com (2603:10b6:303:16d::34) by PH8PR12MB6819.namprd12.prod.outlook.com (2603:10b6:510:1ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Wed, 28 Dec 2022 05:14:31 +0000 Received: from CO1NAM11FT074.eop-nam11.prod.protection.outlook.com (2603:10b6:303:16d:cafe::db) by MW4PR02CA0029.outlook.office365.com (2603:10b6:303:16d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17 via Frontend Transport; Wed, 28 Dec 2022 05:14:31 +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 CO1NAM11FT074.mail.protection.outlook.com (10.13.174.254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.16 via Frontend Transport; Wed, 28 Dec 2022 05:14: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; Tue, 27 Dec 2022 23:14:25 -0600 From: "Chang, Abner" To: CC: Abner Chang , Igor Kulchytskyy Subject: [PATCH V2 2/3] RedfishPkg/Include: Add Redfish IPMI definitions Date: Wed, 28 Dec 2022 13:13:35 +0800 Message-ID: <20221228051336.1769-3-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20221228051336.1769-1-abner.chang@amd.com> References: <20221228051336.1769-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: CO1NAM11FT074:EE_|PH8PR12MB6819:EE_ X-MS-Office365-Filtering-Correlation-Id: 354982a5-b44d-4772-2ab6-08dae892669c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E3mdun8Xd3Eo3rEYhOXfNf6Wokkr5b3E1QV+cNX9aDOHUG+30q0Bk/1Ki0O2rDjL9KCXSXrlXwA7oGW9t8qQ/t+5pM1uTBJTFV4WMWduiVn2h/GsRc+C0yV23EGmbwtqLe0ci0D4M4JO5hgVXFCTMM4jlZpI25VjCqch+TDqNF8crqYKLDUBSmvH1Rkh2ns40cuGd6vs6w6XMPJWmAVMK2l++3wQ0JCp1v70TEyP028BdY9y8GkRXGClX7C5acL5H0UiOUnjMjh+tV5n1WjJz718xLl2EH5nMevT2v+RCAyAbiQcMffcEpx4bv7ueGLlohTEeD18PRGLH0H+pxIUgBzEfJrcYhGJ80qmSitaWk2qswx/GhgLpXp+6Fa9tlhHxEWNcMVAFEuUR+rWPOvfCYOawPIbYI2kiW14NG0NQmG3I7ukW99/h0e8k/JXWZS8C8vtDr+30OncQ63vcup+d09z/1aWROta4WTIKPws8kn613vI1aWTdSkSAZrdm0qKXYm3Ycb7Jv7sILYLwWZcuUImyZT4rURc75Nvy7mglwpMW5/5G6s5mdXddyajc8FOFBSixy9GUXPARWWlNHgm1vONf6fdB6oWSkgQfLYsK0/lGw9zA6EosryH8L77MLlBvpJNxXYDNS0oNFdGO3xvL1KVHjv7iBPTkUXeix0vohzSbvPfC4AA/5MOxaoj75qTIPCk+IuIrn2dh1ssspvyyaMd5zl/EguCFzem7CWXUVI= 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)(136003)(376002)(396003)(39860400002)(346002)(451199015)(46966006)(40470700004)(36840700001)(7696005)(186003)(336012)(1076003)(2616005)(16526019)(26005)(40460700003)(478600001)(40480700001)(316002)(86362001)(2906002)(6916009)(6666004)(54906003)(2876002)(36756003)(82740400003)(36860700001)(82310400005)(41300700001)(70206006)(5660300002)(70586007)(47076005)(426003)(356005)(4326008)(8676002)(83380400001)(81166007)(8936002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2022 05:14:30.9163 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 354982a5-b44d-4772-2ab6-08dae892669c 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: CO1NAM11FT074.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6819 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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