|
From: Chris W. <cw...@so...> - 2001-08-30 19:53:09
|
> Hi, > > Sorry for the following stupid questions, :) I am a new comer to the > frame buffer devices of linux, I am supposed to write the frame buffer > device driver for scorpion graphic chip(Motorola MC92110 ) and first > like to play around the frame buffer device like vfb or VESA. Could > anybody point me some simple examples to use this kind of devices, like > draw a line or... > > Thanks in advanced, > > Li Yi Hello! recently, a friend of mine and myself faced a similar challenge. unfortunately, there was no one to answer this, so we forged ahead blindly, and figured out what we could. take a look at gdr.softpixel.com/spurtg for a program that uses framebuffer (we wrote this). download the tarball, and take a look at gfx.c in the src dir. basically, you open the device, call some ioctl's (outlined in linux/fb.h i think), and thats all you need. it helps to mmio it so it becomes a large array. if you need some more help, we can try to help you out. Chris Wright |