opnsense-src/sys/dev/bnxt
Bjoern A. Zeeb 93a9c0445c LinuxKPI: pci: implementation of [lkpi_]pci_get_slot()
Like lkpi_pci_get_domain_bus_and_slot() implement lkpi_pci_get_slot()
using pci_find_bsf() instead of pci_find_dbsf() (no domain).
This is needed for a wireless driver.

Unfortunately the name [pci_get_slot()] collides with the native PCI
function.  Add a guard around it and disable the use when the native
version is required (in lkpifill_pci_dev() and in bnxt/bnxt_en; if the
latter gets fixed we can probably also fix work around it in the former;
further conflicts in drm-kmod 6.1-lts, 6.6-lts, and master were resolved).

Sponsored by:	The FreeBSD Foundation (initially)
Reviewed by:	dumbbell
Differential Revision:	https://reviews.freebsd.org/D52065

(cherry picked from commit 4179e6b78297369f0cf0eae1076e01e5151c5cbe)
(cherry picked from commit 62c3b77d1d)
2026-01-20 08:43:36 +01:00
..
bnxt_en LinuxKPI: pci: implementation of [lkpi_]pci_get_slot() 2026-01-20 08:43:36 +01:00
bnxt_re bnxt: Use IfAPI accessors where able 2026-01-10 09:00:45 +01:00