aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-11-13 16:33:32 -0500
committerBjorn Helgaas <bhelgaas@google.com>2012-11-13 16:33:32 -0500
commitf9c15b429a5c82e613d59a32d4f49cea6e9d64eb (patch)
treeb0862edccf51627ed70b6beaf06baaf2134844ea /include
parent0dcccc5c53c55565a6b1061e1b15894495c7c9b9 (diff)
parent1452cd76a97bf7b93a015586dcabc73fd935e692 (diff)
Merge branch 'pci/don-sriov' into next
* pci/don-sriov: PCI: Remove useless "!dev" tests PCI: Use spec names for SR-IOV capability fields PCI: Provide method to reduce the number of total VFs supported PCI: SRIOV control and status via sysfs PCI: Use is_visible() with boot_vga attribute for pci_dev PCI: Add pci_device_type to pdev's device struct
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 9253af697ca4..5b37d643b6b3 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -573,6 +573,7 @@ struct pci_driver {
573 int (*resume_early) (struct pci_dev *dev); 573 int (*resume_early) (struct pci_dev *dev);
574 int (*resume) (struct pci_dev *dev); /* Device woken up */ 574 int (*resume) (struct pci_dev *dev); /* Device woken up */
575 void (*shutdown) (struct pci_dev *dev); 575 void (*shutdown) (struct pci_dev *dev);
576 int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */
576 const struct pci_error_handlers *err_handler; 577 const struct pci_error_handlers *err_handler;
577 struct device_driver driver; 578 struct device_driver driver;
578 struct pci_dynids dynids; 579 struct pci_dynids dynids;
@@ -1613,6 +1614,8 @@ extern int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn);
1613extern void pci_disable_sriov(struct pci_dev *dev); 1614extern void pci_disable_sriov(struct pci_dev *dev);
1614extern irqreturn_t pci_sriov_migration(struct pci_dev *dev); 1615extern irqreturn_t pci_sriov_migration(struct pci_dev *dev);
1615extern int pci_num_vf(struct pci_dev *dev); 1616extern int pci_num_vf(struct pci_dev *dev);
1617extern int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
1618extern int pci_sriov_get_totalvfs(struct pci_dev *dev);
1616#else 1619#else
1617static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) 1620static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
1618{ 1621{
@@ -1629,6 +1632,14 @@ static inline int pci_num_vf(struct pci_dev *dev)
1629{ 1632{
1630 return 0; 1633 return 0;
1631} 1634}
1635static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs)
1636{
1637 return 0;
1638}
1639static inline int pci_sriov_get_totalvfs(struct pci_dev *dev)
1640{
1641 return 0;
1642}
1632#endif 1643#endif
1633 1644
1634#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) 1645#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE)