release/src/linux/linux/drivers/video/fbgen.c
/**
 *	fbgen_get_fix - get fixed part of display
 *	@fix: fb_fix_screeninfo structure
 *	@con: virtual console number
 *	@info: frame buffer info structure
 *
 *	Get the fixed information part of the display and place it
 *	into @fix for virtual console @con on device @info.
 *
 *	Returns negative errno on error, or zero on success.
 *
 */
get fixed part of display
@fix: fb_fix_screeninfo structure
@con: virtual console number
@info: frame buffer info structure

Get the fixed information part of the display and place it
into @fix for virtual console @con on device @info.

Returns negative errno on error, or zero on success.
get fixed part of display @fix : fb_fix_screeninfo structure @con : virtual console number @info : frame buffer info structure Get the fixed information part of the display and place it into @fix for virtual console @con on device @info . Returns negative errno on error or zero on success .
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 ) ; }
fbgen_get_fix - get fixed part of display
      @fix: fb_fix_screeninfo structure
      @con: virtual console number
      @info: frame buffer info structure
fbgen_get_fix - get fixed part of display @fix : fb_fix_screeninfo structure @con : virtual console number @info : frame buffer info structure