From: subashgs@yahoo.com (babu subash)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regadring Linux Scatter Gather List
Date: Fri, 6 Nov 2015 10:22:22 +0000 (UTC) [thread overview]
Message-ID: <131529692.618013.1446805342330.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: 131529692.618013.1446805342330.JavaMail.yahoo.ref@mail.yahoo.com
Hi All,
I have a basic query regarding the DMA. After the SG list is prepared and mapped using dma_map_sg().
we need to do DMA transfer.
Here the list will give the bus addresses of source SG list.
In my one of the earlier project in vxworks, I had a DMA registers which provided the src and dst address register and mode.
where we use to fill both addresses, size and direction.
But here how to specify the destination addresses. Please let me know.
In one of the driver I saw this method:
dmaflags = claim_dma_lock();
set_dma_mode(); /* Read / Write */
set_dma_addr(dma, dma_addr);
set_dma_count(dma, size);
enable_dma(dma);
release_dma_lock(dmaflags);
Here the dma_addr will be the address will be given that we get from the SG list mapped address list which becomes the src address for write on that channel.
But to give the dest address where to write on to particular offset on data buffer?? Is the issue...
Is there any other methods should we use?
Regards,
Subash
parent reply other threads:[~2015-11-06 10:22 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <131529692.618013.1446805342330.JavaMail.yahoo.ref@mail.yahoo.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=131529692.618013.1446805342330.JavaMail.yahoo@mail.yahoo.com \
--to=subashgs@yahoo.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).