From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 15:53:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D482616A4CE for ; Mon, 9 Aug 2004 15:53:06 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72F1F43D4C for ; Mon, 9 Aug 2004 15:53:06 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i79FoOPL060048 for ; Mon, 9 Aug 2004 09:50:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 09 Aug 2004 09:50:23 -0600 (MDT) Message-Id: <20040809.095023.103125553.imp@bsdimp.com> To: freebsd-hackers@freebsd.org From: "M. Warner Losh" In-Reply-To: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> References: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: ISA card and if_ed as module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 15:53:07 -0000 In message: <200408072049.i77KneE00932@Mail.NOSPAM.DynDNS.dK> Barry Bouwsma writes: : Is it to be expected that the kernel if_ed.ko module appears to : be unable to probe and attach an ISA NIC, while when I build the : ed* support into the kernel, it works? This is with RELENG_4. Yes and No. If the ISA nic is PNP, it will just work. IF not, you have to have the 'hints' in the kernel. I have the hints framework backported, but I don't know if it was ever committed. : Or should kernel modules be able to probe and attach ISA as well : as pci/pccard devices? Sorry if this is a questions@ type of : question, but I'd like an explanation too... pci and pccard are like PNP because the busses are self identifying. ISA generally isn't a self identifying bus (but pnp changes it just enough to make things automatic). : I've added a bunch of debuggery to see which routines get invoked : at `kldload' time. I see that ed_pci_probe is called a couple of : times, and at boot a couple more times. However, in neither case : does my debugging to indicate that any ISA probe might be happening, : show up, which reflects the total absence of any ed0 messages at : boot, unless I build the device into the kernel. Right. Adding it to the config file puts the 'hints' in the right place. : If there's a good reason why, I'll be happy to keep ed* in my kernel : (maybe, I'm not sure if the presence of `miibus' as well causes : problems with the autoloading of module miibus when other NIC : modules get loaded...) I think you should for 4.x. In 5, you can set the hints directly and leave it as automatic loading. Warner