|
From: <ljs...@us...> - 2007-05-25 01:29:12
|
Revision: 407
http://svn.sourceforge.net/cadcdev/?rev=407&view=rev
Author: ljsebald
Date: 2007-05-24 18:29:11 -0700 (Thu, 24 May 2007)
Log Message:
-----------
Added in a short delay during initialization of the lan adapter. Mine seems to need a delay after initialization before sending anything out on it.
Modified Paths:
--------------
kos/kernel/arch/dreamcast/hardware/network/lan_adapter.c
Modified: kos/kernel/arch/dreamcast/hardware/network/lan_adapter.c
===================================================================
--- kos/kernel/arch/dreamcast/hardware/network/lan_adapter.c 2007-05-25 01:16:24 UTC (rev 406)
+++ kos/kernel/arch/dreamcast/hardware/network/lan_adapter.c 2007-05-25 01:29:11 UTC (rev 407)
@@ -582,6 +582,12 @@
if (!(self->flags & NETIF_INITIALIZED))
return -1;
+ /* The Lan adapter seems a bit picky if you try to send packets too soonly
+ after initialization (or at least mine is). 3 seconds seems to be enough
+ of a delay, but 2 seconds certainly is not. Give it 4 seconds, just in
+ case its in a bad mood this run. */
+ timer_spin_sleep(4000);
+
self->flags |= NETIF_RUNNING;
if (la_started == LA_PAUSED)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|