We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1993b17 commit d0c31e0Copy full SHA for d0c31e0
arch/sparc/kernel/pci.c
@@ -994,6 +994,23 @@ void pcibios_set_master(struct pci_dev *dev)
994
/* No special bus mastering setup handling */
995
}
996
997
+#ifdef CONFIG_PCI_IOV
998
+int pcibios_add_device(struct pci_dev *dev)
999
+{
1000
+ struct pci_dev *pdev;
1001
+
1002
+ /* Add sriov arch specific initialization here.
1003
+ * Copy dev_archdata from PF to VF
1004
+ */
1005
+ if (dev->is_virtfn) {
1006
+ pdev = dev->physfn;
1007
+ memcpy(&dev->dev.archdata, &pdev->dev.archdata,
1008
+ sizeof(struct dev_archdata));
1009
+ }
1010
+ return 0;
1011
+}
1012
+#endif /* CONFIG_PCI_IOV */
1013
1014
static int __init pcibios_init(void)
1015
{
1016
pci_dfl_cache_line_size = 64 >> 2;
0 commit comments