correct direction for bus_dma sync of rx buffer
Submitted by: Tai-hwa Liang
This commit is contained in:
parent
6fa13ec06f
commit
b03eb9a092
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139944
@ -617,7 +617,7 @@ bfe_list_newbuf(struct bfe_softc *sc, int c, struct mbuf *m)
|
||||
r = &sc->bfe_rx_ring[c];
|
||||
bus_dmamap_load(sc->bfe_tag, r->bfe_map, mtod(m, void *),
|
||||
MCLBYTES, bfe_dma_map_desc, d, 0);
|
||||
bus_dmamap_sync(sc->bfe_tag, r->bfe_map, BUS_DMASYNC_PREWRITE);
|
||||
bus_dmamap_sync(sc->bfe_tag, r->bfe_map, BUS_DMASYNC_PREREAD);
|
||||
|
||||
ctrl = ETHER_MAX_LEN + 32;
|
||||
|
||||
|
@ -1385,7 +1385,7 @@ sis_newbuf(struct sis_softc *sc, struct sis_desc *c, struct mbuf *m)
|
||||
bus_dmamap_load(sc->sis_tag, c->sis_map,
|
||||
mtod(m, void *), MCLBYTES,
|
||||
sis_dma_map_desc_ptr, c, 0);
|
||||
bus_dmamap_sync(sc->sis_tag, c->sis_map, BUS_DMASYNC_PREWRITE);
|
||||
bus_dmamap_sync(sc->sis_tag, c->sis_map, BUS_DMASYNC_PREREAD);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user