Commit Graph

544 Commits

Author SHA1 Message Date
jani
8ec8b9225c update ecos port 2003-03-24 09:19:25 +00:00
proff_fs
27ffeae406 Fixed compilation. 2003-03-21 16:56:05 +00:00
davidhaas
0a46ef6af4 Fixed up and made work a PBUF_REF type. Most of the code uses this now
instead of PBUF_ROM. This addition allows support of copy-on-demand where the
lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and
replaces them with PBUF_POOL buffers. This is now used
everywhere. pbuf_unref() is called in ARP queueing and in the coldfire
driver, which puts frames on a DMA queue and frees them later.

Along with this change pbuf_free() now goes through the entire chain of
buffers and tests all the ref counters, not just the first one. Generally now
pbuf_ref_chain() should be called and not pbuf_ref(). This change was made
because it is possible for the head of the pbuf chain to have a different
count than the payload pbuf which might have been passed by the application.

Coldfire ethernet driver also had some minor other updates and STATS was
changed to LWIP_STATS.
2003-03-19 22:16:31 +00:00
jani
0749599eab the contrib part of thread priority patch by floriZ.Also take out unused unix netifs from unixsim makefile for now 2003-03-19 15:28:31 +00:00
jani
1b789f74aa change STATS to LWIP_STATS and modifications in lwipopts.h 2003-03-19 12:46:37 +00:00
likewise
18dba6fc2a Added err_t return values for cs8900 initialization functions. 2003-03-11 14:17:18 +00:00
cborrelli
2e994cd300 initial check-in 2003-03-08 02:49:00 +00:00
cborrelli
7d5a4db0e7 adding perf_init function; empty for now 2003-03-08 02:42:24 +00:00
cborrelli
7861c8aa8e changes to account for updated Xilinx drivers in the Xilinx Embedded Development Kit (EDK); also changes to sync up with the latest etharp changes 2003-03-08 02:40:31 +00:00
cborrelli
2c377d7dd9 added perf_init function declaration 2003-03-08 02:38:14 +00:00
cborrelli
992703d54f initial check-in - for generating a stand-alone library; requires Xilinx EDK libraries 2003-03-08 02:35:40 +00:00
jani
683a598138 C style comments 2003-03-07 15:00:41 +00:00
jani
c1d9d1e71f Spelling fixes from Marc Boucher 2003-03-07 13:40:31 +00:00
cborrelli
1c8808e73f removed unused file lib.h 2003-03-06 02:25:16 +00:00
jani
9ef973cc4e do not put CVS files in the epk 2003-03-05 14:20:20 +00:00
jani
9ac27f9860 add patch against ecos needed for the glue to wotk 2003-03-01 10:47:38 +00:00
jani
d9d0f12c61 Add eCos glue. 2003-02-28 14:29:13 +00:00
jani
782a790c07 remove unnecessary includes to avoid conflicting ntoh() declarations 2003-02-28 11:23:00 +00:00
davidhaas
a9749edff8 Fixed build for coldfire after last debug.h and opt.h changes. 2003-02-25 21:46:24 +00:00
jani
d5be11334f SYS_ARCH_PROTECT_XXX macros noops for now to get it to compile.I don't know whether anything is required here 2003-02-21 16:35:23 +00:00
jani
489fc69cce updated netif init functions to return err_t 2003-02-20 16:24:39 +00:00
likewise
a8d105875b Added LWIP_PLATFORM_ macros. 2003-02-19 16:04:18 +00:00
davidhaas
7d1204e144 Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined.
Added documentation for lightweight protection.

Fixed debug statement in ip.c.

Removed tabs in files I changed.
2003-02-18 21:14:26 +00:00
davidhaas
f87520e049 Allow minimal unix target to build in cygwin (but not necessarily run).
Applied a patch from Marc Boucher which has the following changes:

1) Fixed sys_arch.txt documentation to have new return type from
   sys_thread_new.

