ACCESS_FBINFO(fbops).fb_cursor = soft_cursor; 
ACCESS_FBINFO(fbops).fb_cursor = NULL; 
void matrox_cfbX_init(WPMINFO2) {	u_int32_t maccess;	u_int32_t mpitch;	u_int32_t mopmode;	int accel;	DBG(__FUNCTION__)	mpitch = ACCESS_FBINFO(fbcon).var.xres_virtual;	ACCESS_FBINFO(fbops).fb_copyarea = cfb_copyarea;	ACCESS_FBINFO(fbops).fb_fillrect = cfb_fillrect;	ACCESS_FBINFO(fbops).fb_imageblit = cfb_imageblit;	ACCESS_FBINFO(fbops).fb_cursor = soft_cursor;	accel = (ACCESS_FBINFO(fbcon).var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT;	switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) {		case 4:		maccess = 0x00000000;	/* accelerate as 8bpp video */				mpitch = (mpitch >> 1) | 0x8000; /* disable linearization */				mopmode = M_OPMODE_4BPP;				matrox_cfb4_pal(ACCESS_FBINFO(cmap));				if (accel && !(mpitch & 1)) {					ACCESS_FBINFO(fbops).fb_copyarea = matroxfb_cfb4_copyarea;					ACCESS_FBINFO(fbops).fb_fillrect = matroxfb_cfb4_fillrect;				}				break;		case 8:		maccess = 0x00000000;				mopmode = M_OPMODE_8BPP;				matrox_cfb8_pal(ACCESS_FBINFO(cmap));				if (accel) {					ACCESS_FBINFO(fbops).fb_copyarea = matroxfb_copyarea;					ACCESS_FBINFO(fbops).fb_fillrect = matroxfb_fillrect;					ACCESS_FBINFO(fbops).fb_imageblit = matroxfb_imageblit;				}				break;		case 16:	if (ACCESS_FBINFO(fbcon).var.green.length == 5) {					maccess = 0xC0000001;					ACCESS_FBINFO(cmap[16]) = 0x7FFF7FFF;				} else {					maccess = 0x40000001;					ACCESS_FBINFO(cmap[16]) = 0xFFFFFFFF;				}				mopmode = M_OPMODE_16BPP;				if (accel) {					ACCESS_FBINFO(fbops).fb_copyarea = matroxfb_copyarea;					ACCESS_FBINFO(fbops).fb_fillrect = matroxfb_fillrect;					ACCESS_FBINFO(fbops).fb_imageblit = matroxfb_imageblit;				}				break;		case 24:	maccess = 0x00000003;				mopmode = M_OPMODE_24BPP;				ACCESS_FBINFO(cmap[16]) = 0xFFFFFFFF;				if (accel) {					ACCESS_FBINFO(fbops).fb_copyarea = matroxfb_copyarea;					ACCESS_FBINFO(fbops).fb_fillrect = matroxfb_fillrect;					ACCESS_FBINFO(fbops).fb_imageblit = matroxfb_imageblit;				}				break;		case 32:	maccess = 0x00000002;				mopmode = M_OPMODE_32BPP;				ACCESS_FBINFO(cmap[16]) = 0xFFFFFFFF;				if (accel) {					ACCESS_FBINFO(fbops).fb_copyarea = matroxfb_copyarea;					ACCESS_FBINFO(fbops).fb_fillrect = matroxfb_fillrect;					ACCESS_FBINFO(fbops).fb_imageblit = matroxfb_imageblit;				}				break;		default:	maccess = 0x00000000;				mopmode = 0x00000000;				break;	/* turn off acceleration!!! */	}	mga_fifo(8);	mga_outl(M_PITCH, mpitch);	mga_outl(M_YDSTORG, curr_ydstorg(MINFO));	if (ACCESS_FBINFO(capable.plnwt))		mga_outl(M_PLNWT, -1);	if (ACCESS_FBINFO(capable.srcorg)) {		mga_outl(M_SRCORG, 0);		mga_outl(M_DSTORG, 0);	}	mga_outl(M_OPMODE, mopmode);	mga_outl(M_CXBNDRY, 0xFFFF0000);	mga_outl(M_YTOP, 0);	mga_outl(M_YBOT, 0x01FFFFFF);	mga_outl(M_MACCESS, maccess);	ACCESS_FBINFO(accel.m_dwg_rect) = M_DWG_TRAP | M_DWG_SOLID | M_DWG_ARZERO | M_DWG_SGNZERO | M_DWG_SHIFTZERO;	if (isMilleniumII(MINFO)) ACCESS_FBINFO(accel.m_dwg_rect) |= M_DWG_TRANSC;	ACCESS_FBINFO(accel.m_opmode) = mopmode;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c465e05a03209651078b95686158648fd7ed84c5/matroxfb_accel.c/buggy/drivers/video/matrox/matroxfb_accel.c