Forum Discussion

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

How use DMA under uClinux ?

Hi all, I want to use the dma controller under my programm in uClinux. Do I use this (http://www.altera.com/literature/hb/nios2/n2sw_nii52010.pdf) ? Doesn't uClinux offer any functions ? If I'll have to use the HAL API, I 'm forced to use nios-ide ? Thanks in advice.

1 Reply

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

    DMA can only be used in a Kernel driver, but not in a userland program. AFAIK, the Altera HAL stuff can't be used with Linux.

    Of course there are the appropriate macros/functions that allow for easily handling DMA. Same provide a portable access to DMA data memory (non cached, ...), quite independently of the architecture. Maybe you can use the TSA Ethernet driver sourcecode as a reference.

    -Michael