2) Removed unnecessary casts on calling sys_timeout() in certain files.

3) Removed some unnecessary break statements after return statements.

4) Changed sys_timeout_remove() to sys_untimeout().

5) Added some forgotten #ifndef SYS_LIGHTWEIGHT_PROT to memp.c

6) Changed LWIP_DIAG and LWIP_PLATFORM_ASSERT to have do while().
2003-02-18 19:27:08 +00:00
davidhaas
77f2c43b58 Improvments I need for DEBUGF. Won't affect anyone else. 2003-02-12 22:02:02 +00:00
davidhaas
68db26a7ab Made sys_arch_prot() interface more generic by returning sys_prot_t instead
of u32_t.
2003-02-12 16:38:57 +00:00
davidhaas
eef68488bc Fix some compile issues with both coldfire and unix builds. 2003-02-12 15:09:15 +00:00
davidhaas
ae49c020d7 sys_thread_new() now returns the thread (request from Marc Boucher).
Removed some unused .h files in coldfire port.

Support LWIP_DIAG and LWIP_ASSERT in coldfire (sort of).

Fix to last api fix to make sure select() is triggered, even when there has
been a FIN.

Allow build of unixsim from cygwin by specifying "make ARCH=cygwin" or from
linux by specifying "make ARCH=linux".
2003-02-11 20:59:49 +00:00
jani
d33bf3a9e2 list.h is gone remove #includes 2003-02-11 09:09:46 +00:00
likewise
f0cda3661d Added commented code for upcoming merge with leon-dhcp. 2003-02-10 23:29:15 +00:00
jani
ebb997051d put platform specific debug and assert in cc.h.Also put byte-order #define here.Delete files cpu.h,lib.h and init.h 2003-02-10 11:13:51 +00:00
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
davidhaas
59897844aa Example lwipopt file for coldfire 2003-02-05 14:36:59 +00:00
davidhaas
3cbe86d8a7 Added lightweight protection. In coldfire this is implemented by disabling
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.

Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:01 +00:00
davidhaas
f71da3c8c8 ----------------------------------------------------------------------
Fixed the following bugs:
	2366: For coldfire port: pbuf is freed twice when no room on
	      output ring.
	2368: Coldfire port: buffer cleanup in 5272 driver causes
	      problems.
	2376: Can't have timeouts large enough

Note that timeouts are now 32 bits. This was done for select()
support. Coldfire and unix ports have been updated.
Committing in .

Modified Files:
 	unix/sys_arch.c
2003-02-04 14:48:54 +00:00
davidhaas
51df05f58a ----------------------------------------------------------------------
Fixed the following bugs:
	2366: For coldfire port: pbuf is freed twice when no room on
	      output ring.
	2368: Coldfire port: buffer cleanup in 5272 driver causes
	      problems.
	2376: Can't have timeouts large enough
Committing in .

Modified Files:
	coldfire/sys_arch.c coldfire/netif/5272fec.c
----------------------------------------------------------------------
2003-02-04 14:45:22 +00:00
jani
edd18aad86 add unix projects to contrib module 2003-01-31 13:35:43 +00:00
proff_fs
c84cc55299 Moved msvc6 project files to contrib module. 2003-01-29 16:30:47 +00:00
proff_fs
c312661244 Moved msvc6 project files to contrib module. 2003-01-29 16:30:47 +00:00
likewise
1b2cbab30e Removed sys_arch as this port uses the lwIP core only (raw API). 2003-01-28 17:55:02 +00:00
jani
2b84c23ea3 coldfire port.patch #872 from David Haas 2003-01-18 18:47:22 +00:00
jani
1cb0c2930a Add other ports too 2003-01-18 18:33:29 +00:00
jani
0c9bba0594 Add c16x port 2003-01-18 18:21:57 +00:00
jani
b63196d62a Add Unix port 2003-01-18 18:18:02 +00:00