public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] DM9000 ethernet drivers
@ 2005-08-16 18:06 baljeet singh
  2005-08-16 22:27 ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: baljeet singh @ 2005-08-16 18:06 UTC (permalink / raw)
  To: ecos-discuss

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.
Thanks
B


__________________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] DM9000 ethernet drivers
  2005-08-16 18:06 [ECOS] DM9000 ethernet drivers baljeet singh
@ 2005-08-16 22:27 ` Gary Thomas
  2005-08-17 16:31   ` baljeet singh
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2005-08-16 22:27 UTC (permalink / raw)
  To: baljeet singh; +Cc: eCos Discussion

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
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] DM9000 ethernet drivers
  2005-08-16 22:27 ` Gary Thomas
@ 2005-08-17 16:31   ` baljeet singh
  2005-08-17 16:40     ` Mark Salter
  0 siblings, 1 reply; 4+ messages in thread
From: baljeet singh @ 2005-08-17 16:31 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] DM9000 ethernet drivers
  2005-08-17 16:31   ` baljeet singh
@ 2005-08-17 16:40     ` Mark Salter
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Salter @ 2005-08-17 16:40 UTC (permalink / raw)
  To: baljeet singh; +Cc: Gary Thomas, eCos Discussion

On Wed, 2005-08-17 at 09:30 -0700, baljeet singh wrote:
> 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:

Typically you'd use a platform specific package to do that. Look at

  devs/eth/frv/cb70

for instance.

--Mark



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-17 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-16 18:06 [ECOS] DM9000 ethernet drivers baljeet singh
2005-08-16 22:27 ` Gary Thomas
2005-08-17 16:31   ` baljeet singh
2005-08-17 16:40     ` Mark Salter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).