From owner-freebsd-hackers Thu May 7 20:16:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA06082 for freebsd-hackers-outgoing; Thu, 7 May 1998 20:16:06 -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 UAA05899 for ; Thu, 7 May 1998 20:15:55 -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 VAA06007; Thu, 7 May 1998 21:15:42 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id VAA12411; Thu, 7 May 1998 21:15:40 -0600 Date: Thu, 7 May 1998 21:15:40 -0600 Message-Id: <199805080315.VAA12411@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike Smith Cc: Nate Williams , "Jordan K. Hubbard" , Archie Cobbs , freebsd-hackers@FreeBSD.ORG Subject: Re: ISA-PnP w\o BIOS support? In-Reply-To: <199805080158.SAA00834@antipodes.cdrom.com> References: <199805071455.IAA09315@mt.sri.com> <199805080158.SAA00834@antipodes.cdrom.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Something that is not PnP specific, but allows a person to allocate > > resources to non-ISA devices. > > This has absolutely nothing whatsoever to do with the original sysctl > reference (passing out-of-band behavioural configuration information to > an arbitrary driver). > > > 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!" > > What you've just said is "I want to tell the driver to find its own > IRQ". I don't think this is what you meant. No, what I said is what I want. IF you have a non-ISA device, you can't tell FreeBSD that it has this IRQ. > I actually believe that the above syntax is wrong. I would be *more* > inclined to try: > > controller card > options "CARD_IRQ=10,11" > Options that control a particular device are *stupid*, and have been removed for th emost part. (I've even been one of the instigators of them, and they should be taken out an shot, but because of the above limitations there were not other alternatives.) > > 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." > > Why create a (totally bogus) driver? Because FreeBSD doesn't (and won't) support all of the available hardware. I'm trying to moving FreeBSD towards a more 'dynamic' system, and I'm being fought the entire way. > > 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. > > This is (IMO) bogus. Stuff set in the kernel configuration file is no > easier to manipulate than sysctl variables. Sure it is. I know how things are setup in the kernel config files. I can tell how to do things by doing a man 'foo', and it'll return me all the things that affect the foo driver, just like I've come accustomed to. (And this knowledge is in *ONE* place, not scatterred all over the system.) > On the other hand, if > stuff is compiled into the kernel, you're screwed if you want to tune > it at startup. You're not 'tuning' anything. You can modify it like we do everything else in userconfig, which is the 'standard' model we now use. > You're more than welcome to veneer over the fact that the startup > tunables are sysctl variables; sysctl is a parameter access method, not > a user interface as you appear to have mistaken it for. Doing something different just because you think it's a good ida doesn't make it a good idea. Duplicating functionality that already exists is adding 'Yet Another Thing to learn', when it's booth un-necessary and provices no additional functionality. Unix is already hard to learn, we're adding yet more crap for people to figure out. Instead of makign it easier, we're adding even more 'esoteric' configuration for them to understand. At least with things like M$ registery settings, the average user is never subjected to messing with it, but in our sysystem we invent new ways to confuse the user and require him to have an even steeper learning curve, because everyday we come up with something 'new' and better than what we did, which is neither new nor better, just different. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message