Page MenuHomeFreeBSD

LinuxKPI: pci: implementation of [lkpi_]pci_get_slot()
ClosedPublic

Authored by bz on Aug 21 2025, 8:58 AM.
Tags
None
Referenced Files
F162630170: D52065.diff
Wed, Jul 15, 6:40 AM
F162630169: D52065.diff
Wed, Jul 15, 6:40 AM
Unknown Object (File)
Tue, Jul 14, 6:05 PM
Unknown Object (File)
Fri, Jul 3, 1:10 PM
Unknown Object (File)
Thu, Jul 2, 7:11 PM
Unknown Object (File)
Wed, Jul 1, 11:48 PM
Unknown Object (File)
Tue, Jun 23, 6:02 PM
Unknown Object (File)
Sun, Jun 21, 3:12 AM
Subscribers

Details

Summary

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
MFC aftre: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66403
Build 63286: arc lint + arc unit