On Tue, Mar 02, 2010 at 10:10:15AM +0900, Masao Uebayashi wrote:
> > > I'm considering to move cfdata[] and *_iattrdata to each driver's *.c.
> > > Maybe
> >
> > That would be a huge step back. Do *NOT* do that.
>
> Oops. I meant s/cfdata/cfdriver/.
>
> In the long run, templates are moved into *.c, and true configuration (direct
> config / user config == cfdata) is loaded at run-time. Does this make sense?
That there should be a way to inject cfdata at run-time (well, along
with loading a module), yes.
That anything should be moved back to drivers' .c file, not really. The
information carried by a line like "device pci { dev = -1,
function = -1 }" is no different to a function prototype in a .h.
--
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
Attachment:
pgpVxGWupfpgn.pgp
Description: PGP signature