Re: PCI device search.

Jeff Garzik (jgarzik@mandrakesoft.com)
Sat, 13 Oct 2001 15:19:15 -0500 (CDT)


On Sat, 13 Oct 2001, Stelian Pop wrote:

> On Fri, Oct 12, 2001 at 04:15:54PM -0500, Jeff Garzik wrote:
>
> > > I'd say 1. If a device is hotpluggable or not does not matter. For
> > > 2.5, the boot process will be able to load modules for all PCI
> > > devices seen in the system. In order for that to happen, they need to
> > > use the MODULE_DEVICE structure and the 2.4 pci driver subsystem.
> >
> > I'd say 1.5. :) For the "newer hardware" consider using the PCI host
> > bridge or ISA bridge for your "container" PCI device.
>
> You mean putting PCI_CLASS_BRIDGE_PCI as pattern in the pci
> search table, yes ?

Close but not quite. Look at drivers/char/i810_rng.c. It uses PCI ids
for Intel PCI bridge to search for, since the RNG itself doesn't have a
PCI id.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/