aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-03-19 23:25:15 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 13:48:26 -0400
commitdd7cc44d0bcec5e9c42fe52e88dc254ae62eac8d (patch)
tree742b2c903580eded1e352988b068c0362eccc634 /drivers/pci/pci.h
parent480b93b7837fb3cf0579a42f4953ac463a5b9e1e (diff)
PCI: add SR-IOV API for Physical Function driver
Add or remove the Virtual Function when the SR-IOV is enabled or disabled by the device driver. This can happen anytime rather than only at the device probe stage. 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 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index f4fc10fc5872..0f1c7d103509 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -209,6 +209,8 @@ struct pci_sriov {
209 u32 cap; /* SR-IOV Capabilities */ 209 u32 cap; /* SR-IOV Capabilities */
210 u16 ctrl; /* SR-IOV Control */ 210 u16 ctrl; /* SR-IOV Control */
211 u16 total; /* total VFs associated with the PF */ 211 u16 total; /* total VFs associated with the PF */
212 u16 initial; /* initial VFs associated with the PF */
213 u16 nr_virtfn; /* number of VFs available */
212 u16 offset; /* first VF Routing ID offset */ 214 u16 offset; /* first VF Routing ID offset */
213 u16 stride; /* following VF stride */ 215 u16 stride; /* following VF stride */
214 u32 pgsz; /* page size for BAR alignment */ 216 u32 pgsz; /* page size for BAR alignment */