
Embedded Graphics 333
Listing 9.3 Generic Frame Buffer Driver (continued)
static int sfb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info);
static int sfb_set_par(struct fb_info *info);
static int sfb_setcolreg(u_int regno, u_int red, u_int green,
u_int blue, u_int transp,
struct fb_info *info);
static int sfb_pan_display(struct fb_var_screeninfo *var,
struct fb_info *info);
static int sfb_mmap(struct fb_info *info, struct file *file,
struct vm_area_struct *vma);
/*
* Define fb_ops structure that is registered with the kernel.
* Note: The cfb_xxx routines, these are generic routines
* implemented in the kernel. You can override ...