* driver for 440GP
@ 2002-07-24 22:06 Khai Trinh
2002-07-25 18:21 ` Matt Porter
0 siblings, 1 reply; 2+ messages in thread
From: Khai Trinh @ 2002-07-24 22:06 UTC (permalink / raw)
To: linuxppc-embedded
Hi folks,
I am trying to write a driver for the 440GP peripheral
device with physical memory map of 0x1xxxxxxxx (total
of 36 bits) on the PLB address space.
When I get to do:
request_mem_region() and then
ioremap64()
Don't I need a 64 bit request_mem_region() call? Is
there such a kernel call before I call ioremap64()?
Thanks,
--Khai
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: driver for 440GP
2002-07-24 22:06 driver for 440GP Khai Trinh
@ 2002-07-25 18:21 ` Matt Porter
0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2002-07-25 18:21 UTC (permalink / raw)
To: Khai Trinh; +Cc: linuxppc-embedded
On Wed, Jul 24, 2002 at 03:06:10PM -0700, Khai Trinh wrote:
>
> Hi folks,
>
> I am trying to write a driver for the 440GP peripheral
> device with physical memory map of 0x1xxxxxxxx (total
> of 36 bits) on the PLB address space.
>
> When I get to do:
>
> request_mem_region() and then
> ioremap64()
>
> Don't I need a 64 bit request_mem_region() call? Is
> there such a kernel call before I call ioremap64()?
Two options for now:
1) Use the least significant 32-bits of the physical address to
do the region manipulation.
2) Don't register the region. We don't really do a good job
of this in most PPC code anyway.
In 2.5, we can make resource start/end u64's, but it's intrusive
enough that I can't imagine it going into 2.4 (I certainly
wouldn't ask for it). The region manipulation API would now use
u64's and printk formatting has to be handled since a u64 is
a different type on 32/64 platforms.
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:[~2002-07-25 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-24 22:06 driver for 440GP Khai Trinh
2002-07-25 18:21 ` 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).