From nobody Mon Nov 07 21:21:28 2022 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 4N5kgX5tXmz4gQN9; Mon, 7 Nov 2022 21:21:28 +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 4N5kgX3hsRz4FVH; Mon, 7 Nov 2022 21:21:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667856088; 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=4767rtyIGsDggmmMRBomoiLkFqZlDiSe24pCx+USf6g=; b=gsfi6RfqtyrbPnJEbJ8XqupX2DUwugJc91KVUEHedmgH7nwqGfhfw0gwWqkKooF0HcvcLM OztCwOMF0sp6wcD6R+HMNsbe9GeSSgkxb37vt/0D73JpFsNSqbWpHQMA2Xq/mRrE8KCAmH DoGbdR3zvVRIqtNiP2CC/+nM0+QqfmnasxD6fM9IkmUXjaXsIw4gA761YDIsLxDeq8P/p/ o5yx4foLPQz5wQfIhQok+aJ6ZhZY4kP8DpaBeIkcsjAzANPRwlHfWpWrqLZO9naEIFXS8E 7XVhScgIkJx+DnPiB+q+xY++a3KcOW7M+Xzv3N6rhYADSL3MxSbKxiuwoCvCog== 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 4N5kgX2p5GzGX3; Mon, 7 Nov 2022 21:21:28 +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 2A7LLSQx050470; Mon, 7 Nov 2022 21:21:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A7LLS86050458; Mon, 7 Nov 2022 21:21:28 GMT (envelope-from git) Date: Mon, 7 Nov 2022 21:21:28 GMT Message-Id: <202211072121.2A7LLS86050458@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: b2700160cc4f - main - 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/main X-Git-Reftype: branch X-Git-Commit: b2700160cc4f5ff7d64926ea55a214b5ac970cf5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667856088; 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=4767rtyIGsDggmmMRBomoiLkFqZlDiSe24pCx+USf6g=; b=tlVURlK1aMsT9uG+DVQxmyUzu+QWAnJd/lMU3P4KKxkxDEb7ut57+Dl5IQF2dF7c45EwSQ NRno/G7COdLgEhFZcH7UeAs5VveVHiPl0Sqryu8fI0M/H2xbyfNvPYCqmFZTS2ne0tDj1j +4cG60iuQ8BR0uofsTJSJhL+daNo1Q+trOtDl8J4UoWwiv4W3F0L+jBEyWRC34MxTCbFeJ CSWsWIHTzHmLsm/dvZddLPS8y4tJXAhD9etGqTYGyyq/fHghlPh8arG0GThWV9J7hcUysq 053OOdylS3UBOwsI3UWF3iQHAOm6HaSAI5XEsowCBEg8CGDI/SUfvITMvFTqkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667856088; a=rsa-sha256; cv=none; b=g/U3ukVPBp9FUUWdrSlrmMNfwj4FfL+KksuZusoB/SDy+cfDD1z0mJRlBZNS5AcvOmhW6G Yl0/DxbZUFub+lCslUGV6o68mEaMO2hfbylnKp0me85ZidSPWmW+bL6dC4wfpyxOOlOUC/ T7yHUlbDmz3qSslI22+W3pVczA0eg8A81RiI6cLzrkdDTadvC/Rd2HzB38Zf6fsu/I3s+j g0L+qIxBtbaLByY+imA5VUjGVs9eZLYaYsE6s6MCOm6W+/GbRdNkhBXncP+4ejtaRR5LM4 nrgLeJgU9JAQVwWBBxVyJdbItrieHaUqHsmv0wMvYZRodlV2h48IMlPNd8tD9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=b2700160cc4f5ff7d64926ea55a214b5ac970cf5 commit b2700160cc4f5ff7d64926ea55a214b5ac970cf5 Author: Navdeep Parhar AuthorDate: 2022-11-04 19:22:11 +0000 Commit: Navdeep Parhar CommitDate: 2022-11-07 21:20:21 +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. MFC after: 1 week Sponsored by: Chelsio Communications Reviewed by: kib@ Differential Revision: https://reviews.freebsd.org/D37270 --- 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