From nobody Sun Feb 8 12:15:07 2026 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+97792+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 1672278913203818.096753602896; Wed, 28 Dec 2022 17:55:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id WqByYY1788612xDqCKfu4Rui; Wed, 28 Dec 2022 17:55:12 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.89]) by mx.groups.io with SMTP id smtpd.web11.197149.1672278911982523922 for ; Wed, 28 Dec 2022 17:55:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A9tjznGzaIR6FzoCoK1viUQlNksk7reSN7hz26VECgsWFTBKq/rdNlVGd7Z5xohO6SZ8yU/ZKxB5qthi5S3U2pDyYHAk4Ym9aTJ7uxGIdN1lAAG/1wM30PR0utgdy55uy9ldJrUdgI0FdurQpX/aShcQ9TVwUCpasTHjDl/VDN3BfIGEpIOiInf9XVA/0MrQg0BH264jCZNJaekE77UpEIk/Ky8cSYb1e4bjJ/qOxeRx7LlLhPpGBWy+DkBFlhBRXdmoDF20QQWdzIHOa753ZYBwEZZpnbM7zmcM5QqUSiAl3IcAJUphbio0XDPI9fUhfKkQsWU9DoC6p+jQMdjCjQ== 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=dpwN513OSuryRDtDeSblqv8nW1Uy3GhT2T+JrxRIEFw=; b=YoyoO0dVaJGqngNKbtGX0/+lhybXdHoWzVDx1nxl/rRrv0r4DSKfqk/1O0WQ2qhIi+eu5m/eUBiLndMYcBCoMgoix3vMV7HXoI2aw5dJwfDVvxqNUQPldJZiStX8J4jP3nlosXdH/9ohhPsmIZQdKNPvaHmb/z7rb9M9Tx8+2Of5yl376LH4PdZkSkOtNdyYaHolE7ADri+y/nPpdZE8MmIzMhJJZslIUWkPh3SI6z8JAEppsddibHiFYwG2yNscX9mAltwAPTCLX9kYTMBgNstXD106v8/iKPwHb/JLjhQGgPdX7HimDmyxvH5mN+VTHVUVOYx8PXPxKxhaGry8Rw== 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 CY5P221CA0022.NAMP221.PROD.OUTLOOK.COM (2603:10b6:930:b::23) by SA1PR12MB5613.namprd12.prod.outlook.com (2603:10b6:806:23e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Thu, 29 Dec 2022 01:55:09 +0000 X-Received: from CY4PEPF0000C979.namprd02.prod.outlook.com (2603:10b6:930:b:cafe::bb) by CY5P221CA0022.outlook.office365.com (2603:10b6:930:b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.17 via Frontend Transport; Thu, 29 Dec 2022 01:55:09 +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+97792+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 CY4PEPF0000C979.mail.protection.outlook.com (10.167.241.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Thu, 29 Dec 2022 01:55:09 +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; Wed, 28 Dec 2022 19:55:07 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH V3 3/3] RedfishPkg/Include: Redfish USB Interface V2 update Date: Thu, 29 Dec 2022 09:54:37 +0800 Message-ID: <20221229015437.1353-4-abner.chang@amd.com> In-Reply-To: <20221229015437.1353-1-abner.chang@amd.com> References: <20221229015437.1353-1-abner.chang@amd.com> MIME-Version: 1.0 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: CY4PEPF0000C979:EE_|SA1PR12MB5613:EE_ X-MS-Office365-Filtering-Correlation-Id: 240660b6-90e0-4244-fbb4-08dae93fb77d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: eLIclqRsDu+sx9X9OjdoRwb8JwrdpaQktxNVPNOll1D7ErY4lORVCAWnnzFTI1J0VSktO31zd+qHzB1P2vmfN1Xa8PNcFEbBUkt0KlfQe3pwnD6n84/uDVQ5JqJqWeRmbNkGRp7WdD+VB0PMX/+GAqJTTUTZ1+gggBI8XyOLz70y1FtWKZfCq6TdHCLRjYNygbcaHyWto65XUkxPyc9N0jUXLgXG9FVkvVWdh+sH2iic1xpDBp3BEEfUP64Ma3CJ/j37GGQsifn/ByTbMDxIv5lhHz0AQS1wqw44/HZlXJkd/VAEZ2wijXy4uqFxAp1rfo5vtrzOAltxRKXShG8oVV9D2dm3S+i+CNr4SAaQNxROECJF2baumFSMqaOFDMbf6kPr5LcXXavs0YrBgZjHLkVF/fYaAS6pGO/yIN8WqOxBDjHuzLoPJ1Z8kd3Y7b/pnwC509MbJoRkrcuOmVSCnnLJI3rJUpVSOYomIn1Q6kYOdnRUIhMc9XRmTHMyvd53o9cpcBO7VclTCaAw5mkT8kBq5FOBrbwGEkMYuFKCTHqRGPw/ah6dhfByzDMt0UbjjlusaBkYalEV6KODzvq580GwnqkJXoYdVAxNnaDctfoeG30hM1zdN7jvgau7r2eJdPL6+qY0m+Dh3vTMNszArs7mRkKraXY2fYTz3KhrCMrdwMVwTsrRcUA4wvEKW1D25cxQQlWcqyqROGuxgDpJ7qnpfCZFXQC6gdVej+SKsbE= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2022 01:55:09.5951 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 240660b6-90e0-4244-fbb4-08dae93fb77d 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: CY4PEPF0000C979.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB5613 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: lkkQDo4CdQpkBRsmciTa6fAEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672278912; bh=SuqbDV995OE29exFLqBn2ves9t0jTGqnxHO5CB/XvrQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=eyDMjQaB3UqfLsDG7M+ZEDJ2+bi/KIwFS8gRMzrScmsVpfslSrr4tkpkv8c8eIGaGt7 Fj1ogtUD4XLzwxKNBshfkbpVDebRp1l6pv9MDc0ejsfGv+JCUXr4x3x9sOsdmf7WWasFV JveWJfVQYI/0RhpknteeCsBk7+kJcMAitYo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672278914640000013 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 Reviewed-by: Igor Kulchytskyy Reviewed-by: Nickle Wang --- .../IndustryStandard/RedfishHostInterface.h | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/RedfishPkg/Include/IndustryStandard/RedfishHostInterface.h b/R= edfishPkg/Include/IndustryStandard/RedfishHostInterface.h index 49b3ceee39c..022bd1f36ef 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) @@ -40,12 +53,18 @@ typedef struct { ///< idVendor field of the USB = descriptor. UINT16 IdProduct; ///< The Product ID of the devi= ce, as read from the ///< idProduct field of the USB= descriptor. - UINT8 SecialNumberStr; ///< The string number for the = Serial Number of the + UINT8 SerialNumberStr; ///< The string number for the = Serial Number of the ///< device. The string data is= read from the ///< iSerialNumber.bDescriptorT= ype field of the USB ///< 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 (#97792): https://edk2.groups.io/g/devel/message/97792 Mute This Topic: https://groups.io/mt/95931149/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-