struct vga16fb_par *par = (struct vga16fb_par *) info->par; 
struct vga16fb_par *par = info->par; 
static void vga16fb_pan_var(struct fb_info *info, 			    struct fb_var_screeninfo *var){	struct vga16fb_par *par = (struct vga16fb_par *) info->par;	u32 xoffset, pos;	xoffset = var->xoffset;	if (info->var.bits_per_pixel == 8) {		pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2;	} else if (par->mode & MODE_TEXT) {		int fh = 16; // FIXME !!! font height. Fugde for now.		pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3;	} else {		if (info->var.nonstd)			xoffset--;		pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 3;	}	vga_io_wcrt(VGA_CRTC_START_HI, pos >> 8);	vga_io_wcrt(VGA_CRTC_START_LO, pos & 0xFF);	/* if we support CFB4, then we must! support xoffset with pixel	 * granularity if someone supports xoffset in bit resolution */	vga_io_r(VGA_IS1_RC);		/* reset flip-flop */	vga_io_w(VGA_ATT_IW, VGA_ATC_PEL);	if (var->bits_per_pixel == 8)		vga_io_w(VGA_ATT_IW, (xoffset & 3) << 1);	else		vga_io_w(VGA_ATT_IW, xoffset & 7);	vga_io_r(VGA_IS1_RC);	vga_io_w(VGA_ATT_IW, 0x20);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/120ddb41f18c2d41702af561f4acfbcbd8d6fb46/vga16fb.c/buggy/drivers/video/vga16fb.c