PCI: initialize and release SR-IOV capability
authorYu Zhao <yu.zhao@intel.com>
Fri, 20 Mar 2009 03:25:11 +0000 (11:25 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 17:48:22 +0000 (10:48 -0700)
commitd1b054da8f599905f3c18a218961dcf17f9d5f13
tree99b62e6771c3b73142dd0622463bed0e19724342
parent8293b0f629095efbe7c7e3f9b437f8c040c19eb5
PCI: initialize and release SR-IOV capability

If a device has the SR-IOV capability, initialize it (set the ARI
Capable Hierarchy in the lowest numbered PF if necessary; calculate
the System Page Size for the VF MMIO, probe the VF Offset, Stride
and BARs). A lock for the VF bus allocation is also initialized if
a PF is the lowest numbered PF.

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>
drivers/pci/Kconfig
drivers/pci/Makefile
drivers/pci/iov.c [new file with mode: 0644]
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/pci.h
include/linux/pci_regs.h