Thread (2 messages) flat view 2 messages, 2 authors, 2001-02-19

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

From: Matt Porter <hidden>
Date: 2001-02-18 16:28:28

On Thu, Feb 15, 2001 at 09:58:59AM -0800, Subodh Nijsure wrote:
I know the physical address I should be writing to.

For debugging I was trying to print exact physical address where
write is happening .When I used virt_to_phys() on the addresse
ioremap() I was not getting back the original physical address.
Hence the question.
Well, the base problem is that virt_to_*/*_to_virt were only ever
intended to work on addresses mapped to system RAM.  See
Documentation/IO-mapping.txt.  Why not just store argument one to
ioremap to calculate the physical addresses you are working with
in virtual space?

--
Matt Porter
mmporter@home.com
This is Linux Country. On a quiet night, you can hear Windows reboot.

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