From nobody Fri Apr 12 23:08:25 2024 X-Original-To: dev-commits-src-main@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 4VGXL14jYtz5GKlh; Fri, 12 Apr 2024 23:08:25 +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 4VGXL13lkfz4wvt; Fri, 12 Apr 2024 23:08:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712963305; 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=79R91RQ4or9pUziePtQzZMjkpO/Nmq29MPiRRy+fhZs=; b=slELxrWaObcZ37rZXTKskWlSY7tKG5AthEb8BdtxM2KaLGk3CTk29bEoKj8qVZAN9I3d98 +W9xQw0TDlXsBFaRdKzohZLoWbYfa97F4hDWg5owOgwU65QvCKmUPHHMZe+xOQSA2gVrRY Rutd0PySL7pvJzolGJR9fMqm3EgDiQ7bNSr+dXKY2i4xNhfjo1/O05H/mouCA+W24wcaQt rvQg18xzK7EW1n9b0bG2BJAuiVg+9TXrGhu8IvoEIk7wUCGTXKzxuF/F6HHsSKtHYecyfV w6R2CzOJ1w3AO227urwhLmyPJrr/QvQZJuS/5mcuwt+qOuoVDvVtYtF1rGi6gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712963305; a=rsa-sha256; cv=none; b=UcCFzRCnDkXon7uaAGuK4GZfiyx3rwdTN34NpheIVI1WaDY8eqSI15Vkq2/IjlhVTOynwu EkxvpBNIOjZ5x9TWqxk2V/pL+ADgOFX+qxMs9OvVXg3raiXgDZwNTPxt1sZZ6Lcv+MwhCG Myx9Y6+STTDs0tY6MpuMgr1hZkwYRJeCeN/KnkFOx/z6gGeFuHc1TtR2CQhgqB6xmMPZNn zA41yATAr6zjlJFxmR6aSqwHKSxKtGENLtkyhW0b3AL9HIJi8Ht2HrMUUUhup/TIzgnojQ wZUKjd/1KiKBXRAVRKgHFJ1+WB3Y2z7juojuVfmOaD/9oHsJG6Zgk8X+XPUUpQ== 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=1712963305; 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=79R91RQ4or9pUziePtQzZMjkpO/Nmq29MPiRRy+fhZs=; b=g1xbCZFh8q4tyG6wqFwTALeL2/qapKgdoK8F9bxV2nteGTQ2x6xNUEmBtSqtNwnFmm8Y/E +/jlR5X75nA9MNcAiLDtkE/eBr4C9uSJm9ciKCBvdoa6V0d8AIP0gRdIyW1N3v4UwHXjDR dq+Q1jUd4jr7h0PFe3X4BBwOGn67Zhf5prx0c6fw/jwsGNlK36tYMr6R9IQcx3iIO55Ygv Sr2qV9Ql5gBr5lXkociyTVok9oNNX9MHGaUwykXVm3HBqBaNXlqsMyXOgFyA9OiSWO+Utf 5lhhB3pFTrN8uS03uUnJSzdNesbASWoScvDMukeLk/1zzAGSdVpSCIbrYKCAvw== 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 4VGXL13M89z17Zl; Fri, 12 Apr 2024 23:08:25 +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 43CN8PeI070376; Fri, 12 Apr 2024 23:08:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43CN8PIo070373; Fri, 12 Apr 2024 23:08:25 GMT (envelope-from git) Date: Fri, 12 Apr 2024 23:08:25 GMT Message-Id: <202404122308.43CN8PIo070373@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a1cdddcf1596 - main - LinuxKPI: add further constants to pci.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: a1cdddcf1596d258ce0b01b156dfd9921bd60e08 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a1cdddcf1596d258ce0b01b156dfd9921bd60e08 commit a1cdddcf1596d258ce0b01b156dfd9921bd60e08 Author: Bjoern A. Zeeb AuthorDate: 2024-03-31 17:26:29 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-04-12 23:08:06 +0000 LinuxKPI: add further constants to pci.h Updated wireless drivers require more knowledge about PCI (BAR) bits. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D44573 --- 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 bf69846f06f0..be3b13f07e53 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -106,6 +106,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