Thread (6 messages) 6 messages, 2 authors, 2006-06-21

Re: porting fb driver to 2, 6(fb_get_fix, fb_get_var)

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2006-06-12 12:45:09

syed khader wrote:
Hi,
  I am trying to port one of our LCD display frame
buffer driver to 2.6 kernel.
  The old 2.4 kernel had these functions defined in
fb_ops
    fb_open:    
    fb_release:
These 2 are still in 2.6, but they're optional.
    fb_get_fix: 
    fb_get_var:     
Gone.
    fb_set_var: 
The above is split into:

fb_check_var() - see if the requested var is compatible
                 and if not, round up to the next
                 legal value

fb_set_par()  - set the hardware based on the current
                var
    fb_get_cmap:
gone
    fb_set_cmap:
replaced by fb_setcolreg()

 
    fb_ioctl:   
optional.

Additional required ops for 2.6.

fb_imageblit - expand monochrome to color and/or
               expand 8-bit pseudocolor to color

Generic version for packed-pixel: cfb_imageblit

fb_fillrect - fill rectangular area with solid color

Generic version for packed-pixel: cfb_fillrect


fb_copyarea - copy rectangular area

Generic version for packed-pixel: cfb_copyarea

  But the latest 2.6 fb_ops has removed these and
there is entirely new set of functions. 
  I tried to go to list archives but I could not find
information. 
  What functions in 2.6 fb_ops should to used to
implement this old 2.4 set of functions?
Look at skeletonfb.c for comments.  The simplest
framebuffer driver you can start with is vfb.c


Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help