From: Misbah khan <misbah_khan@engineer.com>
To: linuxppc-embedded@ozlabs.org
Subject: Re: Difference between ioremap() and phy_to_virt() Kernel function
Date: Mon, 22 Oct 2007 21:08:19 -0700 (PDT) [thread overview]
Message-ID: <13357088.post@talk.nabble.com> (raw)
In-Reply-To: <200710221304.44275.arnd@arndb.de>
Thanks Arnd
But i wish to know that could i use phy_to_virt() function in place io
ioremap() ????? And could you give me an example where we could use
phy_to_virt(). ioremap() implementation i have already done.
---Misbah
Arnd Bergmann wrote:
>
> On Monday 22 October 2007, Misbah khan wrote:
>> Could you Please let me know what is the difference between ioremap() and
>> phy_to_virt() function being provided by the Kernel.
>
> ioremap gives you a new mapping for I/O addresses that you can access
> with functions like in_be32 and the like.
>
> phy_to_virt() is rarely used at all, it only serves to convert a physical
> address for main memory (RAM) into the address used inside of the kernel.
>
> Arnd <><
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
--
View this message in context: http://www.nabble.com/Difference-between-ioremap%28%29-and-phy_to_virt%28%29-Kernel-function-tf4669833.html#a13357088
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
next prev parent reply other threads:[~2007-10-23 4:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-22 10:03 Difference between ioremap() and phy_to_virt() Kernel function Misbah khan
2007-10-22 11:04 ` Arnd Bergmann
2007-10-23 4:08 ` Misbah khan [this message]
2007-10-23 9:11 ` Arnd Bergmann
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=13357088.post@talk.nabble.com \
--to=misbah_khan@engineer.com \
--cc=linuxppc-embedded@ozlabs.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).