patch-2.1.92 linux/drivers/pci/pci.c
Next file: linux/drivers/scsi/BusLogic.c
Previous file: linux/drivers/pci/oldproc.c
Back to the patch index
Back to the overall index
-  Lines: 14
-  Date:
Mon Mar 30 00:21:40 1998
-  Orig file: 
v2.1.91/linux/drivers/pci/pci.c
-  Orig date: 
Thu Mar 26 15:57:03 1998
diff -u --recursive --new-file v2.1.91/linux/drivers/pci/pci.c linux/drivers/pci/pci.c
@@ -273,3 +273,13 @@
 
 	return mem_start;
 }
+
+struct pci_dev *pci_find_dev(unsigned char bus, unsigned char devfn)
+{
+	struct pci_dev *pdev;
+	for (pdev = pci_devices; pdev; pdev = pdev->next) {
+		if ((pdev->bus->number==bus) && (pdev->devfn==devfn)) break;
+
+	}
+	return pdev;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov