AW: some more doubts regarding memory access from user/kernel space

Achim Machura achim.machura at berghof.com
Mon Feb 14 20:09:01 EST 2005


Hello Vijay,

> -----Ursprüngliche Nachricht-----
> Von: linuxppc-embedded-bounces at ozlabs.org
> [mailto:linuxppc-embedded-bounces at ozlabs.org]Im Auftrag von Vijay
> Padiyar

> with reference to my earlier mail, when do we need to use
> ioremap() and when
> do we need to use request_mem_region()? Or do we need to use both in a
> particular sequence?

I think first you have to progamm the chip select of your cpld correctly.
(see the mail from Mark)
You can do this in your module_init funktion.

Now you call request_mem_region to mark this memory used.
Now can mapp the virtual adress to your process by calling ioremap().

Regards

Achim




More information about the Linuxppc-embedded mailing list