Results 1 to 1 of 1
Hello experts,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-10-2011 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 12
Dma descriptor allocation
Hello experts,
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


Reply With Quote
