Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2011 19:14:10 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        arch@freebsd.org
Subject:   generic pci device_probe routine ?
Message-ID:  <20111219181410.GA13742@onelab2.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111219181410.GA13742>