From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (NAM02-BN1-obe.outbound.protection.outlook.com [40.107.212.79]) by mx.groups.io with SMTP id smtpd.web11.5092.1672973904468104643 for ; Thu, 05 Jan 2023 18:58:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=GcSEzBuD; 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.212.79, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lUIYR0W9KJTtWDH0Fu1oo80XfynUPB/+YkPRjBwVARwFC3tbPNRfbuoSxfSb1824qJ67Lx9L6NqeiiRfF5yJavLLXnjtzrBjCtIjMZuFDaCWVqda+oXSn4vGVQ+ifKFE7PKzMH7ffWI8UEjWjgMypfj2173FUOGV3nnndCTO9bHL8o6aHokX0hqUQ3DsQ/WxQ1hpZIB7sC16I0+BItF9Ot04CKlIuU7F5mIhYRAqxWO5Y/yVHWdcVcRirPeFnWdG/PQVo38MMXy9mfjnWlu7YSI2bzbuKEfM8yT+A4iOk8l4PJGl2/IsYlRZG8631FTEGROXMtz9DZWU3pVVSjKVXw== 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=1iaWG+f6z+x32Pc8KdSlA4acCIpNpoMw9zLQLTK2P+o=; b=jq5J0vtTfinmxwKFbU+ksjijuykcpdySIy7Wz70tjDhzaaC7wdThZk5jZb6IkyBpaA96l9VoIC+Lm8ZeYTY73ro83AVy2Mvb8hlD1J/1EJ11Ccko8Khc2oQReF5PfztMcwrSyFpXKwWqAMkZFlBqZOC5LapWq9gXg76LX2XWv31HTP12ADCN0/LbFstzkrXZvNgP2CG3123yNueQPXgCHCevBoK+vwA7f0AYGvy7sBMKhf3PX94SaJSbvkKw5g+G7GQtqKHdCkl58JVxcF6kJgtiBGE7ysCkiFHdp8+eDFEbLTxz0m9rX2Hyl5lOO/PWWiHL17eh1+oyjH/EkmhtaA== 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=1iaWG+f6z+x32Pc8KdSlA4acCIpNpoMw9zLQLTK2P+o=; b=GcSEzBuDcXI+EP3UBjXCRiKlv4YT9rz/l7SYsAGXUdE6EptFuneQJ2SkNmLa7gMA59LWLya4y5Sv3UbuGJmNP9c1gklR8JwdDf/Rr2sI5NSXTfDmATdAGSZyV9jY/EQMXUYo+aM+ETRuE0kIiGO3a1er8oBPm3OfXUEb3HWDBxI= Received: from MW4PR03CA0220.namprd03.prod.outlook.com (2603:10b6:303:b9::15) by DS0PR12MB8367.namprd12.prod.outlook.com (2603:10b6:8:fd::17) 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:21 +0000 Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::97) by MW4PR03CA0220.outlook.office365.com (2603:10b6:303:b9::15) 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:21 +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 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:20 +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; Thu, 5 Jan 2023 20:58:19 -0600 From: "Chang, Abner" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [PATCH V4 3/3] RedfishPkg/Include: Redfish USB Interface V2 update Date: Fri, 6 Jan 2023 10:57:55 +0800 Message-ID: <20230106025756.1184-4-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20230106025756.1184-1-abner.chang@amd.com> References: <20230106025756.1184-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: CO1NAM11FT037:EE_|DS0PR12MB8367:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f512e65-1706-4f45-0b87-08daef91dea9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H7Qc0GI8lmZCqFzoI1cCGSm1TRD8fgYUaq/Fq/AvVcxYnbBO4PNFTV4obYJVR4Dk18+jIi1/RQRfhFSp0MTt0nmH83EjnnqTI57IPgCF5IMPVcjTrBlW5L/NOHK7k69TifQNJYqQmxT+1PTO3whjXr1kiNbhlrhZS5liTF0oWZfFbL6TShZ7LHAdpJnUwaKGTmc8ByOBzx9ylITJ7uZwU6+XoaYzpf9i5M/hT/HKeoAd+gNUFkoAG6gmRhveBXk3S/OYg25ROcBZmAuhU4jABelYvN7IM6Kxm367hcDKpjWpeQbJ+NX8imJB4rOWMqs761Yh5W5h3trPwTctvqr2/sWyoq/u5YO9/faTE6hd+ikmJSElfbfpCnTb6QwESTdOD2oznrZcemR1YvTwnl3JCHRaVwkXVrJNF7SO2FhOwF39I5RmWkBdr0AqFUB2ecPleEFQwwQQWGYHCMVjtNwdpUXd/uxKIzJv/WRoZ8oL7eq7uyaCo9qYZ8F4wF6NUqD4QpDNMWJToiuyG5qiHszusUEAXVlfxYYDtD5hwU8Mv8IYFPlSVkorJ4hr2RbAhtT1TY0AeZ5BIpL6lzOz1aCdRQlJxPq8H7qo3JA5T7x0zlqLa7rBnyODFfkmdMrm7FQIwDGkihc8r4lP8blePbhU/ZLs8132hO6NPu505brDLKrbYWCFjSTiE+cndrTHNnK+4I5lusbLE58Mm/6wFhFKDEP3i4GkOvjRaRRyFDgKqyw= 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)(39860400002)(396003)(376002)(346002)(451199015)(46966006)(40470700004)(36840700001)(2906002)(5660300002)(8936002)(8676002)(41300700001)(4326008)(2876002)(70586007)(316002)(70206006)(54906003)(6916009)(478600001)(336012)(186003)(82310400005)(2616005)(26005)(16526019)(40480700001)(7696005)(6666004)(1076003)(426003)(83380400001)(15650500001)(47076005)(356005)(82740400003)(81166007)(40460700003)(86362001)(36756003)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 02:58:20.9857 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6f512e65-1706-4f45-0b87-08daef91dea9 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: DS0PR12MB8367 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 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..d125347cc04 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) 2023 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