lwip-contrib-mac/ports/coldfire
davidhaas 6929a67489 Add the following features and bugfixes:
Added select() functionality to sockets library.
Support for errno in sockets library.
Byte ordering fixes.
basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support

- added additional argument to netif_add to pass state pointer so that the
if_init function has access to context information before
the interface is added, without accessing globals.

- added netif_remove()

- to conserve cpu load the tcpip_tcp_timer should only be active
when tcbs that need it exist.

- pass length of available data to callbacks for NETCONN_EVT_RCV events

- added tcpip_link_input(), a hack to allow processing of PPP
packets in tcpip_thread() context. This saves threads and context
switches.

- renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name
collision.

- changed a bunch of %d's to %u's in format strings for unsigned values.

- added ip_frag to lwip_stats.

- changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic
values.

- added sys_timeout_remove() function to cancel timeouts (needed by PPP
amongst other things).

- tolerate NULL returns from sys_arch_timeouts() since some threads might
not need to use or have timeouts.

- added sys_sem_wait_timeout()

- moved mem_malloc() function to end of mem.c to work around tasking
compiler bug.

- automatically bind to local tcp port if 0.

- allow customization of port ranges for automatic local bindings.

- corrected various typos, spelling errors, etc..

Thanks to Marc Boucher for many of these changes.
2003-02-06 22:18:30 +00:00
..
include Add the following features and bugfixes: 2003-02-06 22:18:30 +00:00
netif Added lightweight protection. In coldfire this is implemented by disabling 2003-02-04 22:52:01 +00:00
proj Add the following features and bugfixes: 2003-02-06 22:18:30 +00:00
perf.c coldfire port.patch #872 from David Haas 2003-01-18 18:47:22 +00:00
README Added lightweight protection. In coldfire this is implemented by disabling 2003-02-04 22:52:01 +00:00
sys_arch.c Add the following features and bugfixes: 2003-02-06 22:18:30 +00:00

###  README --- c:/cygwin/home/dhaas/work/cfimage/lwip/arch/coldfire/

##
## Author: dhaas@alum.rpi.edu

These files are a port of lwip to coldfire (specifically the MCF5272 with
on-board FEC) under the Nucleus OS. Nucleus is pretty generic so it should be
fairly easy to port this to any other embedded OS. Nucleus memory managment
is not used. It is assumed you have a working malloc (which at least
long-word aligns memory).

The compiler used was Diab 4.3b. You will almost certainly need to change
cc.h for your compiler.

IMPORTANT NOTE: If you use the fec driver for a different processor which has
a data cache you will need to make sure the buffer descriptors and memory
used for pbufs are not in a cachable area. Otherwise the fec driver is
guarrenteed to malfunction. The 5272 which this was written for does not
support data cache so it did not matter and malloc was used.