* ioremap64 and remap_page_range in 440GP
@ 2003-01-01 6:45 Vishwanath
2003-01-06 4:10 ` Matt Porter
0 siblings, 1 reply; 2+ messages in thread
From: Vishwanath @ 2003-01-01 6:45 UTC (permalink / raw)
To: linuxppc-embedded
Hi All,
In PPC Linux, to bring a particular IO page onto Linux addressing space, we
use ioremap64(). Is my understanding correct? If I want to map this remapped
address on user space, I have to use remap_page_range() of kernel in my
driver. remap_page_range() takes a 32-bit physical address as argument. But
in 440GP, all addresses are 36-bit with respect to processor. Is there any
64-bit equivalent of remap_page_range(). If it exists, how to use it?
Please help me out since I am stuck while mapping an external peripheral
registers onto user space.
Thanks in advance.
Regards,
vishwa
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ioremap64 and remap_page_range in 440GP
2003-01-01 6:45 ioremap64 and remap_page_range in 440GP Vishwanath
@ 2003-01-06 4:10 ` Matt Porter
0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2003-01-06 4:10 UTC (permalink / raw)
To: Vishwanath; +Cc: linuxppc-embedded
On Wed, Jan 01, 2003 at 12:15:29PM +0530, Vishwanath wrote:
>
> Hi All,
>
> In PPC Linux, to bring a particular IO page onto Linux addressing space, we
> use ioremap64(). Is my understanding correct? If I want to map this remapped
Yes.
> address on user space, I have to use remap_page_range() of kernel in my
> driver. remap_page_range() takes a 32-bit physical address as argument. But
> in 440GP, all addresses are 36-bit with respect to processor. Is there any
> 64-bit equivalent of remap_page_range(). If it exists, how to use it?
There's a patch to make remap_page_range() use a phys_addr_t and to use
the same bigphys fixups that ioremap() on 440gp uses. Part of it is
a bit of hack which is why it's not being commited. See the changeset
description in linuxppc_2_4_devel or linuxppc-2.5 for a pointer to
pick up the patch.
Regards,
--
Matt Porter
porter@cox.net
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-06 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-01 6:45 ioremap64 and remap_page_range in 440GP Vishwanath
2003-01-06 4:10 ` Matt Porter
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).