I use the following call sequence to request MSI-X interrupt resource when loading device driver, and it's working:
bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE)
pci_msix_count
pci_alloc_msix
bus_alloc_resource(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE)
bus_setup_intr...