public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Ethernet driver question
@ 2003-10-29 18:24 John Newlin
  2003-10-30  7:54 ` Laurent GONZALEZ
  0 siblings, 1 reply; 5+ messages in thread
From: John Newlin @ 2003-10-29 18:24 UTC (permalink / raw)
  To: ecos-discuss

Couple of silly questions, I like multiple choice: 

1) When the HDWR_Send function is called, is there:
  a) a valid FCS already at the end of the data?
  b) 4 bytes where the FCS should be, but expects the hardware to change 
it on the way out
  c) No FCS, expects the hardware to append an FCS

(Our hardware can generate an FCS, so would save some cycles if the FCS 
were not generated in software)

2) When HDWR_recv is called to get a packet, does it expect a valid enet 
frame including MAC address, and FCS on the end, or does it want those 
stripped off?  I imagine the former is correct, but I just want to make 
sure.


Thanks,

-John Newlin



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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [ECOS] Ethernet driver question
@ 2007-10-05 12:24 Gokoen
  2007-10-08  8:30 ` Jürgen Lambrecht
  0 siblings, 1 reply; 5+ messages in thread
From: Gokoen @ 2007-10-05 12:24 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I am a newcomer to eCos.

I am trying to run LAN91C111 driver using "net" template,but 
I am encountered what I cannot understand.

My target board is implemented with SH7709S CPU and 
SMSC LAN91C111 ethernet controller.

Looks like doing nothing,so
I checked attach routine.

I discovered attach is executed at 
/packages/net/bsd_tcpip/current/src/sys/net/if_ethersubr.c
ether_ifattach(ifp, bpf) function's last part.

 if (ng_ether_attach_p != NULL)
  (*ng_ether_attach_p)(ifp);

But I discovered that because ng_ether_attach_p == NULL,
it skipped over (*ng_ether_attach_p)(ifp).

ng_ether_attach_p is defined in 
/packages/net/bsd_tcpip/current/include/sys/param.h
#define ng_ether_attach_p cyg_ng_ether_attach_p
but cyg_ng_ether_attach_p == NULL.

eCos version is CVS downloaded current version.

I do not know why this happens.
Would you please teach me what shoud I do ?

I would appreciate your help.

Gokoen


-- 
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] 5+ messages in thread

end of thread, other threads:[~2007-10-09 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-29 18:24 [ECOS] Ethernet driver question John Newlin
2003-10-30  7:54 ` Laurent GONZALEZ
2007-10-05 12:24 Gokoen
2007-10-08  8:30 ` Jürgen Lambrecht
2007-10-09 11:45   ` Gokoen

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