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

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