Date: Tue, 13 Apr 1999 02:45:56 +0800 From: Peter Wemm <peter@netplex.com.au> To: Doug Rabson <dfr@nlsystems.com> Cc: Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp>, 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: <19990412184558.2CB331F4F@spinner.netplex.com.au> In-Reply-To: Your message of "Mon, 12 Apr 1999 19:20:54 %2B0100." <Pine.BSF.4.05.9904121917570.74823-100000@herring.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson wrote: > On Mon, 12 Apr 1999, Tomoaki NISHIYAMA wrote: > > dfr> This is not correct. A driver can be trivially split up into attachme nt > > dfr> points and implementations. The interface definition system can actua lly > > dfr> make this easier (IMHO of course). The mcclock driver in FreeBSD/alph a > > 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. Of course, it can go in one module or component as well, for example: /* * ISA can be attached to a PCI-ISA bridge or directly to the nexus. */ DRIVER_MODULE(isa, isab, isa_driver, isa_devclass, 0, 0); DRIVER_MODULE(isa, nexus, isa_driver, isa_devclass, 0, 0); Cheers, -Peter 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?19990412184558.2CB331F4F>