> In message <[EMAIL PROTECTED]> Mike Smith writes:
> : > Just wondered, is there an equivelant function to ISA_PNP_PROBE that works
> : > with PCI (for example PCI_PNP_PROBE), anyone know?
> :
> : There isn't one. Go look at a PCI driver to see why.
>
> Actually, I think he's asking for a convenience function that he can
> pass a table too and the for loop that is in many pci functions would
> be eliminated in favor of this lookup routine. But I could be wrong.
If that's the case, he needs to look more carefully at some PCI drivers
to see why. 8)
For the original poster; the table that drives such a conveninence
function would have to be very complex. Some drivers check the vendor
ID, device ID, subvendor ID, subdevice ID, and also query extra device
-specific registers, as well as deriving several side-effect values from
the table index (see eg. the 'aac' driver for an example of most of this).
--
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also. But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view. [Dr. Fritz Todt]
V I C T O R Y N O T V E N G E A N C E
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message