From nobody Thu Nov 14 07:13:01 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+98051+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 1672973901830425.13482044182695; Thu, 5 Jan 2023 18:58:21 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Hx3oYY1788612x4ih9rM4fPt; Thu, 05 Jan 2023 18:58:21 -0800 X-Received: from NAM02-BN1-obe.outbound.protection.outlook.com (NAM02-BN1-obe.outbound.protection.outlook.com [40.107.212.86]) by mx.groups.io with SMTP id smtpd.web10.5183.1672973900554505251 for ; Thu, 05 Jan 2023 18:58:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VDUnLgWpb43scxdwjp8NWQV6plmXz4kE4rGi+72v/Nh+ojL6H+gxWhkuoApHJoTB3zOMMN/n2Xw68oP7fQxoeMetWCqeBmhC8sVUg0dtXxZYC4WPzxxO5Oijjti9Bv0JWVmC+g3esV/6p3AS+UjhyVeGU+XpsgoWu2tJykbaMxVAZmTIKGecDi9B9vygW7glKpRLXd/VKk/t3qEmb26atagMBX1ENVSrib+iVo71pldHltAa8odg6tLNKysV3Y+R2A+y4TH0EWUviyxknhE1gCknLCfVS6v6D/kysM3DD0TORAgLSDgHBhOk3aZJp7IdT8gFJ/0/nYubv5FpDTjmJw== 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=B7OC8TduVoYhSvEqKBpFSRvtGtg47bs7EQFuygW7mdk=; b=Mc8MY+FLzCsXtgNY/XfCWxr7vVFVnG17gMmGZgp1XPVi17In7QqH78Ly7nQ0XI1Ipj/7aINUCP0I3X8kzhgMCPZ3kmTaUa0uxM7HvUapq/D5miHF8/t20mi0CANlJ25p/52YX9TV1d/gA3sH0zh38S5LSzeBbraLijOqI7tAeSD3/tC3gJhB1P9rxI9Pfx3D1v6P3OghlyJAqB94RsMaZTVjAl9rXsjt/T1bT/u61tW9ifByUqHzr/zLMMMGFqaw1CBC0+y34dUMVhEsJjxrRUMBRdfP1IZDBcidopqu2Cqjs9Ft/io3j2+tulifr8WTIlRM/6cdo/QgKvNolbPSkg== 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 MW4P223CA0001.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::6) by IA0PR12MB7555.namprd12.prod.outlook.com (2603:10b6:208:43d::5) 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:18 +0000 X-Received: from CO1NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::1d) by MW4P223CA0001.outlook.office365.com (2603:10b6:303:80::6) 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:18 +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+98051+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 CO1NAM11FT045.mail.protection.outlook.com (10.13.175.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.6 via Frontend Transport; Fri, 6 Jan 2023 02:58:17 +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; Thu, 5 Jan 2023 20:58:14 -0600 From: "Chang, Abner via groups.io" To: CC: Michael D Kinney , Liming Gao , Zhiguang Liu , Nickle Wang , Igor Kulchytskyy , Isaac Oram , Nate DeSimone Subject: [edk2-devel] [PATCH V4 1/3] MdePkg/IndustryStandard: Update IPMI definitions Date: Fri, 6 Jan 2023 10:57:53 +0800 Message-ID: <20230106025756.1184-2-abner.chang@amd.com> In-Reply-To: <20230106025756.1184-1-abner.chang@amd.com> References: <20230106025756.1184-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: CO1NAM11FT045:EE_|IA0PR12MB7555:EE_ X-MS-Office365-Filtering-Correlation-Id: f4367c27-6116-43c0-02d4-08daef91dcc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: PKWFLW0hys5UZXTD7DXAtKnQBr/18H5Qzul531kol9gvflDP2zmr1/DRJPSCGRx3U5RyIZBCjxQsrK62/I3u81Luz6QQs6uKLL87Q3DOAMBvcjV18kIwVlowbZZn39niLSywsTzPAyCQSVQbyisojaArs5Wvxf7oyrdj4dCPLt2/XHuaN8kuZtwMaQcslKVjJ9gwTbvgy0Vdy4wNqD3QCnt5mZF0J1HRkcTv3nGsm5MlHfH6pXgE/DSacscuSHmXwr0u/rh/IKGrCTh8rHDZnzv064f6CI3mxK9fsevRjTpUTUgZeD6m5Ac9e7fJfdT1msm4+XIFhN+A2Nq0OScLGii36EfnINdpCPpSd6H2kB83tpxGjy+AbGjvrUVnyASipkOBdeb14ICYeR2KF88ZGAoUc5K1jkOn+EoeF/lxfEXzfY0TZEi/KnOUd44XzVr00y0d19hRCDQROFKJC0mQZ7M4YIhJuNBoiEAHybUq/qZWCi/p/pG6Z1urPeGfZkw10v4vZ5zpknEx/C8UWXcse3iaEdyf6qufaS9HNm3hio3ZXr35UMnI3iRkg1q5J8hlr3waE7yKfCFcsl3IVRTOY6qYU5olx/+riS9D9jiPEDwJfrRJZosyOvMyLnqk3zDfcfZ4hphf1DgTAAcaTMDakHQDCV7iN8/NAvqCUVoA40SLE+gJAZLO6KC0E4kUFSC8QPgxFHel6h8GE23SabDLX5lAMmm+ewNKzR1MEDFem4Q= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 02:58:17.8201 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4367c27-6116-43c0-02d4-08daef91dcc6 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: CO1NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7555 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: fmbJYEcA2xqhmSu8hqJSTlJPx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672973901; bh=8+72H/rC0Ao859VpbiObeghtxX06DzHcORT6vf/m6sk=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=XWX6BGkd3E7CuCubUphk3j1muPMqo98r+/FUODZjLKlD/RHgN+1eZRya2fP2fnSvXmQ NIw2kGPIGlXtpdTVr+GHSSuR/YyV8C9yKJN92lZOsBYo/BHSZ3GB1LvRlQFyBLeLL90RB cCypYE4kwrAzfv9maYCrxSU/TbgxshXx828= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672973902122100006 Content-Type: text/plain; charset="utf-8" From: Abner Chang This change updates IPMI header files to support build up SMBIOS 42 Redfish Host Interface record using the information retrieved via IPMI App/Net Function. Signed-off-by: Abner Chang Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Nickle Wang Cc: Igor Kulchytskyy Cc: Isaac Oram Cc: Nate DeSimone --- MdePkg/Include/IndustryStandard/Ipmi.h | 17 +++++++++ .../Include/IndustryStandard/IpmiNetFnApp.h | 37 +++++++++++++++++-- .../IndustryStandard/IpmiNetFnTransport.h | 32 ++++++++++++++++ 3 files changed, 82 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Ipmi.h b/MdePkg/Include/Indust= ryStandard/Ipmi.h index 9d1d412b53e..d6e7436b5ae 100644 --- a/MdePkg/Include/IndustryStandard/Ipmi.h +++ b/MdePkg/Include/IndustryStandard/Ipmi.h @@ -6,6 +6,7 @@ and Appendix H, Sub-function Assignments. =20 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
+ Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ =20 @@ -52,4 +53,20 @@ #define IPMI_COMP_CODE_SUBFUNCTION_DISABLED 0xD6 #define IPMI_COMP_CODE_UNSPECIFIED 0xFF =20 +#define IPMI_CHANNEL_NUMBER_PRIMARY_IPMB 0x00 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_1 0x01 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_2 0x02 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_3 0x03 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_4 0x04 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_5 0x05 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_6 0x06 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_7 0x07 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_8 0x08 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_9 0x09 +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_10 0x0A +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_SPECIFIC_11 0x0B +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_RESERVED_12 0x0C +#define IPMI_CHANNEL_NUMBER_IMPLEMENTATION_RESERVED_13 0x0D +#define IPMI_CHANNEL_NUMBER_PRIMARY_PRESENT_IF 0x0E +#define IPMI_CHANNEL_NUMBER_PRIMARY_SYSTEM_INTERFACE 0x0F #endif diff --git a/MdePkg/Include/IndustryStandard/IpmiNetFnApp.h b/MdePkg/Includ= e/IndustryStandard/IpmiNetFnApp.h index 0721bc6b271..a5835ba08c0 100644 --- a/MdePkg/Include/IndustryStandard/IpmiNetFnApp.h +++ b/MdePkg/Include/IndustryStandard/IpmiNetFnApp.h @@ -12,6 +12,7 @@ and Appendix H, Sub-function Assignments. =20 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
+ Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ =20 @@ -486,6 +487,11 @@ typedef struct { // #define IPMI_APP_GET_SYSTEM_GUID 0x37 =20 +typedef struct { + UINT8 CompletionCode; + EFI_GUID SystemUuid; +} IPMI_GET_SYSTEM_UUID_RESPONSE; + // // Constants and Structure definitions for "Get System GUID" command to f= ollow here // @@ -671,6 +677,30 @@ typedef struct { #define IPMI_CHANNEL_MEDIA_TYPE_OEM_START 0x60 #define IPMI_CHANNEL_MEDIA_TYPE_OEM_END 0x7F =20 +// +// Definitions for channel protocol type +// +// Not available +#define IPMI_CHANNEL_PROTOCOL_TYPE_NA 0x00 +// IPMB-1.0 +#define IPMI_CHANNEL_PROTOCOL_TYPE_IPMB_1_0 0x01 +// ICMB-1.0 +#define IPMI_CHANNEL_PROTOCOL_TYPE_ICMB_1_0 0x02 +// Reserved +#define IPMI_CHANNEL_PROTOCOL_TYPE_RESERVED 0x03 +// IPMI SMBUS +#define IPMI_CHANNEL_PROTOCOL_TYPE_IPMI_SMBUS 0x04 +// KCS +#define IPMI_CHANNEL_PROTOCOL_TYPE_KCS 0x05 +// SMIC +#define IPMI_CHANNEL_PROTOCOL_TYPE_SMIC 0x06 +// BT-10 +#define IPMI_CHANNEL_PROTOCOL_TYPE_BT_10 0x07 +// BT-15 +#define IPMI_CHANNEL_PROTOCOL_TYPE_BT_15 0x08 +// TMode +#define IPMI_CHANNEL_PROTOCOL_TYPE_TMODE 0x09 + typedef union { struct { UINT8 ChannelNo : 4; @@ -713,10 +743,9 @@ typedef struct { UINT16 AuxChannelInfo; } IPMI_GET_CHANNEL_INFO_RESPONSE; =20 -// -// Definitions for Get Channel Info command -// -#define IPMI_APP_GET_CHANNEL_INFO 0x42 +typedef struct { + IPMI_CHANNEL_INFO_CHANNEL_NUMBER ChannelNumber; +} IPMI_GET_CHANNEL_INFO_REQUEST; =20 // // Constants and Structure definitions for "Get Channel Info" command to = follow here diff --git a/MdePkg/Include/IndustryStandard/IpmiNetFnTransport.h b/MdePkg/= Include/IndustryStandard/IpmiNetFnTransport.h index 19db84e5122..2024c35f7fa 100644 --- a/MdePkg/Include/IndustryStandard/IpmiNetFnTransport.h +++ b/MdePkg/Include/IndustryStandard/IpmiNetFnTransport.h @@ -11,6 +11,7 @@ and Appendix H, Sub-function Assignments. =20 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
+ Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ =20 @@ -60,6 +61,7 @@ typedef enum { IpmiLanReserved3, IpmiLanDestinationType, IpmiLanDestinationAddress, + IpmiLanVlanId =3D 0x14, IpmiIpv4OrIpv6Support =3D 0x32, IpmiIpv4OrIpv6AddressEnable, IpmiIpv6HdrStatTrafficClass, @@ -103,6 +105,14 @@ typedef enum { IpmiOem2 } IPMI_LAN_DEST_TYPE_DEST_TYPE; =20 +// +// Destination address format +// +typedef enum { + IpmiDestinationAddressVersion4, + IpmiDestinationAddressVersion6 +} IPMI_LAN_DEST_ADDRESS_VERSION; + typedef union { struct { UINT8 NoAuth : 1; @@ -177,6 +187,10 @@ typedef struct { UINT8 ArpInterval; } IPMI_LAN_ARP_INTERVAL; =20 +typedef struct { + UINT8 IpAddress[4]; +} IPMI_LAN_DEFAULT_GATEWAY; + typedef struct { UINT8 Data[18]; } IPMI_LAN_COMMUNITY_STRING; @@ -227,6 +241,24 @@ typedef struct { IPMI_LAN_MAC_ADDRESS AlertingMacAddress; } IPMI_LAN_DEST_ADDRESS; =20 +typedef struct { + UINT8 VanIdLowByte; +} IPMI_LAN_VLAN_ID_DATA1; + +typedef union { + struct { + UINT8 VanIdHighByte : 4; + UINT8 Reserved : 3; + UINT8 Enabled : 1; + } Bits; + UINT8 Uint8; +} IPMI_LAN_VLAN_ID_DATA2; + +typedef struct { + IPMI_LAN_VLAN_ID_DATA1 Data1; + IPMI_LAN_VLAN_ID_DATA2 Data2; +} IPMI_LAN_VLAN_ID; + typedef union { IPMI_LAN_AUTH_TYPE IpmiLanAuthType; IPMI_LAN_IP_ADDRESS IpmiLanIpAddress; --=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 (#98051): https://edk2.groups.io/g/devel/message/98051 Mute This Topic: https://groups.io/mt/96087044/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- From nobody Thu Nov 14 07:13:01 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+98052+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 1672973902796698.5179392012229; Thu, 5 Jan 2023 18:58:22 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 7GKLYY1788612xjZm0FKhyug; Thu, 05 Jan 2023 18:58:22 -0800 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.86]) by mx.groups.io with SMTP id smtpd.web10.5185.1672973901778072790 for ; Thu, 05 Jan 2023 18:58:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=laJk9F0HHOkSj1vaylc7KvzndAoUlNQUuDDZH7iFEkjPTnhPLb62A0FUkmGhRp1JfdnlQsrGSdHDAxhzo6cC3w/qc2qH2FKvVYn/UVbVCEaNcLIBfcayBPGUVOnW3zz+SNg5n4uKcuyPwv9oLcO5KYtqo1cZfXZAKQ2weIf9YccS6x6ltJfqZI9rfi8/zi9ewPIKADe5zFXiep4eSh9esNDol8SUR6QdDlwsZ/ES9cElNRuH1ZgrOthfwp5lzS4OtDbAv1VVQuyxMuGr4irAitPksSUWW7vhZy595fQcCYlB5JMQrTk8E/IjuqUFrig6ySr+WBkh3UFmeVj//MFgOg== 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=WBQF1zJV0t8j7bkD4yAvUVloXcdGmrMbrdosyOU8ycw=; b=NjkswCjuRsq2/EMAYgeclSFBeVt6H1UexChw6EyNG69YVrAewS5+xrxdb6/5qrsamCE13eF7AdZCWsRrtHIH5nBJ0YMLOMDAzwzdi7afudHYKSBLX0rW9SpGlRQEfhNKy6SE00Uvjdc3ct4ex8vw+SlFKilxbIXul35Kbr5uJckeWfrhr1wfS9FVBFVA3Yp+x5ioj17oU18E8OoeiesoACNb75V+5OcDLMIjn1D5ncSB7apXau5s52Z1qaZXhZ8fdoWCJ7D/36cA1nl8TbqDM+8fqkR7NnxQldihEzlNrj076PgRQ0pNsCJoYMFDo/xXamv63GVvKhXAGKVXf54cUw== 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 MW4PR03CA0236.namprd03.prod.outlook.com (2603:10b6:303:b9::31) by SA0PR12MB4496.namprd12.prod.outlook.com (2603:10b6:806:9b::14) 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:20 +0000 X-Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::c5) by MW4PR03CA0236.outlook.office365.com (2603:10b6:303:b9::31) 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:19 +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+98052+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 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:19 +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; Thu, 5 Jan 2023 20:58:17 -0600 From: "Chang, Abner via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Isaac Oram" Subject: [edk2-devel] [PATCH V4 2/3] RedfishPkg/Include: Add Redfish IPMI definitions Date: Fri, 6 Jan 2023 10:57:54 +0800 Message-ID: <20230106025756.1184-3-abner.chang@amd.com> In-Reply-To: <20230106025756.1184-1-abner.chang@amd.com> References: <20230106025756.1184-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: CO1NAM11FT037:EE_|SA0PR12MB4496:EE_ X-MS-Office365-Filtering-Correlation-Id: 13ec60ad-4e28-4984-cb2d-08daef91ddc1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: n7NZ9rbegxR2ir6Dt0o0Mqdzw7v4bbi/jDYvUfEACsQLnnik1gH6RpgoccdS66RrSZmiHr+WIb/cgj36mqjd5jcm48Rmbl4ZIeY9W4hMwLn4k2NLFkW6jJitpnFVO4yNGp8m9Tsfv7bD4jygi4l/RunwOA7RgLMQj0wucTAdWmWAQkv+wZsj0QvA0DHORN/mvPZ1OGM0Be+W5c5oFTRf6349zibdOxvBw6RWoqJkFtCRNHkIhZ75HfoBNS4ZvVWXVBrxBtA7wbGAW7fb5QWiY85J+cYOeH9zqMSSplvHEJVMFq3/wUHtOw4BRJsePStKLTEShiawzj5+UY2u4D2GRB4GjizcY4pkp5mFoil32Vpvmb0NJQ+N+Y0D2gmWbng6YBkERNVwpPTWRdTISMnkJMpkR9nRRs6+5JG6NOhC8vfe3Vpyw0IFR7GISOXOohOQnZFr1nq1luDoAgOjipT2vvbEakwdD8VdiiJmCnre8XWav58SHxREaSNiO/tcdMPn6vBBifePxX4B013dYG4WkappEz0/XGRjQEyucWOvwRsNLk88Ohy/PFGja12S1E53GHHFNueQ+FOoxHVtP6v07HzJqKPow4QdzNirrCCfgvD8sTvumiv+I7tVGhjBYllt1HRKrCs4HW+i1/zZb/hmKxufnWhom3glfNEuApJ0XUldgiftZwHAS/c9+IhjhcsnHTHdA/LBYfKu8rE8VAZLdQORI8YBMmQKdV5jrbnzpy4= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 02:58:19.4701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13ec60ad-4e28-4984-cb2d-08daef91ddc1 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: SA0PR12MB4496 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: cAel3JzB5tT8GXyHsa9R8U7Lx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672973902; bh=/PUagMnsUWPCH2/L7/sn7rjZv/7BkvjKTLxA7TWK7kc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Qz/7Y+WvIkXmVkvE9QvzvH30BxMt9N300yWj7w4oXtY6C7w6mHsbYBuRhyBHZDMq8vg WmqpCDlErbMGcYocvMsSo7Iyq+3naYkY0TQRHijxAbYrx8yauurw+3FoiD2u8PGm3hgLI pQOmQQRhnTwC3bWg6JYBvKNfkevZrvNjOMM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672973904099100010 Content-Type: text/plain; charset="utf-8" From: Abner Chang Add the definitions of Redfish Host Interface credential bootstrapping IPMI commands. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Reviewed-by: Igor Kulchytskyy Reviewed-by: Isaac Oram --- .../RedfishHostInterfaceIpmi.h | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 RedfishPkg/Include/IndustryStandard/RedfishHostInterfac= eIpmi.h diff --git a/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h= b/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h new file mode 100644 index 00000000000..9b4a5eb8e3f --- /dev/null +++ b/RedfishPkg/Include/IndustryStandard/RedfishHostInterfaceIpmi.h @@ -0,0 +1,51 @@ +/** @file + Redfish Host Interface IPMI command + + Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef REDFISH_HOST_INTERFACE_IPMI_H_ +#define REDFISH_HOST_INTERFACE_IPMI_H_ + +#include +#include + +#define REDFISH_IPMI_GROUP_EXTENSION 0x52 +#define REDFISH_IPMI_GET_BOOTSTRAP_CREDENTIALS_CMD 0x02 +#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_ENABLE 0xA5 +#define REDFISH_IPMI_BOOTSTRAP_CREDENTIAL_DISABLE 0x00 +#define REDFISH_IPMI_COMP_CODE_BOOTSTRAP_CREDENTIAL_DISABLED 0x80 + +/// +/// Per Redfish Host Interface Specification 1.3, The maximum length of +/// username and password is 16 characters long. +// +#define USERNAME_MAX_LENGTH 16 +#define PASSWORD_MAX_LENGTH 16 +#define USERNAME_MAX_SIZE (USERNAME_MAX_LENGTH + 1) // NULL terminator +#define PASSWORD_MAX_SIZE (PASSWORD_MAX_LENGTH + 1) // NULL terminator + +#pragma pack(1) + +/// +/// The definition of IPMI command to get bootstrap account credentials +/// +typedef struct { + UINT8 GroupExtensionId; + UINT8 DisableBootstrapControl; +} IPMI_BOOTSTRAP_CREDENTIALS_COMMAND_DATA; + +/// +/// The response data of getting bootstrap credential +/// +typedef struct { + UINT8 CompletionCode; + UINT8 GroupExtensionId; + CHAR8 Username[USERNAME_MAX_LENGTH]; + CHAR8 Password[PASSWORD_MAX_LENGTH]; +} IPMI_BOOTSTRAP_CREDENTIALS_RESULT_RESPONSE; + +#pragma pack() + +#endif --=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 (#98052): https://edk2.groups.io/g/devel/message/98052 Mute This Topic: https://groups.io/mt/96087046/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- From nobody Thu Nov 14 07:13:01 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+98053+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 1672973905415856.137570037714; Thu, 5 Jan 2023 18:58:25 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 1e8wYY1788612xrhcMTKRl8N; Thu, 05 Jan 2023 18:58:25 -0800 X-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 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 X-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 X-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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98053+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 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 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; Thu, 5 Jan 2023 20:58:19 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [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> In-Reply-To: <20230106025756.1184-1-abner.chang@amd.com> References: <20230106025756.1184-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: 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-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-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 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: 6IbD6LgL1f1voKa0rZ8sTQuVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672973905; bh=MkIxYcCa7c8qlPVFCY3a3e28x763cPe3xKMyOI5+MEY=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=bFPJtNNRoGyqiiYyAWcGi7HZ5ZL8ICBmG+v2Nhrr1g9zN9kn8jzKIRVCIX5oSFd8V+1 SUG7RZkWMqMOcDHh2b9sa2qLEJQpkOxocvcpWMuMiOAU1mqIeLqJ4elmIWFfFeNKpkzLF qrKFg/wxti8ItqbCL5ZOr4JvMGp6Hq14s4o= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672973906128100014 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..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 -=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 (#98053): https://edk2.groups.io/g/devel/message/98053 Mute This Topic: https://groups.io/mt/96087049/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-