From owner-freebsd-hackers Wed Apr 25 21:12:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 6D69E37B424 for ; Wed, 25 Apr 2001 21:12:27 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (msmith@localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.2) with ESMTP id f3Q4FxL21359; Wed, 25 Apr 2001 21:15:59 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200104260415.f3Q4FxL21359@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Warner Losh Cc: Lists Account , freebsd-hackers@FreeBSD.ORG Subject: Re: ISA_PNP_PROBE In-reply-to: Your message of "Wed, 25 Apr 2001 22:00:07 MDT." <200104260400.f3Q407830072@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 25 Apr 2001 21:15:59 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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