kernels/linux-2.4.0/drivers/video/fbgen.c
/*
     *  Get the User Defined Part of the Display
     */
Get the User Defined Part of the Display
Get the User Defined Part of the Display
int fbgen_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info)
{
    struct fb_info_gen *info2 = (struct fb_info_gen *)info;
    struct fbgen_hwswitch *fbhw = info2->fbhw;
    char par[info2->parsize];
    if (con == -1) {
	fbhw->get_par(&par, info2);
	fbhw->encode_var(var, &par, info2);
    } else
	*var = fb_display[con].var;
    return 0;
}
int fbgen_get_var ( struct fb_var_screeninfo * var , int con , struct fb_info * info ) { struct fb_info_gen * info2 = ( struct fb_info_gen * ) info ; struct fbgen_hwswitch * fbhw = info2 -> fbhw ; char par [ info2 -> parsize ] ; if ( con == -1 ) { fbhw -> get_par ( & par , info2 ) ; fbhw -> encode_var ( var , & par , info2 ) ; } else * var = fb_display [ con ] . var ; return 0 ; }
Get the User Defined Part of the Display
Get the User Defined Part of the Display