Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 21:15:59 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Warner Losh <imp@harmony.village.org>
Cc:        Lists Account <lists@security.za.net>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: ISA_PNP_PROBE 
Message-ID:  <200104260415.f3Q4FxL21359@mass.dis.org>
In-Reply-To: Your message of "Wed, 25 Apr 2001 22:00:07 MDT." <200104260400.f3Q407830072@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200104260039.f3Q0cwb19007@mass.dis.org> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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