From owner-cvs-all Tue Jan 12 15:32:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04179 for cvs-all-outgoing; Tue, 12 Jan 1999 15:32:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA04165; Tue, 12 Jan 1999 15:32:42 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by nlsystems.com (8.9.1/8.8.5) with SMTP id XAA11167; Tue, 12 Jan 1999 23:31:44 GMT Date: Tue, 12 Jan 1999 23:31:37 +0000 (GMT) From: Doug Rabson To: "Justin T. Gibbs" cc: Garrett Wollman , Eivind Eklund , Nicolas Souchu , Bruce Evans , mike@smith.net.au, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/ppbus if_plip.c In-Reply-To: <199901121626.JAA07694@pluto.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tue, 12 Jan 1999, Justin T. Gibbs wrote: > >< said: > > > >> I don't know how the new bus framework will like this kind of > >> behaviour, though. > > > >Easy -- you just declare your device as being of type `TTY|NET' and > >the magic just comes naturally. (Except, of course, that this part > >isn't implemented yet, but it should be fairly trivial to do once the > >interrupt code is debogotified.) > > Can't we have a more dynamic mechanism than that? You don't want > potentially shared interrupts in extra masks unless its absolutely > necessary (e.g. PPP is compiled into the kernel, but the net mask > is only modified when that line discipline is (de)activated and > only for the device interrupts that are engaged in PPP activity). The alternative to this is to specify what type of interrupt it is when calling SETUP_INTR, e.g.: BUS_SETUP_INTR(parent, dev, res, TTY|NET, myintr, myarg, &ih); In some ways, I prefer this since it means that an 'interrupt mux' doesn't have to play games with its driver flags depending on what kind of kids it is multiplexing. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message