From nobody Wed Jun 12 19:16:38 2024 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 4VzwJQ5Fkrz5NHbQ; Wed, 12 Jun 2024 19:16:38 +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 4VzwJQ1sMcz56HX; Wed, 12 Jun 2024 19:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718219798; 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=CYnMV0Pap9TSfWNXc6mmwWaXY4XprPFj3QrJegs6ENo=; b=aALlUNtVL/P3GHaPVv3l9/+qYKjw0MykhphNety1zErrO1XKtSIbinR+tNOVyIQmK0Byu6 6MSF5x2dkuD36UX3OS/3GZJiZKHwpl8PMDUv1aJPADrYoCTUPxoZTcaSIuzPTlvpaZDj4Y +c6Bn3yPtvTv1xUC5cSDzmQAZH8tReMrgDyATyOokmGrPK1TcGQ9hIhMSswEpWW7/tCm7/ 8OvzeL1pk4in1I418GDSibP5mFhQhIusHonNM4xmjeM5RbRjdBl7UL2CykP1Yg+hgXmL0o PAaVmA88Zh7YbJBQeT3uGwNRcF4rtThPdIfkntOoMpYxmyfCvAeA4/Z70tLjIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718219798; a=rsa-sha256; cv=none; b=NE5Z7T1VWHJTi5npQLz3zcan8JxLz+Yz5XQr/WAOduolz/8ARXpPUWRbAEzumRJMiRzrhB RD558Zjt3Mryt2DCmjWg/a0xRvudYElzKt1t7APPRn/wfn7WGDJr+nVWumGnXyiuyi+hrB ldSZN9gdXyJhRKixuC2QmfWBXiimC5Als/FAU97Ac1tR+6otAE4CL0/bzzQFbqnSqBWSWM sFaqaFkl/3TpzaSATwFjFpg5RDKclLm3oFcYDBYTPZhGD6lkf5Afj4lxYLtlFFYuhUM4aE 8OJ6EE5Td1ecTDFjBY+9VxSrsuEClc85jYxMxWhBACAF6fOw3Xp0C19IJKirJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718219798; 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=CYnMV0Pap9TSfWNXc6mmwWaXY4XprPFj3QrJegs6ENo=; b=EG5iML7C28hxbFngwCXXxs4i1P01hXQN0cN1mux4fsndQsQulJDloNDfXsxqxB1Fbdaj+P /wAHXZjayFVGn7rtpfkB0GOfLaYB9K/GHxR+51yRO54VF3f0QbcLwNq9T8qTgv++FzgDnh +wkCtmdyaL2cKf6UpG9bAT7XpFIamEGzc9sxWJye1U02Y3ZocFSw8dELLCwYwh8JriGZ0v SJBFDprt2uNGb/MJWS6YaF9a8eEfQ4qCIdlDUt31CdxDKspSvEwqq2edm85lmwai6X8By9 7DZsVb66L9dcAVtmX4xUKoAK8Hywip55d/oED0xpfCnfQqOZFPiCY+7kexh34A== 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 4VzwJQ1T2fz15Dk; Wed, 12 Jun 2024 19:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45CJGcXA003638; Wed, 12 Jun 2024 19:16:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45CJGcuf003635; Wed, 12 Jun 2024 19:16:38 GMT (envelope-from git) Date: Wed, 12 Jun 2024 19:16:38 GMT Message-Id: <202406121916.45CJGcuf003635@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: f1146027f1d9 - stable/13 - LinuxKPI: add further constants to pci.h 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f1146027f1d9c476e53e1ef9afb0e5f9d3bf41c0 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f1146027f1d9c476e53e1ef9afb0e5f9d3bf41c0 commit f1146027f1d9c476e53e1ef9afb0e5f9d3bf41c0 Author: Bjoern A. Zeeb AuthorDate: 2024-03-31 17:26:29 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-06-12 16:56:53 +0000 LinuxKPI: add further constants to pci.h Updated wireless drivers require more knowledge about PCI (BAR) bits. Sponsored by: The FreeBSD Foundation Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D44573 (cherry picked from commit a1cdddcf1596d258ce0b01b156dfd9921bd60e08) --- sys/compat/linuxkpi/common/include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index d8ab851435f5..5e859e1a65c5 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -107,6 +107,8 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \ #define to_pci_dev(n) container_of(n, struct pci_dev, dev) #define PCI_STD_NUM_BARS 6 +#define PCI_BASE_ADDRESS_0 PCIR_BARS +#define PCI_BASE_ADDRESS_MEM_TYPE_64 PCIM_BAR_MEM_64 #define PCI_VENDOR_ID PCIR_VENDOR #define PCI_DEVICE_ID PCIR_DEVICE #define PCI_COMMAND PCIR_COMMAND