aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/stge
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-03-25 12:48:06 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-03-25 12:48:06 +0000
commit4bf83a42261a2ac84876f872889a302d9c095326 (patch)
treef467d88a8d99f83ec77e58d54343a5f67a373d78 /sys/dev/stge
parentca9326e328a9bd7e7a884b7513dff39b9fbbd69e (diff)
Notes
Diffstat (limited to 'sys/dev/stge')
-rw-r--r--sys/dev/stge/if_stge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/stge/if_stge.c b/sys/dev/stge/if_stge.c
index fe5345dc5568..e18bb5cd7338 100644
--- a/sys/dev/stge/if_stge.c
+++ b/sys/dev/stge/if_stge.c
@@ -967,8 +967,8 @@ stge_dma_alloc(struct stge_softc *sc)
/* allocate DMA'able memory and load the DMA map for Tx ring. */
error = bus_dmamem_alloc(sc->sc_cdata.stge_tx_ring_tag,
- (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
- &sc->sc_cdata.stge_tx_ring_map);
+ (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT |
+ BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_tx_ring_map);
if (error != 0) {
device_printf(sc->sc_dev,
"failed to allocate DMA'able memory for Tx ring\n");
@@ -988,8 +988,8 @@ stge_dma_alloc(struct stge_softc *sc)
/* allocate DMA'able memory and load the DMA map for Rx ring. */
error = bus_dmamem_alloc(sc->sc_cdata.stge_rx_ring_tag,
- (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
- &sc->sc_cdata.stge_rx_ring_map);
+ (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT |
+ BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_rx_ring_map);
if (error != 0) {
device_printf(sc->sc_dev,
"failed to allocate DMA'able memory for Rx ring\n");