From: mahdi hamzeh <mahdy.hamzeh@gmail.com>
To: linux-sh@vger.kernel.org
Subject: DMA
Date: Mon, 24 Jan 2011 23:04:57 +0000 [thread overview]
Message-ID: <AANLkTimiLJz-F3QMppVjh9ZaF8JbGeRawPgNme1dWjVJ@mail.gmail.com> (raw)
Hi,
I am working on a research project for which I should be able to
transfer data from memory to memory using DMA. I am working on a x86
machine but I want my code to be architecture independent as much as
possible. Please accept my apology if my question is too basic to be
asked from this mailing list. Here is my problem:
I used "struct dma_chan" to define a channel structure but when I use
"dma_request_channel" function to get a DMA channel, with all
different possible masks including DMA_MEMCPY, DMA_PRIVATE,....
anything, the function returns always NULL. This function is defined
in "dmaengine.h". I also tried a low level function to see dma channel
availability and "request_dma" function defined in "dma.h" works
perfect.
Any comment, help, document, program, reference anything that helps me
to create a simple DMA transaction would really be appreciated.
PS: There is a test program called dmatest.c is provided in the linux
kernel files. I tried to get it compiled but I could not since the
functions and structures used in this file has been changed in the
kernel header files.
Thanks
--
---Mahdi Hamzeh
next reply other threads:[~2011-01-24 23:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTimW-PT801BUL8QQkhVpezX_VNw-1qLNRpeeoQFU@mail.gmail.com>
[not found] ` <AANLkTinQWLOOSMS_8LcFkSmRT2K_CbQ+v2pH7FiNxqGo@mail.gmail.com>
[not found] ` <AANLkTimC=6TA8eF6jFYzm_3RzXkQo9BwCMexdjfPKtEC@mail.gmail.com>
[not found] ` <AANLkTinFJ54dCJPLANOmwejrBrb=vw0m-BLtq9a7ys5s@mail.gmail.com>
2011-01-24 23:04 ` mahdi hamzeh [this message]
2011-01-25 7:15 ` DMA Paul Mundt
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=AANLkTimiLJz-F3QMppVjh9ZaF8JbGeRawPgNme1dWjVJ@mail.gmail.com \
--to=mahdy.hamzeh@gmail.com \
--cc=linux-sh@vger.kernel.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).