Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Call bus_dmamap_unload() if any Tx mbuf remains i...
details: https://anonhg.NetBSD.org/src/rev/2193534811d8
branches: trunk
changeset: 486410:2193534811d8
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun May 21 13:00:46 2000 +0000
description:
Call bus_dmamap_unload() if any Tx mbuf remains in rtk_stop().
diffstat:
sys/dev/ic/rtl81x9.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 2e4a90f12a76 -r 2193534811d8 sys/dev/ic/rtl81x9.c
--- a/sys/dev/ic/rtl81x9.c Sun May 21 11:53:00 2000 +0000
+++ b/sys/dev/ic/rtl81x9.c Sun May 21 13:00:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtl81x9.c,v 1.10 2000/05/19 13:42:29 tsutsui Exp $ */
+/* $NetBSD: rtl81x9.c,v 1.11 2000/05/21 13:00:46 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1643,6 +1643,7 @@
*/
for (i = 0; i < RTK_TX_LIST_CNT; i++) {
if (sc->rtk_cdata.rtk_tx_chain[i] != NULL) {
+ bus_dmamap_unload(sc->sc_dmat, sc->snd_dmamap[i]);
m_freem(sc->rtk_cdata.rtk_tx_chain[i]);
sc->rtk_cdata.rtk_tx_chain[i] = NULL;
CSR_WRITE_4(sc, RTK_TXADDR0 + i, 0x0000000);
Home |
Main Index |
Thread Index |
Old Index