pci_intr_msix_count() is the function that drivers using multiple MSI-X
authorjmatthew <jmatthew@openbsd.org>
Fri, 23 Jul 2021 00:29:14 +0000 (00:29 +0000)
committerjmatthew <jmatthew@openbsd.org>
Fri, 23 Jul 2021 00:29:14 +0000 (00:29 +0000)
commitbc8858cea98ea053047c33a439cee3d3b9c8333d
tree1632235a54c4173689b8402223da84c6ac46563c
parenta437cf0f8af32b1469520409f4d03b37294deb6f
pci_intr_msix_count() is the function that drivers using multiple MSI-X
vectors use to decide whether to use MSI-X, so make it return 0 if MSI
is not enabled for the device.

fixes problems with ix(4) on older amd64 hardware and current riscv64
ok kettenis@ dlg@
sys/dev/pci/if_bnxt.c
sys/dev/pci/if_ix.c
sys/dev/pci/if_ixl.c
sys/dev/pci/if_mcx.c
sys/dev/pci/if_vmx.c
sys/dev/pci/pci.c
sys/dev/pci/pcivar.h