Fix a busdma bogon:

Some of the calls to bus_dmamap_sync() were syncing the DMA descriptor
ring maps using the mbuf tag, when they should have been using the
descriptor ring tag instead.
This commit is contained in:
Bill Paul 2003-07-18 22:11:47 +00:00
parent 85fdafb98d
commit 191926e10e

View File

@ -1704,7 +1704,7 @@ rl_rxeofcplus(sc)
/* Invalidate the descriptor memory */
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
bus_dmamap_sync(sc->rl_ldata.rl_rx_list_tag,
sc->rl_ldata.rl_rx_list_map,
BUS_DMASYNC_POSTREAD);
@ -1936,7 +1936,7 @@ rl_txeofcplus(sc)
/* Invalidate the TX descriptor list */
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
bus_dmamap_sync(sc->rl_ldata.rl_tx_list_tag,
sc->rl_ldata.rl_tx_list_map,
BUS_DMASYNC_POSTREAD);
@ -2383,7 +2383,7 @@ rl_startcplus(ifp)
/* Flush the TX descriptors */
bus_dmamap_sync(sc->rl_ldata.rl_mtag,
bus_dmamap_sync(sc->rl_ldata.rl_tx_list_tag,
sc->rl_ldata.rl_tx_list_map,
BUS_DMASYNC_PREWRITE|BUS_DMASYNC_PREREAD);