Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic DMA-synchronize the Rx buffers before re-initiali...
details: https://anonhg.NetBSD.org/src/rev/85ff8e32c0d4
branches: trunk
changeset: 572189:85ff8e32c0d4
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Dec 23 06:00:35 2004 +0000
description:
DMA-synchronize the Rx buffers before re-initializing them.
XXX not necessary?
diffstat:
sys/dev/ic/rtw.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 4cc9b1a4252c -r 85ff8e32c0d4 sys/dev/ic/rtw.c
--- a/sys/dev/ic/rtw.c Thu Dec 23 05:57:18 2004 +0000
+++ b/sys/dev/ic/rtw.c Thu Dec 23 06:00:35 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtw.c,v 1.16 2004/12/23 05:57:18 dyoung Exp $ */
+/* $NetBSD: rtw.c,v 1.17 2004/12/23 06:00:35 dyoung Exp $ */
/*-
* Copyright (c) 2004, 2005 David Young. All rights reserved.
*
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.16 2004/12/23 05:57:18 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtw.c,v 1.17 2004/12/23 06:00:35 dyoung Exp $");
#include "bpfilter.h"
@@ -1521,6 +1521,8 @@
rtw_txctl_blk_init_all(&sc->sc_txctl_blk[0]);
+ rtw_rxdescs_sync(sc->sc_dmat, sc->sc_desc_dmamap,
+ 0, RTW_NRXDESC, BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
rtw_rxctl_init_all(sc->sc_dmat, sc->sc_rxctl, &sc->sc_rxnext,
sc->sc_dev.dv_xname);
rtw_rxdesc_init_all(sc->sc_dmat, sc->sc_desc_dmamap,
Home |
Main Index |
Thread Index |
Old Index