Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Do a dummy read after writing through the memory...



details:   https://anonhg.NetBSD.org/src/rev/38e7533b047b
branches:  trunk
changeset: 494797:38e7533b047b
user:      is <is%NetBSD.org@localhost>
date:      Fri Jul 14 10:50:50 2000 +0000

description:
Do a dummy read after writing through the memory access pipeline, to flush
it, before starting the command to install the multicast list.
(We did it right for writing data packets, but failed here.)
Without this, the last multicast address installed won't be made active.

diffstat:

 sys/dev/isa/if_iy.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 204598db6228 -r 38e7533b047b sys/dev/isa/if_iy.c
--- a/sys/dev/isa/if_iy.c       Fri Jul 14 10:29:16 2000 +0000
+++ b/sys/dev/isa/if_iy.c       Fri Jul 14 10:50:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iy.c,v 1.39 2000/06/28 16:27:54 mrg Exp $   */
+/*     $NetBSD: if_iy.c,v 1.40 2000/07/14 10:50:50 is Exp $    */
 /* #define IYDEBUG */
 /* #define IYMEMDEBUG */
 
@@ -1229,6 +1229,7 @@
        bus_space_handle_t ioh;
        int avail, last /*, end*/ , len;
        int timeout;
+       volatile u_int16_t dum;
        u_int8_t temp;
        
 
@@ -1273,6 +1274,7 @@
 
                ETHER_NEXT_MULTI(step, enm);
        }
+       dum = bus_space_read_2(iot, ioh, MEM_PORT_REG); /* dummy read */
        bus_space_write_2(iot, ioh, XMT_ADDR_REG, last);
        bus_space_write_1(iot, ioh, 0, MC_SETUP_CMD);
        



Home | Main Index | Thread Index | Old Index