From nobody Thu Nov 14 07:17: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+97735+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 1671798861491193.61385557879294; Fri, 23 Dec 2022 04:34:21 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id d3j3YY1788612xOCakGs6gQI; Fri, 23 Dec 2022 04:34:20 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.54]) by mx.groups.io with SMTP id smtpd.web10.71104.1671798855168862745 for ; Fri, 23 Dec 2022 04:34:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IMLW+/CWymAle4JwxArPKciplLP4Kcvh1FnV2D+v26mAZIZXtgz6UQNBc2LhtjqePCpSJ0KsKueT9nJ2osbFFZgQ/wqfh5Ucwdn6qNgy+PYG22Iv4TmFJJHWSiULMud424jA4ToudH57LTOutVCPZUf6dPYBV2zZx44yE4gQ7SAAgQQcJt8Ll9Am85hz59Ckgi+SpUzLlKvHENDejIcdJtBOPlDwfimXIyEC0tig6IXzqsdnmVd3WkdHCAnmpkMiToTucjeih7t9izo8bY6xj1l/9KIIjIgg38oiJs0JhKz7IzYX0dRloeADLobzaG6B2UbxAASYjgGpEkBXbUVDsA== 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=rwHjzYhqKo1PAB+rRnS8aFaYWWRZV74b+e0zazxF+VI=; b=cPZS+8ZyEyx1YT5WdBvEGsp0I1yk8FCTc7US4cGtLxoT+jiqTkBvuv3OWVLPaE/Ssae7+RQqzawCufab07qjTMCVZ1sCM7t13lY/XpvkibyVAuyr9p5rgfYFK9H3vseBDQqcJ1reW7VUUt7HkT2rvAI4CTmFqYjXUQpwFuQ1QE0zBvAtvlUHih6IPuBxJYo14gml/pMogshpqP5YoaUoNzIx4klpT85qyc3TwgVg1HuyVHbdHQ7dL+bbNoXPZprd12a6RpbSLasle5fK08vbjVRK12aUIUeRedFll2y5PRCgYYHSCOgkW6YctPCugJPUDdaeLE0tFppc0FOB8HT81Q== 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 DM6PR07CA0096.namprd07.prod.outlook.com (2603:10b6:5:337::29) by DM6PR12MB4532.namprd12.prod.outlook.com (2603:10b6:5:2af::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.13; Fri, 23 Dec 2022 12:34:13 +0000 X-Received: from DS1PEPF0000E64C.namprd02.prod.outlook.com (2603:10b6:5:337:cafe::48) by DM6PR07CA0096.outlook.office365.com (2603:10b6:5:337::29) 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 12:34:13 +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+97735+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 DS1PEPF0000E64C.mail.protection.outlook.com (10.167.18.42) 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:13 +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:10 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH 3/3] RedfishPkg/Include: Redfish USB Interface V2 update Date: Fri, 23 Dec 2022 20:33:36 +0800 Message-ID: <20221223123336.2014-4-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: DS1PEPF0000E64C:EE_|DM6PR12MB4532:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b527b01-373b-4036-fe50-08dae4e1ff9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: ENyH6n0E5AzvwfFB91Yfmg1NtrTyzPZE3QmyVBPDWPvYZ3/uecpuKYOKAFaYupaNImnGXtBR59P1dNhVmlwnens2VdFkzJpmuvACfQ+3BDGbU8DT+7I7uegpCawnTWWrHoYqnJ3Zi8hlkpMQAzpFOeDnzhck5qT1faS3jyGCvgJvmQdEeZC49O+ebPq8QxVVY/yYp50zCbKeq7qg95+B5mRyEdjEmYrXbo0NzTXuFlPUvbebSY/6G4jt5gYkVWkv5NShJaYlZ6LsGaqhYWS5I8qD9wQl6i1MmDmEkOhimIZZ3+/ToVIfYyaSU0qSRzKd4lUbrZXWQAUtakxWS2R/wwTqL/pCC7K2IDDQIL4Y3qEK/ZAiGqqlMTjxhkBDWqBoKbIw4oX14/uQJj9NBcMmp8Xufi4CsWB7k4S42MO95/nTk31JC++qgVvn0UoUYN6OeRamUQmrS5XHPStTbzvHbEUQzt3V5StaBYONnbXZAmMQS/3tV9LhBvABSD/MtarWuvo3q6/ZYVclqIonkLs1UnJqTjtz4pBYXfZ+r/ro1UOBtEajB4hDc0kFyriR5HXbIW/xiWYGwtKwuyAbmJtWze94D4NtZ9JnkDne+b2AvxNdU07x3JCtMpsEjnX/zHFT5mVindIPTb/tSRxg2S+rC0yfENQiGdgPuiuJw7z9XHoW0Q6DGR+TkISPXvv+Z1mQsissk6OWkgwCTeiM9Vag7Kj/0WEOzNWpblQYuOiI7zk= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2022 12:34:13.2128 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b527b01-373b-4036-fe50-08dae4e1ff9b 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: DS1PEPF0000E64C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4532 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: GFEKkcubEqjINPtq3IOVa3BBx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1671798860; bh=lyzSab+Ub3XGg7yoh6IOnTFMK24KTINAyE4j92yzwBg=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=ki/WCI8g8zSfN1BAVE2+qeuAvBYgxLctINGK6e9hSnyFeMwYrTcsFlajcqqyEFd/igb dEbAoGOc8ERJ7/2DUEvO+reRZTw+/34Hesuula3aV1XoCOxRZORrFhSuaipAWb3Jecrv2 YHYmwihfh/NDMPDKvT0Ohc16spr5iAHrpEQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1671798863426100001 Content-Type: text/plain; charset="utf-8" From: Abner Chang Support USB_INTERFACE_DEVICE_DESCRIPTOR_V2 which is updated in Redfish Host Interface spec v1.3. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy --- .../IndustryStandard/RedfishHostInterface.h | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/RedfishPkg/Include/IndustryStandard/RedfishHostInterface.h b/R= edfishPkg/Include/IndustryStandard/RedfishHostInterface.h index 49b3ceee39c..5337c3234b2 100644 --- a/RedfishPkg/Include/IndustryStandard/RedfishHostInterface.h +++ b/RedfishPkg/Include/IndustryStandard/RedfishHostInterface.h @@ -3,6 +3,7 @@ =20 Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
+ Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -29,6 +30,18 @@ #define REDFISH_HOST_INTERFACE_HOST_IP_ADDRESS_FORMAT_IP4 0x01 #define REDFISH_HOST_INTERFACE_HOST_IP_ADDRESS_FORMAT_IP6 0x02 =20 +/// +/// Definitions for IP assignment tyeps. +/// +typedef enum { + RedfishHostIpAssignmentUnknown, + RedfishHostIpAssignmentStatic, + RedfishHostIpAssignmentDhcp, + RedfishHostIpAssignmentAutoConfigure, + RedfishHostIpAssignmentHostSelected, + RedfishHostIpAssignmentReserved +} REDFISH_HOST_IP_ASSIGNMENT; + #pragma pack(1) /// /// Structure definitions of Host Interface device type 04h (USB Network I= nterface V2) @@ -46,6 +59,12 @@ typedef struct { ///< descriptor, and is convert= ed from Unicode to ASCII ///< and is NULL terminated. UINT8 MacAddress[6]; ///< The MAC address of the PCI= /PCIe network device. + + /// + /// Below is defined in Redfish Host Interface spec v1.3 + /// + UINT16 Characteristics; ///< Additional device characte= ristics. + UINT16 CredentialBootstrappingHandle; ///< Credential bootstrapping h= andle. } USB_INTERFACE_DEVICE_DESCRIPTOR_V2; =20 // @@ -74,6 +93,10 @@ typedef struct { /// /// Define union for the Host Interface Device Descriptor /// +#define USB_INTERFACE_DEVICE_DESCRIPTOR_V2_SIZE_1_3 0x11 ///< Leng= th USB interface device v2 defined in + ///< Redf= ish host interface spec v1.3 +#define USB_INTERFACE_DEVICE_DESCRIPTOR_V2_SIZE_1_2 0x0d ///< Leng= th USB interface device v2 defined in + ///< Redf= ish host interface spec v1.2 typedef union { USB_INTERFACE_DEVICE_DESCRIPTOR_V2 UsbDeviceV2; ///< Devi= ce type USB V2 device discriptor. PCI_OR_PCIE_INTERFACE_DEVICE_DESCRIPTOR_V2 PciPcieDeviceV2; ///< Devi= ce type PCI/PCIe V2 device discriptor. --=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 (#97735): https://edk2.groups.io/g/devel/message/97735 Mute This Topic: https://groups.io/mt/95843861/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-