sys/bus/pci/pci.c
/*
 * Return the max supported MSI-X messages this device supports.
 * Basically, assuming the MD code can alloc messages, this function
 * should return the maximum value that pci_alloc_msix() can return.
 * Thus, it is subject to the tunables, etc.
 */
Return the max supported MSI-X messages this device supports.
Basically, assuming the MD code can alloc messages, this function
should return the maximum value that pci_alloc_msix() can return.
Thus, it is subject to the tunables, etc.
Return the max supported MSI - X messages this device supports . Basically assuming the MD code can alloc messages this function should return the maximum value that pci_alloc_msix () can return . Thus it is subject to the tunables etc .
int
pci_msix_count_method(device_t dev, device_t child)
{
	struct pci_devinfo *dinfo = device_get_ivars(child);
	struct pcicfg_msix *msix = &dinfo->cfg.msix;
	if (pci_do_msix && msix->msix_location != 0)
		return (msix->msix_msgnum);
	return (0);
}
int pci_msix_count_method ( device_t dev , device_t child ) { struct pci_devinfo * dinfo = device_get_ivars ( child ) ; struct pcicfg_msix * msix = & dinfo -> cfg . msix ; if ( pci_do_msix && msix -> msix_location != 0 ) return ( msix -> msix_msgnum ) ; return ( 0 ) ; }
Return the max supported MSI-X messages this device supports.
Return the max supported MSI - X messages this device supports .