summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2010-02-24 15:13:34 +0000
committertsutsui <tsutsui@NetBSD.org>2010-02-24 15:13:34 +0000
commit48df35bd241b4f9c93da0c5fcd8e8abb66919e01 (patch)
tree153e14fc51d3afcec7319064aabddf30d5d616ac /sys/dev
parent1142233da6795c7298caf2c16e30137762b4f271 (diff)
Now dp8390_config() calculates mem_ring correctly so
no longer need to override it in ne2000_attach().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ne2000.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c
index 0af2ba57de5..2307db28e3d 100644
--- a/sys/dev/ic/ne2000.c
+++ b/sys/dev/ic/ne2000.c
@@ -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 @@ ne2000_attach(struct ne2000_softc *nsc, u_int8_t *myea)
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);
}