[ECOS] Redboot Ethernet Driver Functions

Erik Reikes ereikes@hotmail.com
Wed Mar 6 13:59:00 GMT 2002


I have a desire to send and recive simple UDP packets over a port in ecos.  
Instead of bringing in the entire TCP/IP implementation does anyone know if 
its possible to make calls to the redboot implementation of the TCP 
functions?  Specifically the functions in packages/redboot/current/src/udp.c 
  __udp_install_listener(...) and __udp_send(...)

I have allready successfully ping'd using the Redboot ethernet interface, 
and I figure that since ICMP is allready working in this driver its not too 
far of a stretch to use the UDP function calls.

On a side not my compile of ecos with the FEC ethernet driver and common 
ethernet support fails thusly :

/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c: 
In function `fec_eth_init':
/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260: 
warning: asm operand 0 probably doesn't match constraints
/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260: 
invalid lvalue in assignment
/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:191: 
warning: `proc_rev' might be used uninitialized in this function
/ecos-c/cygwin/devel_ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c:260: 
inconsistent operand constraints in an `asm'
make[1]: *** [src/if_fec.o.d] Error 1

line 260 of if_fec.c looks like :
CYGARC_MFSPR( proc_rev, CYGARC_REG_PVR );

and CYGARC_MFSPR from ppc_regs.h looks like :
#define CYGARC_MFSPR(_spr_, _v_) \
    asm volatile ("mfspr %0, %1;" : "=r" (_v_) : "I" (_spr_));

I guess its that =r that's fouling things.

Thanks.

-Erik Reikes

_________________________________________________________________
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



More information about the Ecos-discuss mailing list