linux-mips
[Top] [All Lists]

Re: mmap problem

To: toch@dfpost.ru
Subject: Re: mmap problem
From: "Alexey Shinkin" <alexshinkin@hotmail.com>
Date: Wed, 08 Dec 2004 13:28:30 +0600
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi !

On Au1550 code like yours works

I use ioremap_nocache(PhysAddr,length)  to get access from kernel level.

For access from  userland I don't set any vm_flags in drivers' mmap() ,
vma->vm_flags is set by kernel to 0x40FB (VM_IO is set and VM_LOCKED isn't).

And , as Dan said , pci_resource_* functions used for getting valid PCI memory address

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


<Prev in Thread] Current Thread [Next in Thread>