From owner-cvs-all Wed May 26 9:36:45 1999 Delivered-To: cvs-all@freebsd.org Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by hub.freebsd.org (Postfix) with ESMTP id 6591F14F3A; Wed, 26 May 1999 09:36:31 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.9.3/8.9.1) id JAA97006; Wed, 26 May 1999 09:38:22 -0700 (PDT) (envelope-from sgk) From: Steve Kargl Message-Id: <199905261638.JAA97006@troutmask.apl.washington.edu> Subject: Re: cvs commit: src/sys/conf options In-Reply-To: <199905261554.JAA02293@harmony.village.org> from Warner Losh at "May 26, 1999 09:54:17 am" To: imp@harmony.village.org (Warner Losh) Date: Wed, 26 May 1999 09:38:22 -0700 (PDT) Cc: mike@smith.net.au (Mike Smith), roger@cs.strath.ac.uk (Roger Hardiman), nick.hibma@jrc.it (Nick Hibma), roger@FreeBSD.org (Roger Hardiman), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Warner Losh wrote: > In message <199905261555.IAA87427@troutmask.apl.washington.edu> Steve Kargl writes: > : The sysctl varaibles become: > : > : hw.bus.pci0 = "82440FX" > : hw.bus.pci1 = NULL > : hw.bus.isa0 = "82371SB" > : hw.bus.isa1 = NULL > > You might want to look at the DEVICE_SYSCTLS kernel option. It does > something similar. I'm not sure if it is intended for "production" > use or not, but it sure is handy for debugging. > DEVICE_SYSCTLS is not documented in LINT, so I would suspect that it isn't meant for "production" use. If I understand Roger and Mike's requirement, they need to know chipset/bus information that must be available before their device drivers are probed. The question seems to be whether to store the information or reprobe the chipset/bus for each device. Sysctl seems (to me) to be a natural solution to the problem The only possible exception is whether number of possible busses to enumerate is large. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message