This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot - Try initializing default ethernet first
On Mon, 2004-08-23 at 03:24, David Vrabel wrote:
> Gary Thomas wrote:
> >
> > ...maybe the CDL option is a wise way to go. i.e. have an option
> > which enables either "initialize all [ethernet devices], then try"
> > vs. "init one, try, repeat until found"
>
> I'm not hugely keen on the idea of CDL options for every little thing.
This is eCos after all; embedded *Configurable* operating system
>
> Wouldn't a better solution be split the ethernet initialization into two
> parts? A register function (which can provide defaults for fconfig
> etc.) and a start (which actually starts the device)?
It's already structured that way, just that in the stand-alone case, any
driver which indicates "present/ok" also gets started.
The piece of code that we're talking about is what drives that whole
process anyway, so the fact that init & start are separate is moot in
this case - one still wants to call all of the 'init' routines, no
matter what.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates