diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 211e9da8a7d7..15596582e575 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1675,6 +1675,7 @@ int pci_num_vf(struct pci_dev *dev); | |||
1675 | int pci_vfs_assigned(struct pci_dev *dev); | 1675 | int pci_vfs_assigned(struct pci_dev *dev); |
1676 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); | 1676 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); |
1677 | int pci_sriov_get_totalvfs(struct pci_dev *dev); | 1677 | int pci_sriov_get_totalvfs(struct pci_dev *dev); |
1678 | resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno); | ||
1678 | #else | 1679 | #else |
1679 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) | 1680 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) |
1680 | { return -ENODEV; } | 1681 | { return -ENODEV; } |
@@ -1686,6 +1687,8 @@ static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) | |||
1686 | { return 0; } | 1687 | { return 0; } |
1687 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) | 1688 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) |
1688 | { return 0; } | 1689 | { return 0; } |
1690 | static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) | ||
1691 | { return 0; } | ||
1689 | #endif | 1692 | #endif |
1690 | 1693 | ||
1691 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) | 1694 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) |