Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp756443ybk; Wed, 20 May 2020 11:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwloG8+BMNJg69VTGuVmXhcZwtu9jmrCKh/BrDkXP0Q1845ONsmmlHULEL/vcYrPvl1mFz X-Received: by 2002:a50:be8f:: with SMTP id b15mr4421382edk.182.1589998181120; Wed, 20 May 2020 11:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589998181; cv=none; d=google.com; s=arc-20160816; b=G4xiQIjvvPEwAZTT8BMI+g1d1Fe8y69zr1wz/vqsIiotREtXB6uzYugav5eD4s/GVA k9r2BMpatlG3U1pmMhzOnpKFC6CH9xBC8exHrjGTvoccwe1v9KPx3N7uqAMDlzxOWteo coSWgrw9VGR6OWO7OEKSXwWqw9p1ZCUd3RzifizC0+PJAJPmnh8dGTZyu948jxurEBpf QcXgn0cKHdLNECccG5um3N5/YIXiGUgi/2BypJLtVsYthC+h7GPwr3ns4iLXz3SVMFdz edl35hlZEN8XYiRMv8egLkEEefSthqKlORn72JYVvldPz6CfzZTdWndFvWn54vP/rupx x+iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=c3I4UuOn6qPQBHYcKltp/MptkjjbSQ9s9Hr18P0pKmw=; b=rtSkLG3lCTHn+UFTNAqsu/eZ8URTeXpVU3Csir1K9Ge40e7JUkJo+WVZRirRdOglsf CArbkdqO9E2nFOIC0z1TXsXXZC9pKQ61SVHTenSzLm07VBIygp7ytR/kibWO+bhOPsTE gipi4gREV1me6w/iTWsHdW+I5oFcr3aAmactv4nzPQEF2egUUkfHo1mMgLFTfRcsHYsd 3UTbJWxXiuPRImmI7KFANTfLxifGydxHnpzEMW+nKos+UgTZL/YJyE73ejNTKffb2RjT hfFxvhGjQf3lb72V2eHUvCirZJ6qSfLJJWtFC3VsPdumxDT/g56WZuyas1DtRy0y/NXT OiGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si1857480edx.460.2020.05.20.11.09.17; Wed, 20 May 2020 11:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727006AbgETSG4 (ORCPT + 99 others); Wed, 20 May 2020 14:06:56 -0400 Received: from mga14.intel.com ([192.55.52.115]:46824 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgETSGq (ORCPT ); Wed, 20 May 2020 14:06:46 -0400 IronPort-SDR: KZu2UvqZH44iNEdPDd+u+w2j5QFYrBQSBcnzKtcty5dhXspVI1mMYw+RPzyDhTZWd+6JLyZ7W2 kai0YI7XL1cA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 11:06:45 -0700 IronPort-SDR: LezuK/BIDnBntPn+DzPG2NCkDGtAklXtxkgwdb0fO07rcWaojInjP3ZCa7ZGVOUZizptkEleJq UnnfbJ5dQX7g== X-IronPort-AV: E=Sophos;i="5.73,414,1583222400"; d="scan'208";a="289442239" Received: from ydandeka-mobl.amr.corp.intel.com (HELO arch-ashland-svkelley.intel.com) ([10.254.5.7]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 11:06:45 -0700 From: Sean V Kelley To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "David E. Box" Subject: [PATCH V3 1/3] PCI: Add defines for Designated Vendor-Specific Capability Date: Wed, 20 May 2020 11:06:38 -0700 Message-Id: <20200520180640.1911202-2-sean.v.kelley@linux.intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200520180640.1911202-1-sean.v.kelley@linux.intel.com> References: <20200520180640.1911202-1-sean.v.kelley@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "David E. Box" Add PCIe DVSEC extended capability ID and defines for the header offsets. Defined in PCIe r5.0, sec 7.9.6. Signed-off-by: David E. Box Acked-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index f9701410d3b5..09daa9f07b6b 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -720,6 +720,7 @@ #define PCI_EXT_CAP_ID_DPC 0x1D /* Downstream Port Containment */ #define PCI_EXT_CAP_ID_L1SS 0x1E /* L1 PM Substates */ #define PCI_EXT_CAP_ID_PTM 0x1F /* Precision Time Measurement */ +#define PCI_EXT_CAP_ID_DVSEC 0x23 /* Designated Vendor-Specific */ #define PCI_EXT_CAP_ID_DLF 0x25 /* Data Link Feature */ #define PCI_EXT_CAP_ID_PL_16GT 0x26 /* Physical Layer 16.0 GT/s */ #define PCI_EXT_CAP_ID_MAX PCI_EXT_CAP_ID_PL_16GT @@ -1062,6 +1063,10 @@ #define PCI_L1SS_CTL1_LTR_L12_TH_SCALE 0xe0000000 /* LTR_L1.2_THRESHOLD_Scale */ #define PCI_L1SS_CTL2 0x0c /* Control 2 Register */ +/* Designated Vendor-Specific (DVSEC, PCI_EXT_CAP_ID_DVSEC) */ +#define PCI_DVSEC_HEADER1 0x4 /* Vendor-Specific Header1 */ +#define PCI_DVSEC_HEADER2 0x8 /* Vendor-Specific Header2 */ + /* Data Link Feature */ #define PCI_DLF_CAP 0x04 /* Capabilities Register */ #define PCI_DLF_EXCHANGE_ENABLE 0x80000000 /* Data Link Feature Exchange Enable */ -- 2.26.2