Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.development.system > #121

Dma descriptor allocation

From new <luvraghu@gmail.com>
Newsgroups comp.os.linux.development.system
Subject Dma descriptor allocation
Date 2011-05-11 22:42 -0700
Organization http://groups.google.com
Message-ID <2fe2f9cc-cdbc-47c8-9312-c84b32181f88@s16g2000prf.googlegroups.com> (permalink)

Show all headers | View raw


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

Back to comp.os.linux.development.system | Previous | NextNext in thread | Find similar


Thread

Dma descriptor allocation new <luvraghu@gmail.com> - 2011-05-11 22:42 -0700
  Re: Dma descriptor allocation Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-05-12 11:32 +0100

csiph-web