From nobody Tue May 21 04:08:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+55923+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55923+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1584432261; cv=none; d=zohomail.com; s=zohoarc; b=m+Vh6WnSunwiRziDpisUqKIchBya66dAvlFhQRtCbUlizLSmFRN9Pi2QDAOgJOZJ7Du9/mwxnO9NKCS6Hgz8lLnVpy9WXbSWEUeWDgyMQxrpqzASWz7YbB3E8M4DoYmkebKUD8YG6OVMldjt3xSbDm9R47I5UcsMNBHlMHjyZJI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584432261; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=J7NqyCd7FzXVOVYmyWuXbxLOrAdw9QOQ9YpFWPiAwoQ=; b=MdQxgI3oD7hLHrC2DvqrJy4c96lqTvq2F0wAQqrEKFPnNXlwoUculFEqXwWqXHki87V5SRJIM4zoKxxFZRKS2jZPS1KNiUEdT2cqKYy5tXpMBaW4ka481bz52eH54EGXpU5O+t7IZrBbD5ZGEZeUZMsU1d7q4fHFS+2aCsZrMQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55923+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1584432261261889.610320016632; Tue, 17 Mar 2020 01:04:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id mcL8YY1788612xVgIQSMwm3A; Tue, 17 Mar 2020 01:04:20 -0700 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.1090.1584432260079650166 for ; Tue, 17 Mar 2020 01:04:20 -0700 IronPort-SDR: iBt/P3RXiE1SL7lIsMRquzp1gx5JlgCNFYObLevfTRCRNHBA+Hyd5FONSzQtFC3oplWhD5zNGd cM3AoUl/kHsg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2020 01:04:18 -0700 IronPort-SDR: Q7woFe1ovYSuArWFWzM3zzGGTukln0t+ZD6PHZgoLkdkcq0HI6jYpIo34fI6dI6qejPZ8Bi/lI swcv/0pimVLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="236258139" X-Received: from unknown (HELO PIDSBABIOS005.gar.corp.intel.com) ([10.223.9.183]) by fmsmga007.fm.intel.com with ESMTP; 17 Mar 2020 01:04:16 -0700 From: "Javeed, Ashraf" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIFtQQVRDSCBWMl0g77u/TWRlUGtnLVBjaUV4cHJlc3M0MC5oOiBEVlNFQyBkZWZpbml0aW9uIG1pc3Npbmc=?= Date: Tue, 17 Mar 2020 13:34:13 +0530 Message-Id: <20200317080413.4312-1-ashraf.javeed@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,ashraf.javeed@intel.com X-Gm-Message-State: qr6PWQzpjVAG34IU1gZ70YAJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1584432260; bh=b3nPMA/LNN+mmJSBmwEwC2RXSwdZPHGQe/wQ9gArExw=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=HHT8jV0q0LkCL1+YDBJaeLAQl5hrZ8VZ/slda38iBPFkPD72HeHMyg6dfafICotuIlm zWwvG/UunMumogNsC3jAPOs51JD27naPqMJUEJ/7XN24JCB4zA3dsRjgvBkGcdwfWiJv/ 8RYUM6qbws9UXq8BX65AZ/puXzLON70gI64= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2598 All registers definition of DVSEC are defined as per the PCI Express Base Specification 4.0 chapter 7.9.6. Signed-off-by: Ashraf Javeed Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu V2: fixed the comment section description for DVSEC definitions Reviewed-by: Zhiguang Liu --- MdePkg/Include/IndustryStandard/PciExpress40.h | 28 ++++++++++++++++++++++= ++++++ 1 file changed, 28 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/PciExpress40.h b/MdePkg/Includ= e/IndustryStandard/PciExpress40.h index 9d9b272546..0564d72861 100644 --- a/MdePkg/Include/IndustryStandard/PciExpress40.h +++ b/MdePkg/Include/IndustryStandard/PciExpress40.h @@ -4,6 +4,7 @@ Support for the PCI Express 4.0 standard. This header file may not define all structures. Please extend as required. =20 Copyright (c) 2018, American Megatrends, Inc. All rights reserved.
+Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -78,6 +79,33 @@ typedef struct { } PCI_EXPRESS_EXTENDED_CAPABILITIES_PHYSICAL_LAYER_16_0; ///@} =20 +/// The Designated Vendor Specific Capability definitions +/// Based on section 7.9.6 of PCI Express Base Specification 4.0. +///@{ +typedef union { + struct { + UINT32 DvsecVendorId : 16; //bi= t 0..15 + UINT32 DvsecRevision : 4; //bi= t 16..19 + UINT32 DvsecLength : 12; //bi= t 20..31 + }Bits; + UINT32 Uint32; +}PCI_EXPRESS_DESIGNATED_VENDOR_SPECIFIC_HEADER_1; + +typedef union { + struct { + UINT16 DvsecId : 16; //bi= t 0..15 + }Bits; + UINT16 Uint16; +}PCI_EXPRESS_DESIGNATED_VENDOR_SPECIFIC_HEADER_2; + +typedef struct { + PCI_EXPRESS_EXTENDED_CAPABILITIES_HEADER Header; + PCI_EXPRESS_DESIGNATED_VENDOR_SPECIFIC_HEADER_1 Designated= VendorSpecificHeader1; + PCI_EXPRESS_DESIGNATED_VENDOR_SPECIFIC_HEADER_2 Designated= VendorSpecificHeader2; + UINT8 Designated= VendorSpecific[1]; +}PCI_EXPRESS_EXTENDED_CAPABILITIES_DESIGNATED_VENDOR_SPECIFIC; +///@} + #pragma pack() =20 #endif --=20 2.21.0.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 (#55923): https://edk2.groups.io/g/devel/message/55923 Mute This Topic: https://groups.io/mt/72019653/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-