HomeFreeBSD

LinuxKPI: allow bsddriver name to be set for PCI

Description

LinuxKPI: allow bsddriver name to be set for PCI

Allow a driver to overwrite the bsddriver name (we use for pci and
for wlan parent devices). This allows us to to set
.bsddriver.name in struct pci_driver passed to module_pci_driver()
and with that set the BSD driver name while retaining the Linux .name
one.

This is helpful for divers which have different parts depending on
chipset and with that would change driver names which is highly
confusing especially for configuration. One example is an upcoming
rtw88 driver which would be rtw_8822be or rtw_8822ce depending on
chipset.

Sponsored by: The FreeBSD Foundation
Reviewed by: emaste, hselasky
Differential Revision: https://reviews.freebsd.org/D34653

(cherry picked from commit 81d058df6d255b7f551564f6d29a03692b51fe5a)

Details

Provenance
bzAuthored on Mar 24 2022, 1:45 AM
Reviewer
emaste
Differential Revision
D34653: LinuxKPI: allow bsddriver name to be set for PCI
Parents
rG50136233846e: LinuxKPI: pci: implement pci_upstream_bridge()
Branches
Unknown
Tags
Unknown