How does one get physical address for iorempped window?

Matt Porter mmporter at home.com
Mon Feb 19 03:28:28 EST 2001


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 at 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/






More information about the Linuxppc-embedded mailing list