From nobody Thu Feb 02 07:39:43 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P6rKC5BHVz3c8yh; Thu, 2 Feb 2023 07:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P6rKC4kJPz3Ch7; Thu, 2 Feb 2023 07:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JzcdD7JjGAVtRXjmUqzR3LsfKhWgWiB5QMEimYbYNTQ=; b=kQco+DE1XrkGvZBtZVvxfpMfzdNclOqJyMu/4uru/BxH2fWf3pBRpVAIVjVPf5JN+QbOjv FG8YhLiULRJJXUYQA/2r/hq3V/hfCMNIvjvu/j9JXUj6ROZJ06VcbDl8gkRXoUY6EaWSYW EQeA9gG+scpShIOkPqAfr5VU0uHJmGUyG2jmNz6yt4Uaxc0bDu183qyjg6jnEZ65hKYtt3 mRhNnXX8Vkt+XxKIVtbGzteFEc4KSsVf6EQmaeOAutbftEp+KDfLndllFNYvR9DOAoZNSx sc8B+ZzVMs5IuUBd5s3sGjLwJlXUJHq4z/JqvClGeEC4c3Bo9wohIzOP20q2Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JzcdD7JjGAVtRXjmUqzR3LsfKhWgWiB5QMEimYbYNTQ=; b=tRblBcsTmOz5MxmGHBdUgdpn9wsF2pBXPmIzMZLwVArGxF7wvpnzMsJT5cNPXS72S4Risr gyoK77btmvJ26b3VIFUH35IPRbj0VPqo0v/ZEiLY691XvJNXneBfcgD6CIdAGnGlMQaLA7 yf0kGVD90clgwpxa47Rn+cr9DkxegIjo6lJRtr8itNQr6RZ5bEekj0F9VATOFj6YCqfOnL W/LqQj4Tw7s4QzvcjuyMJV0qPfg0MOvV18eTnQLRifP0NUH6YaF1rJ/kzcGKbflBn8aeWx EwB0k4ZsugxgrwE0vqUHdVBCzYquasqv6lo+rYZBoJRoBBzP52xF/x6mgmPJoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675323583; a=rsa-sha256; cv=none; b=OkRAq28sEYXx13up5weGRC629b14nJOS5+sl/71Uof3F9IuL9RMAdOgKbzqaRqv59k6Yme SB7mXYTkB0coOaaz+5cNQ38ayP/1PHO6D+yPoDwzyfcoY6LjFbVGEEgw3DdM8ZPt2zDWko CxfRF1+0Q824IOBSQKI5GmjhrG7FNGH+SZl15CCJfFZHo77DiNVwhQXvvz1QbtXq+GYRnK +9CyquJ40JdyMGyJ3HXF3xLxQjMlN3gr8UAhJ1pMRxtF2/g5m5yAE0IoUKpbbBat5Jgltm bEGQxlQQcuvhvwilIxcTHNhXzQtjFKYwEFXmuh1ftfBBkGLOdn6eV6BuOMsH/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P6rKC3fGGzm4y; Thu, 2 Feb 2023 07:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3127dhkv062292; Thu, 2 Feb 2023 07:39:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3127dhA9062291; Thu, 2 Feb 2023 07:39:43 GMT (envelope-from git) Date: Thu, 2 Feb 2023 07:39:43 GMT Message-Id: <202302020739.3127dhA9062291@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Navdeep Parhar Subject: git: 0d7de5477378 - stable/13 - pcireg.h: Add values for ACS PCIe Extended capability. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: np X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0d7de547737899aaa956706551e2d89238de67d6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=0d7de547737899aaa956706551e2d89238de67d6 commit 0d7de547737899aaa956706551e2d89238de67d6 Author: Navdeep Parhar AuthorDate: 2022-11-04 19:22:11 +0000 Commit: Navdeep Parhar CommitDate: 2023-02-02 07:21:35 +0000 pcireg.h: Add values for ACS PCIe Extended capability. These values come from section 7.7.11 ("ACS Extended Capability") of the PCI Express Base Specification Revision 6.0, dated 16 Dec 2021. Sponsored by: Chelsio Communications Reviewed by: kib@ Differential Revision: https://reviews.freebsd.org/D37270 (cherry picked from commit b2700160cc4f5ff7d64926ea55a214b5ac970cf5) --- sys/dev/pci/pcireg.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index d580ef88b60c..31cfc1503a57 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1098,3 +1098,28 @@ #define PCIM_OSC_CTL_PCIE_PME 0x04 /* PCIe Native Power Mgt Events */ #define PCIM_OSC_CTL_PCIE_AER 0x08 /* PCIe Advanced Error Reporting */ #define PCIM_OSC_CTL_PCIE_CAP_STRUCT 0x10 /* Various Capability Structures */ + +/* Access Control Services (ACS) definitions */ +#define PCIR_ACS_CAP 0x4 +#define PCIM_ACS_SOURCE_VALIDATION 0x0001 +#define PCIM_ACS_TRANSLATION_BLOCKING 0x0002 +#define PCIM_ACS_P2P_REQ_REDIRECT 0x0004 +#define PCIM_ACS_P2P_CMP_REDIRECT 0x0008 +#define PCIM_ACS_P2P_UPSTREAM_FORWARDING 0x0010 +#define PCIM_ACS_P2P_EGRESS_CTL 0x0020 +#define PCIM_ACS_P2P_DIRECT_TRANSLATED 0x0040 +#define PCIM_ACS_ENHANCED_CAP 0x0080 +#define PCIM_ACS_EGRESS_CTL_VECTOR_SIZE 0xff00 +#define PCIR_ACS_CTL 0x6 +#define PCIM_ACS_SOURCE_VALIDATION_ENABLE 0x0001 +#define PCIM_ACS_TRANSLATION_BLOCKING_ENABLE 0x0002 +#define PCIM_ACS_P2P_REQ_REDIRECT_ENABLE 0x0004 +#define PCIM_ACS_P2P_CMP_REDIRECT_ENABLE 0x0008 +#define PCIM_ACS_P2P_UPSTREAM_FORWARDING_ENABLE 0x0010 +#define PCIM_ACS_P2P_EGRESS_CTL_ENABLE 0x0020 +#define PCIM_ACS_P2P_DIRECT_TRANSLATED_ENABLE 0x0040 +#define PCIM_ACS_IO_REQ_BLOCKING_ENABLE 0x0080 +#define PCIM_ACS_DSP_MEM_TGT_ACC_CTL 0x0300 +#define PCIM_ACS_USP_MEM_TGT_ACC_CTL 0x0c00 +#define PCIM_ACS_UNCLAIMED_REQ_REDIRECT_CTL 0x1000 +#define PCIR_ACS_EGRESS_CONTROL_VECTOR 0x8