From: "bhanu jampala" <adams.ppc@gmail.com>
To: linuxppc-embedded@ozlabs.org
Cc: rmcguire@videopresence.com, "M. Warner Losh" <imp@bsdimp.com>
Subject: Covert DMA address to Virtual address on Linux PPC
Date: Wed, 17 Sep 2008 13:13:09 -0600 [thread overview]
Message-ID: <4a21eaea0809171213o2218c4aau222f36e1c5575f78@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
Hi All,
How do I convert a DMA buffer address to its respective virtual address in
Linux PPC world?
I am not finding appropriate functions to do that?
How are people doing it on PPC platforms?
What I trying to do:
This is for MCC i.e. Buffer Desc and buffer are in main memory (DMA memory)
I have submitted some DMA buffer from a chunk of memory to Device.
Now at the end of successful receive, where I know the DMA address by
reading from the buffer Descriptors.
Now from this DMA address, how do I find out the Virtual address so that I
can perform a read on that buffer?
Regards,
Mukund Jampala
[-- Attachment #2: Type: text/html, Size: 671 bytes --]
reply other threads:[~2008-09-17 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4a21eaea0809171213o2218c4aau222f36e1c5575f78@mail.gmail.com \
--to=adams.ppc@gmail.com \
--cc=imp@bsdimp.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=rmcguire@videopresence.com \
/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).