This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Driver with 2 EMAC
- From: Gary Thomas <gary at mlbassoc dot com>
- To: mkhoyila at uci dot edu
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 31 Aug 2005 14:36:37 -0600
- Subject: Re: [ECOS] Driver with 2 EMAC
- References: <56180.63.87.1.243.1125284222.squirrel@webmail.uci.edu>
Note: resent after much delay, thanks to the SPAM filter on sourceware
On Sun, 2005-08-28 at 19:57 -0700, mkhoyila@uci.edu wrote:
> Gentlemen,
>
> Thanks for the help. Any of you have any reference on how to write a
> driver to handle 2 EMACs. I am interested in setting up the structures
> mostly. Any sample code is appreciated. Thanks.
No real documentation other than code, sorry. There are many examples
in the source code though. Most of these are structured as a generic
driver (one which supports multiple instances of identical hardware
units) and a platform specific driver (which defines which units
are actually used, the physical details such as device [register]
addresses, MAC/ESA addresses, etc).
Try looking at
.../devs/eth/powerpc/fcc [generic]
.../devs/eth/powerpc/rattler [platform specifics]
or
.../devs/eth/intel/i82559 [generic]
.../devs/eth/powerpc/csb281 [platform specifics]
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss