generic pci device_probe routine ?

Luigi Rizzo rizzo at iet.unipi.it
Mon Dec 19 18:17:21 UTC 2011


haven't done device drivers for a while, but i just noticed that
pretty much all PCI drivers have their own replica of the *_probe code
which does the same exact thing -- define an array of vendor,product
entries, and lookup the entry in the array.
Would it make sense (or, do we have already) to have common struct
and routine, similar to what we have in usb_lookup.c ?

cheers
luigi


More information about the freebsd-arch mailing list