On Fri, Jan 09, 2004 at 04:38:11PM +0100, Dag-Erling Smørgrav wrote: >"M. Warner Losh" <[EMAIL PROTECTED]> writes: >> [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: >> : 2) use pciconf -l (or direct access to /dev/pci) to retrieve the PCI >> : IDs of unclaimed devices, look them up in a list of supported PCI >> : devices, and load the appropriate module. >> There's some ongoing work to make this easier to do. There are some >> issues with doing this, but nothing that can't be overcome. Every PCI >> driver in the tree will likely need to change in some form to make >> this happen, however. > >Not necessarily; one could, as a temporary measure, create and >maintain the list of supported PCI IDs manually.
These sort of 'temporary measures' have a nasty habit of becoming permanent - witness sysinstall itself. Having to keep two lists of PCI IDs in sync manually is a maintenance nightmare. The (conceptually) simplest approach would be for all drivers to advertise the PCI IDs that they can support (together with a priority) in a manner that would allow such a list to be generated automatically. This would be fairly trivial for the PCI drivers that already scan a table of PCI IDs, but would be a nuisance for the drivers that have the PCI IDs wired into the probe code. Peter _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"