Difference between ioremap() and phy_to_virt() Kernel function

Misbah khan misbah_khan at engineer.com
Tue Oct 23 14:08:19 EST 2007



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 at 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.



More information about the Linuxppc-embedded mailing list