How does one get physical address for iorempped window?

2 messages, 2 authors, 2001-02-15 · open the first message on its own page

How does one get physical address for iorempped window?

From: Subodh Nijsure <hidden>
Date: 2001-02-15 16:05:07

[ Perhaps not directly linux-ppc question ]

I am trying to get jffs working on my board and in trying to debug this
I need to know this.  The jffs driver requires that I map the flash address
space usinng ioremap_nocache or ioremap, when debugging I need to see exactly
which addresses its writing the CFI query commands.

My question is --

If I map memory window using ioremap_nocache() if I use virt_to_phys()
should one get back the actual physical address? If virt_to_phys is not
the correct function to use, how do I get  exact physical address?

Thanks.

/Subodh Nijsure

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: How does one get physical address for iorempped window?

From: Dan Malek <hidden>
Date: 2001-02-15 17:03:00

Subodh Nijsure wrote:
If I map memory window using ioremap_nocache() if I use virt_to_phys()
should one get back the actual physical address?
Ummmm....you give ioremap_nocache() a physical address to map, so
you have to know it........Using virt_to_phys() may not give you
the proper physical address, depending upon the platform.  I'm working
on a solution for 2.5 that will work.  Currently, it is wrapped into
a heavier weight virt_to_bus/phys() but that many not be the right
place.



	-- Dan

** 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