CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/06/16 19:43:04
Modified files:
sys/dev/pci : pcivar.h pci.c
Log message:
add pci_intr_msix_count(), to get the msi-x table size for a device.
this basically tells us the number of interrupt vectors a pci device
is able to support. it relies on the arch having __HAVE_PCI_MSIX
defined. without that define it always returns 0.
i think this originally came from haesbart via patrick@ as amd64
md code in the middle of a diff from 2018(!), but i've tweaked it
to make it MI.
tested on sparc64 and amd64 with various drivers.