Module Name: src Committed By: tsutsui Date: Wed Feb 24 15:13:34 UTC 2010
Modified Files: src/sys/dev/ic: ne2000.c Log Message: Now dp8390_config() calculates mem_ring correctly so no longer need to override it in ne2000_attach(). To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/dev/ic/ne2000.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/ne2000.c diff -u src/sys/dev/ic/ne2000.c:1.64 src/sys/dev/ic/ne2000.c:1.65 --- src/sys/dev/ic/ne2000.c:1.64 Fri Jan 8 20:02:39 2010 +++ src/sys/dev/ic/ne2000.c Wed Feb 24 15:13:34 2010 @@ -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); }