How to access physical memory from user space for MPC8260 chip

Misbah khan misbah_khan at
Fri Jul 20 21:32:17 EST 2007

Physical address you can map to  kernel space using ioremap() function 
but you are not clear whether you want to map it to the user space / kernel
space. To map kernel space to user space you should use mmap() functionality
in your driver.

I hope you got the answer to what you were expecting else send the clear


Fillod Stephane wrote:
> suresh suresh wrote:
>>I have to map physical memory to user space or kernel space. I am
> writing >driver for MPC8260 chip and I want to know how to map any
> 32-bit address >space to user space and kernel space.
> Your question is a linuxppc-embedded FAQ. User-land access is documented
> in Denx's FAQ[1], and accessible through shorter URL[2]. For more 
> information, please follow this thread[3] (not ppc specific actually).
> [1]
> ssingPeripheralsFromUserSpace
> [2]
> [3]
> In kernel land, ioremap() is all you need.
> Don't forget to use the 'eieio' asm instruction if you want explicit 
> I/O ordering.
> Best Regards,
> -- 
> Stephane, the userland ioremap bot
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at

View this message in context:
Sent from the linuxppc-embedded mailing list archive at

More information about the Linuxppc-embedded mailing list