diff options
author | mux <mux@FreeBSD.org> | 2003-04-05 12:43:21 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-04-05 12:43:21 +0000 |
commit | f6dd92222f8287b141f987264f7eae170888934d (patch) | |
tree | 43f5a06e5826482b3a56431c7c727927810ae4e2 /sys/dev/fxp | |
parent | e9eb2e1b8dab2e012569dc4ecba565c61d7dc17e (diff) | |
download | FreeBSD-src-f6dd92222f8287b141f987264f7eae170888934d.zip FreeBSD-src-f6dd92222f8287b141f987264f7eae170888934d.tar.gz |
- Change a FXP_NRFABUFS which would have been a FXP_NTXCB.
- Correct some bus_dmamap_sync() calls.
Submitted by: jake
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 2253a6f..f36af89 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -674,7 +674,7 @@ fxp_attach(device_t dev) /* * Pre-allocate the TX DMA maps. */ - for (i = 0; i < FXP_NRFABUFS; i++) { + for (i = 0; i < FXP_NTXCB; i++) { error = bus_dmamap_create(sc->fxp_mtag, 0, &sc->fxp_desc.tx_list[i].tx_map); if (error) { @@ -2228,7 +2228,7 @@ fxp_add_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) rxp->rx_map = tmp_map; rxp->rx_mbuf = m; - bus_dmamap_sync(sc->fxp_mtag, rxp->rx_map, BUS_DMASYNC_PREREAD); + bus_dmamap_sync(sc->fxp_mtag, rxp->rx_map, BUS_DMASYNC_PREWRITE); /* * If there are other buffers already on the list, attach this @@ -2243,7 +2243,7 @@ fxp_add_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) (volatile u_int32_t *)p_rfa->link_addr); p_rfa->rfa_control = 0; bus_dmamap_sync(sc->fxp_mtag, p_rx->rx_map, - BUS_DMASYNC_PREREAD); + BUS_DMASYNC_PREWRITE); } else { rxp->rx_next = NULL; sc->fxp_desc.rx_head = rxp; |