diff options
author | cognet <cognet@FreeBSD.org> | 2006-03-02 14:06:38 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-03-02 14:06:38 +0000 |
commit | 98462ee055ccc8d5634abfa177e7e67414016691 (patch) | |
tree | 6c893c06350441499cb1e04e3f8aa91a514ec12d /sys/arm | |
parent | e4adab401bac38075dc23ddd54b23ec30b4ed099 (diff) | |
download | FreeBSD-src-98462ee055ccc8d5634abfa177e7e67414016691.zip FreeBSD-src-98462ee055ccc8d5634abfa177e7e67414016691.tar.gz |
Use BUS_DMA_COHERENT.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/xscale/i80321/i80321_aau.c | 2 | ||||
-rw-r--r-- | sys/arm/xscale/i80321/i80321_dma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/xscale/i80321/i80321_aau.c b/sys/arm/xscale/i80321/i80321_aau.c index 38c4e95..f72a7c9 100644 --- a/sys/arm/xscale/i80321/i80321_aau.c +++ b/sys/arm/xscale/i80321/i80321_aau.c @@ -122,7 +122,7 @@ i80321_aau_attach(device_t dev) &Giant, &softc->dmatag)) panic("Couldn't create a dma tag"); if (bus_dmamem_alloc(softc->dmatag, (void **)&aaudescs, - BUS_DMA_NOWAIT, &softc->aauring[0].map)) + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &softc->aauring[0].map)) panic("Couldn't alloc dma memory"); for (int i = 0; i < AAU_RING_SIZE; i++) { diff --git a/sys/arm/xscale/i80321/i80321_dma.c b/sys/arm/xscale/i80321/i80321_dma.c index 3bc09d3..4ec6d16 100644 --- a/sys/arm/xscale/i80321/i80321_dma.c +++ b/sys/arm/xscale/i80321/i80321_dma.c @@ -127,7 +127,7 @@ i80321_dma_attach(device_t dev) panic("Couldn't create a dma tag"); DMA_REG_WRITE(softc, 0, 0); if (bus_dmamem_alloc(softc->dmatag, (void **)&dmadescs, - BUS_DMA_NOWAIT, &softc->dmaring[0].map)) + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &softc->dmaring[0].map)) panic("Couldn't alloc dma memory"); for (int i = 0; i < DMA_RING_SIZE; i++) { if (i > 0) |