aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-03-19 23:25:16 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 13:48:28 -0400
commit74bb1bcc7dbbc9ddef773bf3395d7ff92aaaad2e (patch)
tree38dd25aed251b00a4b34612320beb64f4a058814 /include/linux/pci.h
parentdd7cc44d0bcec5e9c42fe52e88dc254ae62eac8d (diff)
PCI: handle SR-IOV Virtual Function Migration
Add or remove a Virtual Function after receiving a Migrate In or Out Request. Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index c2e491e04063..1216843412da 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -52,6 +52,7 @@
52#include <asm/atomic.h> 52#include <asm/atomic.h>
53#include <linux/device.h> 53#include <linux/device.h>
54#include <linux/io.h> 54#include <linux/io.h>
55#include <linux/irqreturn.h>
55 56
56/* Include the ID list */ 57/* Include the ID list */
57#include <linux/pci_ids.h> 58#include <linux/pci_ids.h>
@@ -1219,6 +1220,7 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar);
1219#ifdef CONFIG_PCI_IOV 1220#ifdef CONFIG_PCI_IOV
1220extern int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); 1221extern int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn);
1221extern void pci_disable_sriov(struct pci_dev *dev); 1222extern void pci_disable_sriov(struct pci_dev *dev);
1223extern irqreturn_t pci_sriov_migration(struct pci_dev *dev);
1222#else 1224#else
1223static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) 1225static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
1224{ 1226{
@@ -1227,6 +1229,10 @@ static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
1227static inline void pci_disable_sriov(struct pci_dev *dev) 1229static inline void pci_disable_sriov(struct pci_dev *dev)
1228{ 1230{
1229} 1231}
1232static inline irqreturn_t pci_sriov_migration(struct pci_dev *dev)
1233{
1234 return IRQ_NONE;
1235}
1230#endif 1236#endif
1231 1237
1232#endif /* __KERNEL__ */ 1238#endif /* __KERNEL__ */