device memory mapping
Dan Malek
dan at netx4.com
Sat Apr 15 07:26:59 EST 2000
"Dayton, Dean" wrote:
> How do I map this address in Linux.
Very carefully....seriously. You will need to do ioremap() of the
address, and it will return a virtual address to you. The very
carefully part comes from you having to do this after the kernel
virtual memory allocator has been initialized. Don't do this ioremap()
in the mm/init.c function, but rather in the device driver initialization
(or open, or whatever seems appropriate). It should return a virtual
address something like 0xc4xxxxxx. Then, have at it!
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list