From owner-freebsd-current Sun Aug 12 11:35:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id C7D2737B405 for ; Sun, 12 Aug 2001 11:35:32 -0700 (PDT) (envelope-from julian@elischer.org) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA97788; Sun, 12 Aug 2001 11:38:13 -0700 (PDT) Message-ID: <3B76CAF4.BCA989DF@elischer.org> Date: Sun, 12 Aug 2001 11:29:08 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Joe Kelsey Cc: Kazutaka YOKOTA , current@freebsd.org Subject: Re: FreeBSD's aggressive keyboard probe/attach References: <200108120813.RAA26578@zodiac.mech.utsunomiya-u.ac.jp> <15222.50892.75406.972475@zircon.zircon.seattle.wa.us> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joe Kelsey wrote: > > Thank you very much for the clear and cogent explanation of your > philosophy of the psm code. Could I suggest that you copy the > aforementioned e-mail directly into the psm.c file for everyone to see > in posterity? > > Also, I have a fundamental problem with device flags. I believe that > every situation which uses device flags should instead use sysctl > variables, allowing easy manipulation at run-time. sysctl variables are "one per system" devices are "multiple per system" unless you make the driver export a sysclt for each instance it sees then there is a mismatch. certainly there is a mismatch for probing for dvices.. which unfound device do the sysctl variables corespond to? > Of course, there are > no doubt situations not addressable at run-time, but these should be the > rare special cases where a driver flag is used. > > I also second Terry's comment about 0x800. There is no reason to add > yet more driver flags in order to "do the right thing". The "do the > right thing" case should always be default and a flag (sysctl variable, > etc) should be used for those who want "the wrong thing". > > Thank you for your hard work and for taking the time to explain the > design issues involved. Please place the design documentation in the > code. > > /Joe > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message