Re: New framebuffer

"Jenkins, Clive" <[email protected]> Thu, 17 Aug 2006 13:04:33 +0100
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
> Since the lcd device is not attached to 
> the external bus interface (Address, Data and control IO) of
> my microcontroller,  it's why I wonder if we can mmap() it.
> Almost of graphic cards can mapped physically the memory
> because the video memory is already allocated. My case is
> different because the LCD is connected to GPIO.   

On method is to allocate the frame buffer and a shadow buffer
out of system RAM. Applications write to the frame buffer in
the normal way (probably using mmapp(/dev/fb0)), and your
driver periodically compares the FB with its shadow, and when
it finds any difference, updates the shadow and writes the
changes to the LCD module's internal memory using the GPIO
interface.

I haven't looked, but you might find examples of this in the
Denx kernel tree
http://www.denx.de/cgi-bin/gitweb.cgi?p=linux-2.6-denx.git;a=tree;h=8b92
67e5cf02e32ca70ede9b64c3a2b95e9d2453;hb=c3cad3140519bd060fbf9f4d0789f381
0d5c1d42;f=drivers/video

Clive

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642