Re: Screen Refresh

From
Lucas Correia Villa Real <hidden>
Date
2004-05-05 15:49:02
Reply to
Jan-Benedict Glaw, 2004-05-05
On Wednesday 05 May 2004 11:02, Jan-Benedict Glaw wrote:
On Wed, 2004-05-05 10:47:00 -0300, Lucas Correia Villa Real
[off-list ref]

wrote in message [ref]:
quoted
I'm writing a device driver for a monochrome LCD display managed by a
controller that will be plugged into the CPU through a SPI, that is, I
cannot directly memory-map it's address, since the communication will be
done via a serial interface.
So I see two ways.

	If you only want to be able to output text, then you'd register
as a console device. You'll then get write accesses, which you can then
promote to real hardware.

	If you really want to provide a graphical display, you'll need
something like two buffers (one the kernel writes to, probably a 2nd one
to store the "current" image to only send down the changed pixels).
That'll come along with some timed function - not nice, but may work.

In theory, you'd try to not actually provide a framebuffer (memory), but
to simply give pointers to all those accelerated functions. If you've
got enough luck, you'll only see these functions called, so that you can
do graphics with merely no overhead of polling the whole memory...
Hmm, that's a good idea! I'll need to have graphical display, so I think I'll 
start by writing a first release using this double buffering technique, and 
later try to play with accelerated functions.

Thanks for the help!
Lucas


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
Thread (4 messages) 4 messages, 3 authors, last reply 2004-05-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help