From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=DQ4Hzm+r; 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.244.54, mailfrom: abner.chang@amd.com) 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 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=rwHjzYhqKo1PAB+rRnS8aFaYWWRZV74b+e0zazxF+VI=; b=DQ4Hzm+rTcJIbEv2g5SiiIvR+OaOJItZAM3QoPk0GVj4Q8sZYJ8uDynmuf/eGdLoGmj+rkXqhuV/DVAz0jVM5OOkAfxnnBRRW9AMI2Iu7V/olZQ7DlOS/o+wc9c0ywy7duVhwHprFlBu9IAOP7Ik1O8djNpPUOdepp/30FjJfoM= 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 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 (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 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 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" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [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> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20221223123336.2014-1-abner.chang@amd.com> References: <20221223123336.2014-1-abner.chang@amd.com> MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com 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: BCL: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-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)(376002)(346002)(136003)(39860400002)(396003)(451199015)(40470700004)(36840700001)(46966006)(2906002)(15650500001)(5660300002)(2876002)(316002)(54906003)(8936002)(6916009)(41300700001)(36860700001)(4326008)(36756003)(70206006)(8676002)(70586007)(478600001)(40460700003)(2616005)(16526019)(86362001)(82310400005)(7696005)(26005)(186003)(82740400003)(81166007)(356005)(336012)(1076003)(426003)(47076005)(83380400001)(6666004)(40480700001)(36900700001);DIR:OUT;SFP:1101; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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