Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

DMA driver

Is there anybody who had writen dma driver?or who can show his relative code to me ,and I can learn from it.Thanks. Recently,I'm studying driver under uClinux.In my nios2 processor,I use dma to transmit data to my own IP,so I want to drive the dma to transmit data under uClinux.

who can help me ?Thanks!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can look at the DMA driver in linux-2.6.x/arch/nios2nommu/kernel/dma.c .

    The dma memory should be uncached or you need flush cache before dma.