par = (struct i810fb_par *) info->par; 
par = info->par; 
static int __devinit i810fb_init_pci (struct pci_dev *dev, 				   const struct pci_device_id *entry){	struct fb_info    *info;	struct i810fb_par *par = NULL;	int i, err = -1, vfreq, hfreq, pixclock;	i = 0;	info = framebuffer_alloc(sizeof(struct i810fb_par), &dev->dev);	if (!info)		return -ENOMEM;	par = (struct i810fb_par *) info->par;	par->dev = dev;	if (!(info->pixmap.addr = kmalloc(8*1024, GFP_KERNEL))) {		i810fb_release_resource(info, par);		return -ENOMEM;	}	memset(info->pixmap.addr, 0, 8*1024);	info->pixmap.size = 8*1024;	info->pixmap.buf_align = 8;	info->pixmap.access_align = 32;	info->pixmap.flags = FB_PIXMAP_SYSTEM;	if ((err = i810_allocate_pci_resource(par, entry))) {		i810fb_release_resource(info, par);		return err;	}	i810_init_defaults(par, info);	if ((err = i810_alloc_agp_mem(info))) {		i810fb_release_resource(info, par);		return err;	}	i810_init_device(par);        	info->screen_base = par->fb.virtual;	info->fbops = &par->i810fb_ops;	info->pseudo_palette = par->pseudo_palette;	fb_alloc_cmap(&info->cmap, 256, 0);	if ((err = info->fbops->fb_check_var(&info->var, info))) {		i810fb_release_resource(info, par);		return err;	}	encode_fix(&info->fix, info); 	 	    	i810fb_init_ringbuffer(info);	err = register_framebuffer(info);	if (err < 0) {    		i810fb_release_resource(info, par); 		printk("i810fb_init: cannot register framebuffer device\n");    		return err;      	}   	pci_set_drvdata(dev, info);	pixclock = 1000000000/(info->var.pixclock);	pixclock *= 1000;	hfreq = pixclock/(info->var.xres + info->var.left_margin + 			  info->var.hsync_len + info->var.right_margin);	vfreq = hfreq/(info->var.yres + info->var.upper_margin +		       info->var.vsync_len + info->var.lower_margin);      	printk("I810FB: fb%d         : %s v%d.%d.%d%s\n"      	       "I810FB: Video RAM   : %dK\n" 	       "I810FB: Monitor     : H: %d-%d KHz V: %d-%d Hz\n"	       "I810FB: Mode        : %dx%d-%dbpp@%dHz\n",	       info->node,	       i810_pci_list[entry->driver_data],	       VERSION_MAJOR, VERSION_MINOR, VERSION_TEENIE, BRANCH_VERSION,	       (int) par->fb.size>>10, info->monspecs.hfmin/1000,	       info->monspecs.hfmax/1000, info->monspecs.vfmin,	       info->monspecs.vfmax, info->var.xres, 	       info->var.yres, info->var.bits_per_pixel, vfreq);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/74f6ae84b2315c2fa8a4110b09a1c0f3dca92674/i810_main.c/buggy/drivers/video/i810/i810_main.c