Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc/sys/dev/pci



Module Name:    syssrc
Committed By:   fvdl
Date:           Mon Sep 10 10:04:49 UTC 2001

Modified Files:
        syssrc/sys/dev/pci: pci.c pcivar.h

Log Message:
Add a pci_find_device function, to find a PCI device using a match
function on all (probed) PCI buses:

int     pci_find_device(struct pci_attach_args *pa,
                        int (*match)(struct pci_attach_args *));

The pci_attach_args structure pointed to by pa is filled in if the
device is found, and 1 is returned. Otherwise 0 is returned.

This function is, unfortunately, needed by the i810 agp code. It's
also of use for LKMs.

Also frob pci_probe_bus to take 2 extra args when used by pci_find_device.


To generate a diff of this commit:
cvs rdiff -r1.54 -r1.55 syssrc/sys/dev/pci/pci.c
cvs rdiff -r1.46 -r1.47 syssrc/sys/dev/pci/pcivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index