Use BUS_DMA_COHERENT.

This commit is contained in:
Olivier Houchard 2006-03-02 14:06:38 +00:00
parent c621d49b4d
commit 5adfa73930
2 changed files with 2 additions and 2 deletions

View File

@ -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++) {

View File

@ -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)