diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-08-27 22:06:53 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-08-27 22:06:53 +0000 |
commit | c516d3f03977d34b9eeaf846b105e3fa7cd4048d (patch) | |
tree | 4d8a67986c7955a2f652c7fc7f8bda601f423c4d /sys/dev/ic | |
parent | d78788ce5d1fd34cc82e78e674ff2af31b8ad6d9 (diff) |
get direction of read/write correct in calls to bus_dmamap_sync()
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/fxp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c index acbe6aa94f0..d3216d8ede0 100644 --- a/sys/dev/ic/fxp.c +++ b/sys/dev/ic/fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fxp.c,v 1.25 2001/08/25 14:55:14 jason Exp $ */ +/* $OpenBSD: fxp.c,v 1.26 2001/08/27 22:06:52 jason Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -686,7 +686,7 @@ fxp_start(ifp) bpf_mtap(ifp->if_bpf, m0); #endif - FXP_MBUF_SYNC(sc, txs->tx_map, BUS_DMASYNC_PREREAD); + FXP_MBUF_SYNC(sc, txs->tx_map, BUS_DMASYNC_PREWRITE); txc = txs->tx_cb; txc->tbd_number = txs->tx_map->dm_nsegs; @@ -778,7 +778,7 @@ fxp_intr(arg) (txs->tx_cb->cb_status & FXP_CB_STATUS_C)) { if (txs->tx_mbuf != NULL) { FXP_MBUF_SYNC(sc, txs->tx_map, - BUS_DMASYNC_POSTREAD); + BUS_DMASYNC_POSTWRITE); bus_dmamap_unload(sc->sc_dmat, txs->tx_map); m_freem(txs->tx_mbuf); |