Matthew Wilcox wrote:
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote:
+++ b/include/linux/pci.h
@@ -87,6 +87,12 @@ enum {
/* #6: expansion ROM */
PCI_ROM_RESOURCE,
+ /* device specific resources */
+#ifdef CONFIG_PCI_IOV
+ PCI_IOV_RESOURCES,
+ PCI_IOV_RESOURCES_
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote:
> +struct pci_iov {
> + int cap;/* capability position */
> + int align; /* page size used to map memory space */
> + int is_enabled; /* status of SR-IOV */
> + int nentries; /* n
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote:
> +++ b/drivers/pci/pci.h
> @@ -176,4 +176,59 @@ static inline int pci_ari_enabled(struct pci_dev *dev)
> +struct pci_iov {
> + int cap;/* capability position */
> + int align; /* page size used to map mem
Support Single Root I/O Virtualization (SR-IOV) capability.
Signed-off-by: Yu Zhao <[EMAIL PROTECTED]>
---
drivers/pci/Kconfig | 12 +
drivers/pci/Makefile |2 +
drivers/pci/iov.c| 853 ++
drivers/pci/pci-sysfs.c |4 +
driv