NVWriteCrtc(par, 0x11, 0x00); 
nvidia_vga_protect(par, 1);  nvidia_write_regs(par);  #if defined (__BIG_ENDIAN) /* turn on LFB swapping */ { unsigned char tmp;  VGA_WR08(par->PCIO, 0x3d4, 0x46); tmp = VGA_RD08(par->PCIO, 0x3d5); tmp |= (1 << 7); VGA_WR08(par->PCIO, 0x3d5, tmp); } #endif  
static int nvidiafb_set_par(struct fb_info *info){	struct nvidia_par *par = info->par;	NVTRACE_ENTER();	NVLockUnlock(par, 1);	if (!par->FlatPanel || (info->var.bits_per_pixel != 24) ||	    !par->twoHeads)		par->FPDither = 0;	info->fix.visual = (info->var.bits_per_pixel == 8) ?	    FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_DIRECTCOLOR;	nvidia_init_vga(info);	nvidia_calc_regs(info);	nvidia_write_regs(par);	NVLockUnlock(par, 0);	if (par->twoHeads) {		VGA_WR08(par->PCIO, 0x03D4, 0x44);		VGA_WR08(par->PCIO, 0x03D5, par->ModeReg.crtcOwner);		NVLockUnlock(par, 0);	}	NVWriteCrtc(par, 0x11, 0x00);	info->fix.line_length = (info->var.xres_virtual *				 info->var.bits_per_pixel) >> 3;	if (info->var.accel_flags) {		info->fbops->fb_imageblit = nvidiafb_imageblit;		info->fbops->fb_fillrect = nvidiafb_fillrect;		info->fbops->fb_copyarea = nvidiafb_copyarea;		info->fbops->fb_sync = nvidiafb_sync;		info->pixmap.scan_align = 4;		info->flags &= ~FBINFO_HWACCEL_DISABLED;		NVResetGraphics(info);	} else {		info->fbops->fb_imageblit = cfb_imageblit;		info->fbops->fb_fillrect = cfb_fillrect;		info->fbops->fb_copyarea = cfb_copyarea;		info->fbops->fb_sync = NULL;		info->pixmap.scan_align = 1;		info->flags |= FBINFO_HWACCEL_DISABLED;	}	par->cursor_reset = 1;	NVWriteCrtc(par, 0x11, 0xff);	NVTRACE_LEAVE();	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/85f1503aff46089acd9f780b5259752839cf0162/nvidia.c/buggy/drivers/video/nvidia/nvidia.c