DMA from kernel buffer to HW
Hello,
Using __get_free_pages I'm allocating a space in kernel.
This space is mapped also to user space so application can write data to it.
Upon IOCTL request from application, the device driver is writing the buffer to HW with DMA.
The DMA controller is part of the FPGA, not in the CPU. The DMA is programmed by writing few registers to HW.
In this scenario, should I need any kernel's DMA API ? Why ?
For example: dma_map_single
Thank you,
Zvika
|