Results 1 to 1 of 1
Thread: Dma descriptor allocation
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2006
Dma descriptor allocation
I'm trying to allocate mem for dma descriptor in chain mode, I need your help in allocation of dma descriptors and buffers. Suppose I have 10 descriptors and 512 bytes of data buffers, then I would allocate 10*sizeof(struct desc) amount of memory, similarily 512*10 bytes of memory for data buffers. Do I need to use dma_alloc_coherent() for allocating both dma desc and data buffers? Do both share same addr space?
Appreciate your help.
Thanks a lot