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
F97454710: D30981.diff
Sun, Sep 29, 11:20 AM
Unknown Object (File)
Tue, Sep 24, 6:49 PM
Unknown Object (File)
Mon, Sep 16, 10:19 PM
Unknown Object (File)
Tue, Sep 10, 1:46 PM
Unknown Object (File)
Sun, Sep 8, 9:05 AM
Unknown Object (File)
Sun, Sep 8, 7:04 AM
Unknown Object (File)
Sun, Sep 8, 6:34 AM
Unknown Object (File)
Jul 13 2024, 4:44 PM

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 40232
Build 37121: 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
840

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

846

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

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

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
840

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