From owner-freebsd-current Thu May 13 0:27:51 1999 Delivered-To: freebsd-current@freebsd.org Received: from moss.nibb.ac.jp (moss.nibb.ac.jp [133.48.46.64]) by hub.freebsd.org (Postfix) with ESMTP id 1FE2D14F53 for ; Thu, 13 May 1999 00:27:40 -0700 (PDT) (envelope-from tomoaki@biol.s.u-tokyo.ac.jp) Received: from localhost (localhost [127.0.0.1]) by moss.nibb.ac.jp (8.8.8/8.8.8) with ESMTP id QAA02355; Thu, 13 May 1999 16:27:12 +0900 (JST) (envelope-from tomoaki@biol.s.u-tokyo.ac.jp) To: peter@netplex.com.au Cc: soda@sra.co.jp, current@FreeBSD.ORG Cc: tomoaki@biol.s.u-tokyo.ac.jp Subject: Re: cvs commit: src/sys/pci pcisupport.c From: Tomoaki NISHIYAMA In-Reply-To: <19990512222414.E2DDA1F58@spinner.netplex.com.au> References: <19990512222414.E2DDA1F58@spinner.netplex.com.au> X-Mailer: Mew version 1.94b8 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990513162711O.tomoaki@moss.nibb.ac.jp> Date: Thu, 13 May 1999 16:27:11 +0900 X-Dispatcher: imput version 990212(IM106) Lines: 45 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Peter Wemm Subject: Re: cvs commit: src/sys/pci pcisupport.c Date: Thu, 13 May 1999 06:24:12 +0800 Message-ID: <19990512222414.E2DDA1F58@spinner.netplex.com.au> peter> What on earth is the locator stuff for? Why can't you use plain text? peter> How does 'iobase 0x280' become '640,0,0,0,9,-1,-1,0,1,0'?? This should be changed in the future. I would say for this point "Yes, there are weaknesses still, but that is because it isn't quite finished and is evolving still." I don't think it impossible to make it work dconfig load "ne4 at isa0 iobase 0x280 irq 9" dconfig unload ne4 We have just made it work, before making it look cool. peter> I prefer just: peter> device pcic0 at isa? port 0x3e0 peter> device pcic1 at isa? port 0x3e2 peter> in a static kernel config file, or: peter> pcic0 port 0x3e0 peter> pcic1 port 0x3e2 peter> in /boot/isa.conf. Or: peter> # sethint pcic0 at isa port 0x3e0 peter> # sethint pcic1 at isa port 0x3e2 peter> # kldload pcic.ko peter> .. to load pcic to look at isapnp, pci and those two isa ports. or: peter> # kldload pcic.ko peter> .. to load pcic and look at pci and isapnp if present. peter> peter> If the driver writer decides there is a significant amount of code in peter> bus dependent modules that it is worth splitting pcic.ko itno pcic_isa.ko, peter> pcic_pci.ko, pcic_pnp.ko and pcic_common.ko, then this works best: peter> # kldload pcic_pci.ko peter> .. to load the pci and common parts, and cause a reprobe. Yes, it does seem cool. But don't you think it even better to simply tell the system that I want pcic on pci not knowing the filename (whether it was split into three files, or just one file)? # dconfig load pcic? at pci? -------- Tomoaki Nishiyama e-mail:tomoaki@biol.s.u-tokyo.ac.jp Department of Biological Sciences, Graduate School of Science, The University of Tokyo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message