Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Now dp8390_config() calculates mem_ring correctly so



details:   https://anonhg.NetBSD.org/src/rev/1db069fabe55
branches:  trunk
changeset: 752366:1db069fabe55
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Feb 24 15:13:34 2010 +0000

description:
Now dp8390_config() calculates mem_ring correctly so
no longer need to override it in ne2000_attach().

diffstat:

 sys/dev/ic/ne2000.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r bb3c62457336 -r 1db069fabe55 sys/dev/ic/ne2000.c
--- a/sys/dev/ic/ne2000.c       Wed Feb 24 14:56:04 2010 +0000
+++ b/sys/dev/ic/ne2000.c       Wed Feb 24 15:13:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ne2000.c,v 1.64 2010/01/08 20:02:39 dyoung Exp $       */
+/*     $NetBSD: ne2000.c,v 1.65 2010/02/24 15:13:34 tsutsui Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.64 2010/01/08 20:02:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.65 2010/02/24 15:13:34 tsutsui Exp $");
 
 #include "opt_ipkdb.h"
 
@@ -298,13 +298,6 @@
                return (1);
        }
 
-       /*
-        * We need to compute mem_ring a bit differently; override the
-        * value set up in dp8390_config().
-        */
-       dsc->mem_ring =
-           dsc->mem_start + ((dsc->txb_cnt * ED_TXBUF_SIZE) << ED_PAGE_SHIFT);
-
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index