kernels/linux-2.4.0/drivers/video/fbgen.c
/*
     *  Get the Fixed Part of the Display
     */
Get the Fixed Part of the Display
Get the Fixed Part of the Display
int fbgen_get_fix(struct fb_fix_screeninfo *fix, 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);
    else {
	int err;
	if ((err = fbhw->decode_var(&fb_display[con].var, &par, info2)))
	    return err;
    }
    memset(fix, 0, sizeof(struct fb_fix_screeninfo));
    return fbhw->encode_fix(fix, &par, info2);
}
int fbgen_get_fix ( struct fb_fix_screeninfo * fix , 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 ) ; else { int err ; if ( ( err = fbhw -> decode_var ( & fb_display [ con ] . var , & par , info2 ) ) ) return err ; } memset ( fix , 0 , sizeof ( struct fb_fix_screeninfo ) ) ; return fbhw -> encode_fix ( fix , & par , info2 ) ; }
Get the Fixed Part of the Display
Get the Fixed Part of the Display