Re: Frame buffer / mmap() weirdness


Subject: Re: Frame buffer / mmap() weirdness
From: Benjamin Herrenschmidt (bh40@calva.net)
Date: Wed Dec 01 1999 - 03:04:51 MST


On Tue, Nov 30, 1999, Stephen Edie <sedie@terraplex.com> wrote:

>Geert,
>
>According to fbset, it's at: 0x8a008900
>
>I don't want to map /dev/mem if that's what you are talking about.
>
>So I am assuming that mmap() will start mapping from the first page that
>he frame buffer occupies... So I need to add the following to what
>mmap() returns in order to get a valid pointer:
>
>PAGE_ROUND_UP(phys_address) - phys_address
>
>(PAGE_ROUND_UP is assumed to return the beginning of the page that starts
>at or after the specified address)
>
>This doesn't entirely make sense. Just now I tested the program and it
>doesn't require re-alignment as I mention above.

This may be an issue with panning. I had a similar issue with
Mac-On-Linux video driver, just make sure you set the screen offset to 0,0.



This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:45 MST