From owner-freebsd-hackers Thu May 7 07:56:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA25829 for freebsd-hackers-outgoing; Thu, 7 May 1998 07:56:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA25786 for ; Thu, 7 May 1998 07:55:56 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id IAA01150; Thu, 7 May 1998 08:55:47 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id IAA09315; Thu, 7 May 1998 08:55:45 -0600 Date: Thu, 7 May 1998 08:55:45 -0600 Message-Id: <199805071455.IAA09315@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Jordan K. Hubbard" Cc: Nate Williams , Mike Smith , Archie Cobbs , freebsd-hackers@FreeBSD.ORG Subject: Re: ISA-PnP w\o BIOS support? In-Reply-To: <27442.894517330@time.cdrom.com> References: <199805070346.VAA07828@mt.sri.com> <27442.894517330@time.cdrom.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > No, it's a poor solution, and should NOT be used anymore than it already > > is. It's worse than IOCTL's, and it's becoming the garbage dump for > > everything that we don't have easy solutions for, thus making the system > > that much harder to understand and configure. > > Hmmmm. Rather than tell us about what's wrong with sysctl, such > criticism being hardly new or even particularly valuable, why not tell > us what you'd rather see implemented and how you might, given the > time, go about doing it? Something that is not PnP specific, but allows a person to allocate resources to non-ISA devices. Current situation: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr What I'd like to be able to do: controller card0 at generic flags 0x1 irq ? The 'at generic' stuff is open to discussion, but I need a way of saying 'I *WANT* that IRQ, and you can't have it!" Also, I'd like to see: controller irqsink0 at generic irq 11 controller irqsink1 at generic irq 13 For hardware that doesn't have any driver in FreeBSD so I can say "*DON'T* use this IRQ, it's in use." I want the user to have control of what's going on at compile time, and I'd like the ability for the user to be able to re-configure it at userconfig time as well. The problem with sysctl is that it's trying to be all things to all men, and like M$ Registrty, it becomes too complex and unweildy since *all* configuration is dumped into it's bowels, so keeping the namespace sane is almost impossible. And, assuming you've done a good job of keeping the namespace separated out, you have to understand *how* it's separated in order to use it, which means that your average user won't know which know to tweak until after he's read the poorly documented 14 page book that explains each of the sysctl knobs. Excpecting the users to know/understand each and every tweakable know is ludicrous. By making the knob/hooks settable in the config file (something they already know how to deal with, or will know how to deal with) means it's *really* obvious which device they are messing with, so the learning curve is much less. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message