PowerPC equivalent to dma_mmap_writecombine()?

Arnd Bergmann arnd at arndb.de
Fri Jul 6 02:13:53 EST 2007


On Thursday 05 July 2007, Timur Tabi wrote:
> static int at91_pcm_mmap(struct snd_pcm_substream *substream,
>         struct vm_area_struct *vma)
> {
>         struct snd_pcm_runtime *runtime = substream->runtime;
> 
>         return dma_mmap_writecombine(substream->pcm->card->dev, vma,
>                                      runtime->dma_area,
>                                      runtime->dma_addr,
>                                      runtime->dma_bytes);
> }
> 
> There are no dma_mmap_x() functions in arch/powerpc.  Can someone tell me what the powerpc 
> equivalent to dma_mmap_writecombine() is?

Not sure exactly what arm does here, but it sounds like you want
to call remap_pfn_range with the _PAGE_NO_CACHE bit set in the
protection flags, and _PAGE_GUARDED not set.

	Arnd <><


More information about the Linuxppc-dev mailing list