LCDC_DMACR	= fbi->dmacr; 
static int imxfb_activate_var(struct fb_var_screeninfo *var, struct fb_info *info){	struct imxfb_info *fbi = info->par;	pr_debug("var: xres=%d hslen=%d lm=%d rm=%d\n",		var->xres, var->hsync_len,		var->left_margin, var->right_margin);	pr_debug("var: yres=%d vslen=%d um=%d bm=%d\n",		var->yres, var->vsync_len,		var->upper_margin, var->lower_margin);#if DEBUG_VAR	if (var->xres < 16        || var->xres > 1024)		printk(KERN_ERR "%s: invalid xres %d\n",			info->fix.id, var->xres);	if (var->hsync_len < 1    || var->hsync_len > 64)		printk(KERN_ERR "%s: invalid hsync_len %d\n",			info->fix.id, var->hsync_len);	if (var->left_margin > 255)		printk(KERN_ERR "%s: invalid left_margin %d\n",			info->fix.id, var->left_margin);	if (var->right_margin > 255)		printk(KERN_ERR "%s: invalid right_margin %d\n",			info->fix.id, var->right_margin);	if (var->yres < 1 || var->yres > 511)		printk(KERN_ERR "%s: invalid yres %d\n",			info->fix.id, var->yres);	if (var->vsync_len > 100)		printk(KERN_ERR "%s: invalid vsync_len %d\n",			info->fix.id, var->vsync_len);	if (var->upper_margin > 63)		printk(KERN_ERR "%s: invalid upper_margin %d\n",			info->fix.id, var->upper_margin);	if (var->lower_margin > 255)		printk(KERN_ERR "%s: invalid lower_margin %d\n",			info->fix.id, var->lower_margin);#endif	LCDC_HCR	= HCR_H_WIDTH(var->hsync_len) |	                  HCR_H_WAIT_1(var->left_margin) |			  HCR_H_WAIT_2(var->right_margin);	LCDC_VCR	= VCR_V_WIDTH(var->vsync_len) |	                  VCR_V_WAIT_1(var->upper_margin) |			  VCR_V_WAIT_2(var->lower_margin);	LCDC_SIZE	= SIZE_XMAX(var->xres) | SIZE_YMAX(var->yres);	LCDC_PCR	= fbi->pcr;	LCDC_PWMR	= fbi->pwmr;	LCDC_LSCR1	= fbi->lscr1;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/772a9e631ccad0423ed6d08acb3a4b1084ae2613/imxfb.c/buggy/drivers/video/imxfb.c