What is the ioremap() function?

From: Min-kyu, Joo <hidden>
Date: 2000-09-22 21:12:52

I have some question about ioremap() function...

In arch/ppc/mm/init.c file, there is ioremap() function..
What is the main functionality of ioremap()?

It takes two argument...
I must use ioremap() for flash device..

I think first argument is physical address of memory mapped device, so I put that argument physical starting address of flash device. In my case, starting address of flash is 0XE4000000. and I use 4MB flash.
Am I use virtual address for first argument?

So I called ioremap() function with following line.

ioremap(0xE4000000, 1024*1024*4);
Am I correct?

Please answer my question...


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help