diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c index 9a7140d8e24d..14ea00d94f1d 100644 --- a/sys/dev/ic/dp8390.c +++ b/sys/dev/ic/dp8390.c @@ -1,4 +1,4 @@ -/* $NetBSD: dp8390.c,v 1.73 2010/01/19 22:06:24 pooka Exp $ */ +/* $NetBSD: dp8390.c,v 1.74 2010/02/24 13:10:26 tsutsui Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -14,7 +14,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.73 2010/01/19 22:06:24 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.74 2010/02/24 13:10:26 tsutsui Exp $"); #include "opt_ipkdb.h" #include "opt_inet.h" @@ -114,7 +114,8 @@ dp8390_config(struct dp8390_softc *sc) sc->tx_page_start = sc->mem_start >> ED_PAGE_SHIFT; sc->rec_page_start = sc->tx_page_start + sc->txb_cnt * ED_TXBUF_SIZE; sc->rec_page_stop = sc->tx_page_start + (sc->mem_size >> ED_PAGE_SHIFT); - sc->mem_ring = sc->mem_start + (sc->rec_page_start << ED_PAGE_SHIFT); + sc->mem_ring = sc->mem_start + + ((sc->txb_cnt * ED_TXBUF_SIZE) << ED_PAGE_SHIFT); sc->mem_end = sc->mem_start + sc->mem_size; /* Now zero memory and verify that it is clear. */