/* Returns the alignment of the VF BAR found in the SR-IOV capability. This is not the same as the resource size which is defined as the VF BAR size multiplied by the number of VFs. The alignment is just the VF BAR size.  */
int pci_sriov_resource_alignment(struct pci_dev *dev, int resno)
/* Returns the alignment of the VF BAR found in the SR-IOV capability. This is not the same as the resource size which is defined as the VF BAR size multiplied by the number of VFs. The alignment is just the VF BAR size.  */
int pci_sriov_resource_alignment(struct pci_dev *dev, int resno)
{
	struct resource tmp;
	enum pci_bar_type type;
	int reg = pci_iov_resource_bar(dev, resno, &type);
	if (!reg)
		return 0;
	 __pci_read_base(dev, type, &tmp, reg);
	return resource_alignment(&tmp);
}