From owner-freebsd-hackers Sat May 9 11:00:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA05922 for freebsd-hackers-outgoing; Sat, 9 May 1998 11:00:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA05916; Sat, 9 May 1998 11:00:22 -0700 (PDT) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Octopussy.MI.Uni-Koeln.DE (8.8.8/8.8.8) with ESMTP id UAA02209; Sat, 9 May 1998 20:00:17 +0200 (MET DST) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.8/8.6.9) id PAA11462; Sat, 9 May 1998 15:21:37 +0200 (CEST) X-Face: " Date: Sat, 9 May 1998 15:21:37 +0200 From: Stefan Esser To: Stefan Bethke Cc: FreeBSD Hackers , Stefan Esser Subject: Re: ISA PnP / snd PnP developments? Mail-Followup-To: Stefan Bethke , FreeBSD Hackers , Stefan Esser References: <326400.3103442037@d254.promo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <326400.3103442037@d254.promo.de>; from Stefan Bethke on Wed, May 06, 1998 at 11:13:57AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1998-05-06 11:13 +0200, Stefan Bethke wrote: > --On Die, 5. Mai 1998 23:47 Uhr +0200 "Stefan Esser" wrote: > > > > On 1998-05-05 11:37 +0200, Stefan Bethke wrote: > >> Btw., you might want to adjust the comments in sys/i386/isa/pcibus.c, > they > >> might prove to be somewhat misleading. > > > > Hmmm, what's wrong with the comments in that file ? > > Under which version of FreeBSD, BTW ? > > 1.27.2.1 (RELENG_2_2_6_RELEASE, RELENG_2_2) says: > .. > /*----------------------------------------------------------------- > ** > ** The following functions are provided by the pci bios. > ** They are used only by the pci configuration. > ** > ** pcibus_setup(): > .. > > And from what I currently can see in that file, it doesn't do any BIOS > calls. I see ... Well, the comment is a little misleading, but not wrong, nonetheless ... :) In fact, the functions listed in that comment are really primitives provided by the PCI BIOS. The PCI code in 2.2 originates from a time, when the PCI BIOS could not be trusted, and since the PCI BIOS is a PC only thing (not defined for processors other than Intel x86, anyway), we just implemented those functions based on register accesses instead of BIOS calls. The PCI BIOS uses terrible parameter passing conventions, and although we have BIOS32 support in the kernel, I did not rewrite the low-level PCI code to take advantage of the BIOS, yet. Only two primitives should rely on the BIOS, anyway, IMHO: Testing for the PCI configuration mechanism to use, and the function that returns the highest PCI bus number that has to be probed. Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message