Index: pci.c =================================================================== RCS file: /cvs/src/sys/dev/pci/pci.c,v retrieving revision 1.115 diff -u -p -r1.115 pci.c --- pci.c 15 Jan 2020 14:01:19 -0000 1.115 +++ pci.c 17 Jun 2020 01:16:18 -0000 @@ -1625,7 +1656,18 @@ pci_resume_msix(pci_chipset_tag_t pc, pc pci_conf_write(pc, tag, off, mc); } -#else +int +pci_intr_msix_count(pci_chipset_tag_t pc, pcitag_t tag) +{ + pcireg_t reg; + + if (pci_get_capability(pc, tag, PCI_CAP_MSIX, NULL, ®) == 0) + return (0); + + return (PCI_MSIX_MC_TBLSZ(reg)); +} + +#else /* __HAVE_PCI_MSIX */ struct msix_vector * pci_alloc_msix_table(pci_chipset_tag_t pc, pcitag_t tag) @@ -1649,6 +1691,12 @@ void pci_resume_msix(pci_chipset_tag_t pc, pcitag_t tag, bus_space_tag_t memt, pcireg_t mc, struct msix_vector *table) { +} + +int +pci_intr_msix_count(pci_chipset_tag_t pc, pcitag_t tag) +{ + return (0); } #endif /* __HAVE_PCI_MSIX */ Index: pcivar.h =================================================================== RCS file: /cvs/src/sys/dev/pci/pcivar.h,v retrieving revision 1.72 diff -u -p -r1.72 pcivar.h --- pcivar.h 25 Jun 2019 16:46:33 -0000 1.72 +++ pcivar.h 17 Jun 2020 01:16:18 -0000 @@ -247,6 +247,8 @@ void pci_suspend_msix(pci_chipset_tag_t, void pci_resume_msix(pci_chipset_tag_t, pcitag_t, bus_space_tag_t, pcireg_t, struct msix_vector *); +int pci_intr_msix_count(pci_chipset_tag_t, pcitag_t); + uint16_t pci_requester_id(pci_chipset_tag_t, pcitag_t); struct pci_matchid {