Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Set range of memory protected by read/write bus s...



details:   https://anonhg.NetBSD.org/src/rev/57f3db9df973
branches:  trunk
changeset: 500028:57f3db9df973
user:      jlam <jlam%NetBSD.org@localhost>
date:      Sun Dec 03 23:15:23 2000 +0000

description:
Set range of memory protected by read/write bus space barriers to the
correct size, instead of extending past the mapped region.

diffstat:

 sys/dev/ic/ne2000.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r e6f271493241 -r 57f3db9df973 sys/dev/ic/ne2000.c
--- a/sys/dev/ic/ne2000.c       Sun Dec 03 23:00:42 2000 +0000
+++ b/sys/dev/ic/ne2000.c       Sun Dec 03 23:15:23 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ne2000.c,v 1.29 2000/03/22 20:58:28 ws Exp $   */
+/*     $NetBSD: ne2000.c,v 1.30 2000/12/03 23:15:23 jlam Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -314,12 +314,12 @@
        /* Reset the board. */
 #ifdef GWETHER
        bus_space_write_1(asict, asich, NE2000_ASIC_RESET, 0);
-       bus_space_barrier(asict, asich, 0, NE2000_NPORTS,
+       bus_space_barrier(asict, asich, 0, NE2000_ASIC_NPORTS,
                          BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
        delay(200);
 #endif /* GWETHER */
        tmp = bus_space_read_1(asict, asich, NE2000_ASIC_RESET);
-       bus_space_barrier(asict, asich, 0, NE2000_NPORTS,
+       bus_space_barrier(asict, asich, 0, NE2000_ASIC_NPORTS,
                          BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
        delay(10000);
 
@@ -332,7 +332,7 @@
         * the invasive thing for now.  Yuck.]
         */
        bus_space_write_1(asict, asich, NE2000_ASIC_RESET, tmp);
-       bus_space_barrier(asict, asich, 0, NE2000_NPORTS,
+       bus_space_barrier(asict, asich, 0, NE2000_ASIC_NPORTS,
                          BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
        delay(5000);
 



Home | Main Index | Thread Index | Old Index