Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/next68k/stand/boot In en_put(), if we don't get a p...



details:   https://anonhg.NetBSD.org/src/rev/9f3be2fceb35
branches:  trunk
changeset: 536206:9f3be2fceb35
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Sep 11 06:32:07 2002 +0000

description:
In en_put(), if we don't get a packet, just return 0.  This is how we tell
the libsa code to retransmit.

diffstat:

 sys/arch/next68k/stand/boot/en.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 434e4517d832 -r 9f3be2fceb35 sys/arch/next68k/stand/boot/en.c
--- a/sys/arch/next68k/stand/boot/en.c  Wed Sep 11 06:20:09 2002 +0000
+++ b/sys/arch/next68k/stand/boot/en.c  Wed Sep 11 06:32:07 2002 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: en.c,v 1.6 2002/09/11 02:17:15 mycroft Exp $        */
+/*      $NetBSD: en.c,v 1.7 2002/09/11 06:32:07 mycroft Exp $        */
 /*
  * Copyright (c) 1996 Rolf Grossmann
  * All rights reserved.
@@ -237,6 +237,7 @@
 
                while(1) {
                        if (en_wait_for_intr(ENETX_DMA_INTR)) {
+                               printf("en_put: timed out\n");
                                errno = EIO;
                                return -1;
                        }
@@ -331,10 +332,8 @@
 #endif
 
        while(1) {
-               if (en_wait_for_intr(ENETR_DMA_INTR)) { /* ### use timeout? */
-                       errno = EIO;
-                       return -1;
-               }
+               if (en_wait_for_intr(ENETR_DMA_INTR))   /* ### use timeout? */
+                       return 0;
                
                state = rxdma->dd_csr &
                        (DMACSR_BUSEXC | DMACSR_COMPLETE
@@ -510,6 +509,5 @@
                if (*intrstat & flag)
                        return 0;
 
-       printf("enintr: timed out.\n");
        return -1;
 }



Home | Main Index | Thread Index | Old Index