diff options
author | yongari <yongari@FreeBSD.org> | 2010-05-14 16:55:13 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-05-14 16:55:13 +0000 |
commit | ac29b333540045aa780c872b1e387785ff5d481c (patch) | |
tree | 5bd51ce978ff228a8256cb8420cc5d7ca81ec903 /sys/dev/fxp/if_fxp.c | |
parent | c472f73fed48ff7a9853761d5ec0feaf1ac078c4 (diff) | |
download | FreeBSD-src-ac29b333540045aa780c872b1e387785ff5d481c.zip FreeBSD-src-ac29b333540045aa780c872b1e387785ff5d481c.tar.gz |
Controller updates RFA via DMA so driver needs synchronization.
Add missing BUS_DMASYNC_POSTWRITE and BUS_DMASYNC_PREREAD.
Diffstat (limited to 'sys/dev/fxp/if_fxp.c')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 5cc8547..8e2d2a0 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -1899,7 +1899,7 @@ fxp_intr_body(struct fxp_softc *sc, struct ifnet *ifp, uint8_t statack, rfa = (struct fxp_rfa *)(m->m_ext.ext_buf + RFA_ALIGNMENT_FUDGE); bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map, - BUS_DMASYNC_POSTREAD); + BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE); #ifdef DEVICE_POLLING /* loop at most count times if count >=0 */ if (count >= 0 && count-- == 0) { @@ -2659,7 +2659,7 @@ fxp_add_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) le32enc(&p_rfa->link_addr, rxp->rx_addr); p_rfa->rfa_control = 0; bus_dmamap_sync(sc->fxp_rxmtag, p_rx->rx_map, - BUS_DMASYNC_PREWRITE); + BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE); } else { rxp->rx_next = NULL; sc->fxp_desc.rx_head = rxp; |