Page MenuHomeFreeBSD

LinuxKPI: add module_pci_driver() and pci_alloc_irq_vectors()
ClosedPublic

Authored by bz on Jul 1 2021, 1:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 10, 10:53 AM
Unknown Object (File)
Sat, Mar 7, 3:07 PM
Unknown Object (File)
Fri, Mar 6, 7:20 PM
Unknown Object (File)
Tue, Mar 3, 5:53 PM
Unknown Object (File)
Wed, Feb 25, 11:02 AM
Unknown Object (File)
Feb 8 2026, 7:43 AM
Unknown Object (File)
Jan 15 2026, 9:06 PM
Unknown Object (File)
Jan 14 2026, 4:17 AM

Details

Summary

Add the two new functions needed by rtw88 to register the driver and
handle the module bits as well as a version of pci_alloc_irq_vectors()
for what is needed.

MFC after: 10 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40213
Build 37102: arc lint + arc unit

Event Timeline

bz requested review of this revision.Jul 1 2021, 1:35 PM
hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/pci.h
839

What about MSIX IRQ's ? Can you add a test for that aswell?

845

I think this comment can be removed. No need to allocate.

sys/compat/linuxkpi/common/include/linux/pci.h
839

I can put a similar block; what's the #define? PCI_IRQ_MSIX? I don't have a driver using that.

sys/compat/linuxkpi/common/include/linux/pci.h
839

Just define it and add relevant calls for pci_enable_msix().

Should be fairly trivial.

include/linux/pci.h:#define PCI_IRQ_MSIX (1 << 2) /* Allow MSI-X interrupts */

This revision is now accepted and ready to land.Jul 2 2021, 12:33 PM