From owner-freebsd-mobile Mon Apr 12 11:20:28 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id BAB0A14D6D for ; Mon, 12 Apr 1999 11:20:21 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id TAA43813; Mon, 12 Apr 1999 19:20:55 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 12 Apr 1999 19:20:54 +0100 (BST) From: Doug Rabson To: Tomoaki NISHIYAMA Cc: y-nakaga@nwsl.mesh.ad.jp, mike@smith.net.au, dcs@newsguy.com, nate@mt.sri.com, faber@ISI.EDU, nsayer@quack.kfu.com, freebsd-mobile@FreeBSD.ORG Subject: Re: Any success with CirrusLogic 6729/6730??? In-Reply-To: <19990412200631T.tomoaki@moss.nibb.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 12 Apr 1999, Tomoaki NISHIYAMA wrote: > From: Doug Rabson > Subject: Re: Any success with CirrusLogic 6729/6730??? > Date: Mon, 12 Apr 1999 11:03:44 +0100 (BST) > Message-ID: > > dfr> This is not correct. A driver can be trivially split up into attachment > dfr> points and implementations. The interface definition system can actually > dfr> make this easier (IMHO of course). The mcclock driver in FreeBSD/alpha > dfr> (derived from the NetBSD driver) does this. > More precicely, is the split driver *dynamically* loadable? > The bus independent part, mcclock.c seemes to be linked statically, > putting aside whethere there is any merit to load the clock dynamically. A split driver can be dynamically loaded by using the dependancy mechanism on the KLD modules. Imagine a device foo which support pci and isa attachments. One could build three modules: foo.ko containing the core driver functionality foo_isa.ko probe/attach for isa bus foo_pci.ko probe/attach for pci bus The two bus-specific modules would depend on the foo.ko module ensuring that it is loaded automatically if either bus-specific module is used. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message