driver for 440GP
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 thenioremap64()
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/
Quoted 7 lines · Khai Trinh
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.
Quoted 7 lines
When I get to do:
request_mem_region()and thenioremap64()Don't I need a 64 bit
request_mem_region()call? Is there such a kernel call before I callioremap64()?
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
[email protected]
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/