aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-03-25 12:47:01 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-03-25 12:47:01 +0000
commitca9326e328a9bd7e7a884b7513dff39b9fbbd69e (patch)
tree14ab8103cc87c43991bcd16e50e070027e7e64bc /sys/dev
parenta2cb9b5f45f673a19114db0b6aae44f52e01da5c (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sk/if_sk.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c
index d9fae0830ee4..4d2abb845ec7 100644
--- a/sys/dev/sk/if_sk.c
+++ b/sys/dev/sk/if_sk.c
@@ -2036,8 +2036,8 @@ sk_dma_alloc(sc_if)
/* allocate DMA'able memory and load the DMA map for Tx ring */
error = bus_dmamem_alloc(sc_if->sk_cdata.sk_tx_ring_tag,
- (void **)&sc_if->sk_rdata.sk_tx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
- &sc_if->sk_cdata.sk_tx_ring_map);
+ (void **)&sc_if->sk_rdata.sk_tx_ring, BUS_DMA_NOWAIT |
+ BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc_if->sk_cdata.sk_tx_ring_map);
if (error != 0) {
device_printf(sc_if->sk_if_dev,
"failed to allocate DMA'able memory for Tx ring\n");
@@ -2057,8 +2057,8 @@ sk_dma_alloc(sc_if)
/* allocate DMA'able memory and load the DMA map for Rx ring */
error = bus_dmamem_alloc(sc_if->sk_cdata.sk_rx_ring_tag,
- (void **)&sc_if->sk_rdata.sk_rx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
- &sc_if->sk_cdata.sk_rx_ring_map);
+ (void **)&sc_if->sk_rdata.sk_rx_ring, BUS_DMA_NOWAIT |
+ BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc_if->sk_cdata.sk_rx_ring_map);
if (error != 0) {
device_printf(sc_if->sk_if_dev,
"failed to allocate DMA'able memory for Rx ring\n");
@@ -2165,8 +2165,9 @@ sk_dma_jumbo_alloc(sc_if)
/* allocate DMA'able memory and load the DMA map for jumbo Rx ring */
error = bus_dmamem_alloc(sc_if->sk_cdata.sk_jumbo_rx_ring_tag,
- (void **)&sc_if->sk_rdata.sk_jumbo_rx_ring,
- BUS_DMA_NOWAIT|BUS_DMA_ZERO, &sc_if->sk_cdata.sk_jumbo_rx_ring_map);
+ (void **)&sc_if->sk_rdata.sk_jumbo_rx_ring, BUS_DMA_NOWAIT |
+ BUS_DMA_COHERENT | BUS_DMA_ZERO,
+ &sc_if->sk_cdata.sk_jumbo_rx_ring_map);
if (error != 0) {
device_printf(sc_if->sk_if_dev,
"failed to allocate DMA'able memory for jumbo Rx ring\n");