diff options
author | adrian <adrian@FreeBSD.org> | 2012-04-07 05:51:43 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-04-07 05:51:43 +0000 |
commit | 1e4ae572e54eb1ca9e972fb19aefc3266395755b (patch) | |
tree | b473449777f0e1952793d2553a543019d476a3ac | |
parent | 8b30efff05ea6c1b250b670afba98d8b6165d8e0 (diff) | |
download | FreeBSD-src-1e4ae572e54eb1ca9e972fb19aefc3266395755b.zip FreeBSD-src-1e4ae572e54eb1ca9e972fb19aefc3266395755b.tar.gz |
Do a dma sync before the descriptors are chained together.
I need to find a better place to do this..
-rw-r--r-- | sys/dev/ath/if_ath_tx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index d2602a7..d27df07 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -322,6 +322,7 @@ ath_tx_chaindesclist(struct ath_softc *sc, struct ath_buf *bf) ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1]); bf->bf_lastds = ds; } + bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_PREWRITE); } /* @@ -372,6 +373,8 @@ ath_tx_chaindesclist_subframe(struct ath_softc *sc, struct ath_buf *bf) __func__, i, ds->ds_link, ds->ds_data, ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1]); bf->bf_lastds = ds; + bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, + BUS_DMASYNC_PREWRITE); } } |