linux-mips
[Top] [All Lists]

Re: CCA4 mapping

To: Hauke Goos-Habermann <haukeh@pc-kiel.de>
Subject: Re: CCA4 mapping
From: Dan Malek <dan@embeddedalley.com>
Date: Thu, 26 May 2005 15:39:49 -0400
Cc: linux-mips@linux-mips.org
In-reply-to: <200505261520.34985.haukeh@pc-kiel.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200505261520.34985.haukeh@pc-kiel.de>
Sender: linux-mips-bounce@linux-mips.org

On May 26, 2005, at 9:20 AM, Hauke Goos-Habermann wrote:

Does anybody have an idea how to make the CCA4 mapping?

In the mmap() entry for the driver:

        pgprot_val(vma->vm_page_prot) |= (4 << 9);     /* CCA4 */

or, whatever is appropriate.  This will only work from a user
application (like X-Windows) that mmaps() the driver, you
aren't going to get a kernel mapped space this way without
some special VM space hacking.

Thanks.

        -- Dan


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