Difference between ioremap() and phy_to_virt() Kernel function

Arnd Bergmann arnd at arndb.de
Mon Oct 22 21:04:43 EST 2007


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


More information about the Linuxppc-embedded mailing list