/* pci_msix_table_size - return the number of device's MSI-X table entries @dev: pointer to the pci_dev data structure of MSI-X device function  */
int pci_msix_table_size(struct pci_dev *dev)
/* pci_msix_table_size - return the number of device's MSI-X table entries @dev: pointer to the pci_dev data structure of MSI-X device function  */
int pci_msix_table_size(struct pci_dev *dev)
{
	int pos;
	u16 control;
	pos = pci_find_capability(dev, PCI_CAP_ID_MSIX);
	if (!pos)
		return 0;
	pci_read_config_word(dev, msi_control_reg(pos), &control);
	return multi_msix_capable(control);
}