From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.83]) by mx.groups.io with SMTP id smtpd.web10.174866.1672204475249324255 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=WEOyywj9; 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.237.83, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rc1vjlOm5lQ/96YO6/SxmnZJ6IkGh73Pqan47Lqyr52ylhzETwNtOLjpR9jM1YRnLFvPs1YL6CbvlDoTlDjXyhKA9XBTyfX1lg0559wQN4kcCx6BTkiMBHaxfqnvi8qucH3xZVW89maiNLVF451Zk4u06X1x/LUGDgBGqs2Sbgt5wmxqRyYfpiBolM4Ki0WPf6kGcf/PUeIW++zc75Nz7IEuq8wmNljgf3yTYA2wcwpsE/LOX/PdLa3468TilDuwGvFLmU71xEZpIn2xat+ffoIwwf7RX/4IqPJWLTlc1rnq4N0WYdfL0ZILnSFDmn/MddYpecceQjpyjDqnqSHzDQ== 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=iYDEBjCKlQXO3iDoBKuwYeYL/fxWy62y/j1Hu0sp1r4=; b=kg3d/yi/vaEtd50OpoXnlaJnol6IHxBrFYHUkWe7RrmnFuh7L16MejMlrsxQoMKHj+GnWGViHuPjguDMi9gl19TXWJB8pUDN7ZEUKxVpwFAOnWvvOtTUzRK1JJDR5S91SdTT7c2yz1AQLuTuWaPdDdK+A4cu5TqdzSBQYZG2461tE4VV8KNBcvICZzIGjiTey0mclXivIVV2JQDDgmzGPUY8ift9KfaZgOuuu169X7kCxYMkRiSmI6K8iuc4/1s+8NhxSuWqZY3yUL0mhl/VhnG1DI4JhECg2W7h78ZrnogaQLBD485JcsVKJ2YetMIeFNmKGZtDg3wtzj0d4HKn0Q== 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=iYDEBjCKlQXO3iDoBKuwYeYL/fxWy62y/j1Hu0sp1r4=; b=WEOyywj9oqBFQ91ETyrbfdxwycILN2Dpc0ngqqbsVaR8WWcbfGmS2ExOTAYa5NgqRFXNC5Be9b68OnlVy09IE9RECBVj5prtLAhl8o1T0VT5iLYwPtghnIi2kf1CQGN2o09vS9dtlsuIF5CdlwgeCqaqwKBr+CrGwUcWB9P/C1E= Received: from MW2PR2101CA0012.namprd21.prod.outlook.com (2603:10b6:302:1::25) by PH7PR12MB7985.namprd12.prod.outlook.com (2603:10b6:510:27b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.15; Wed, 28 Dec 2022 05:14:31 +0000 Received: from CO1NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:302:1:cafe::9e) by MW2PR2101CA0012.outlook.office365.com (2603:10b6:302:1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.7 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 CO1NAM11FT011.mail.protection.outlook.com (10.13.175.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.17 via Frontend Transport; Wed, 28 Dec 2022 05:14:31 +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:26 -0600 From: "Chang, Abner" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [PATCH V2 3/3] RedfishPkg/Include: Redfish USB Interface V2 update Date: Wed, 28 Dec 2022 13:13:36 +0800 Message-ID: <20221228051336.1769-4-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: CO1NAM11FT011:EE_|PH7PR12MB7985:EE_ X-MS-Office365-Filtering-Correlation-Id: 9887a53c-f9ef-4e3e-3579-08dae892670f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Gykrnuz5irwtPV7ZkQIXsPZTNPQpjKwWKGE5fuJRj84hy3ULcI4PeC5FQ4+0MUcDiBqogZiEfjhgNfjCe/fb4MfmeLN2j7dT787taszqFoLQFmLIEnflq4ZXKW/Orp5GslfHb2CnSqPWLDjQisqaURlqYyZTvrMtjs4tHTF/ZYqkaXDWaOZ18UaqjHS9xhAH/USVQ9OqYcIWTS2yFbCdE06CA9Br1sdAJ+F25J8wTl49dtCzq5zENlMbPnQhtBsx7eGW5eXywgPvimRkKCCW+WtoWOfua/rsrqzRWWc5ZKIby6d11BxCyfv3EcUTfuhV8cIOhbkfgJe2Xz8hnGy4Bvip8qsmv/YK5PHxCi3ORGqZWvlmxVZFcww7MJCPY/m/WBSq4/NV4mdlF0QPGXF88eQ/TL+IWsq0VSitvKN7qtADyE5vG1UtuHNJNzOypBSpVJjUCZIYDlP9pOwHj1uHgVkdsAIhRevU5NcBhmcK6AoyA2zzsK6g/9KFbg60KkJyCTCSJ44tq1Lcu0CPTNdkXbBJxSujtUUD3tEPXlGoUTLRdv5+8Vc+Lk3sNfqUnAe8ozZWscR3ZG+rPwSzc9/NIAkNPcumOssO/GVwunYwpCbNe/rwCj16/Tz5o6qFKHZ/tR64+eZHFlFJmVOexJwNpl0IxYLAFufuD0IZzDOybREm0xDjHUbD5CAJqEWtxNkYJDVb4T4o2sbYZIQjIZ2FXu3+Y8eMczfe+l1XFj11UBQ= 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)(396003)(136003)(376002)(346002)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(8676002)(8936002)(4326008)(5660300002)(86362001)(40480700001)(70206006)(70586007)(41300700001)(36860700001)(316002)(36756003)(15650500001)(6916009)(54906003)(83380400001)(40460700003)(2876002)(2906002)(426003)(47076005)(81166007)(82310400005)(336012)(6666004)(478600001)(1076003)(2616005)(7696005)(186003)(16526019)(82740400003)(356005)(26005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2022 05:14:31.6859 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9887a53c-f9ef-4e3e-3579-08dae892670f 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: CO1NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7985 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 | 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