linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* some more doubts regarding memory access from user/kernel space
@ 2005-02-11 15:15 Vijay Padiyar
  2005-02-14  9:09 ` AW: " Achim Machura
  0 siblings, 1 reply; 2+ messages in thread
From: Vijay Padiyar @ 2005-02-11 15:15 UTC (permalink / raw)
  To: Embedded TUX, LinuxPPC Support

Hi

Some more doubts about the same thing.

As I am aware, the MPC8260 does not have a separate I/O address space. So,
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?

Also, if I just do an ioremap(), can I directly access those remapped
addresses with inb()/outb() or writeb()/readb()? Or is something more to be
done prior to accessing it?

Regards

Vijay Padiyar

http://www.vijaypadiyar.eu.tf

^ permalink raw reply	[flat|nested] 2+ messages in thread

* AW: some more doubts regarding memory access from user/kernel space
  2005-02-11 15:15 some more doubts regarding memory access from user/kernel space Vijay Padiyar
@ 2005-02-14  9:09 ` Achim Machura
  0 siblings, 0 replies; 2+ messages in thread
From: Achim Machura @ 2005-02-14  9:09 UTC (permalink / raw)
  To: 'Vijay Padiyar'; +Cc: Linuxppc-Embedded (E-Mail)

Hello Vijay,

> -----Ursprüngliche Nachricht-----
> Von: linuxppc-embedded-bounces@ozlabs.org
> [mailto:linuxppc-embedded-bounces@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-14  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-11 15:15 some more doubts regarding memory access from user/kernel space Vijay Padiyar
2005-02-14  9:09 ` AW: " Achim Machura

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