This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: DM9000 ethernet drivers
- From: baljeet singh <baljeet45 at yahoo dot com>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 17 Aug 2005 09:30:51 -0700 (PDT)
- Subject: Re: [ECOS] DM9000 ethernet drivers
Gary,
Thanks.
Question- Where do I invoke these macros to let
the system knows that the hardware driver is in
place for a specific hardware e.g in the:
NETDEVTAB_ENTRY(DRV_netdev,
"DRV",
DRV_HRDWR_init,
&DRV_sc);
this has to become:
NETDEVTAB_ENTRY(DM9000_netdev,
"DRV",
DM9000_init,
&DM9000_sc);
ETH_DRV_SC( DRV_sc,
0, // No driver
specific
data needed
"eth0", // Name for this
interface
DM9000_start,
DM9000_stop,
DM9000_control,
DM9000_can_send
DM9000_send,
DM9000_recv);
So, where should this macro be invoked.
Thanks
--- Gary Thomas <gary@mlbassoc.com> wrote:
> On Tue, 2005-08-16 at 11:05 -0700, baljeet
> singh wrote:
> > All,
> > I am trying to get DM9000 ethernet drivers
> from
> > MSalter with extensions by Stefan Rosinger to
> > work on my hardware. I am not able to find
> the
> > call to MACRO
> > NETDEVTAB_ENTRY(DRV_netdev,
> > "DRV",
> > DRV_HRDWR_init,
> > &DRV_sc);
> > That would create an entry in the dev table
> for
> > this device and also a call to MACRO
> > ETH_DRV_SC(DRV_sc,
> > 0, // No driver
> specific
> > data needed
> > "eth0", // Name for this
> > interface
> > HRDWR_start,
> > HRDWR_stop,
> > HRDWR_control,
> > HRDWR_can_send
> > HRDWR_send,
> > HRDWR_recv);
> >
> > that will setup the function calls.
> > I am looking at dm900_drv.c and dm9000_info.h
> >
> > Is there anyother file that I should be
> looking
> > at?
> > Or is this process of translation to specific
> > device gets done in some fashion that I don't
> > need to worry about.
>
> These macros are found in
> <cyg/io/eth/eth_drv.h>
>
> --
>
------------------------------------------------------------
> Gary Thomas | Consulting for
> the
> MLB Associates | Embedded world
>
------------------------------------------------------------
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss