HomeFreeBSD

LinuxKPI: implement irq_get_msi_desc()

Description

LinuxKPI: implement irq_get_msi_desc()

Add irq_get_msi_desc() as a wrapper around a PCI function which will
allocate a single cached value (see comment on struct) for the
msi_desc requested if it doesn't exist yet and handle freeing it
when the PCI device goes away. We take the values from the ivars of
the native (FreeBSD) device.

While changing struct pci_dev also add the msi_cap field requested by
a wireless driver.

Bump __FreeBSD_version so these changes can be detected.

MFC after: 3 days
X-MFC: move fields to end of struct (alloc happens in linux_pci.c)
Reviewed by: hselasky (earlier version)
Differential Revision: https://reviews.freebsd.org/D37523

Details

Provenance
bzAuthored on Nov 28 2022, 6:27 PM
Reviewer
hselasky
Differential Revision
D37523: LinuxKPI: implement irq_get_msi_desc()
Parents
rG8f61992d7cc1: LinuxKPI: pci: add [linuxkpi_]pci_get_device()
Branches
Unknown
Tags
Unknown