Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 1999 19:20:54 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp>
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??? 
Message-ID:  <Pine.BSF.4.05.9904121917570.74823-100000@herring.nlsystems.com>
In-Reply-To: <19990412200631T.tomoaki@moss.nibb.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Apr 1999, Tomoaki NISHIYAMA wrote:

> From: Doug Rabson <dfr@nlsystems.com>
> Subject: Re: Any success with CirrusLogic 6729/6730??? 
> Date: Mon, 12 Apr 1999 11:03:44 +0100 (BST)
> Message-ID: <Pine.BSF.4.05.9904121100510.74823-100000@herring.nlsystems.com>
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904121917570.74823-100000>