linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* What is the ioremap() function?
@ 2000-09-22 21:12 Min-kyu, Joo
  0 siblings, 0 replies; only message in thread
From: Min-kyu, Joo @ 2000-09-22 21:12 UTC (permalink / raw)
  To: linuxppc-embedded


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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-22 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-22 21:12 What is the ioremap() function? Min-kyu, Joo

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