} else if (bpp == 16) 			/* RGB 565 */ ((u32*)info->pseudo_palette)[regno] = (red & 0xF800) | ((green & 0xFC00) >> 5) | ((blue & 0xF800) >> 11); else if (bpp == 32)		/* ARGB 8888 */ 
} else if (bpp == 16) {	/* RGB 565 */ u32 col;  col = (red & 0xF800) | ((green & 0xFC00) >> 5) | ((blue & 0xF800) >> 11); col |= col << 16; ((u32 *)(info->pseudo_palette))[regno] = col; } else if (bpp == 32)		/* ARGB 8888 */ 
static int tridentfb_setcolreg(unsigned regno, unsigned red, unsigned green,				 unsigned blue, unsigned transp,				 struct fb_info *info){	int bpp = info->var.bits_per_pixel;	if (regno >= info->cmap.len)		return 1;	if (bpp==8) {		t_outb(0xFF,0x3C6);		t_outb(regno,0x3C8);		t_outb(red>>10,0x3C9);		t_outb(green>>10,0x3C9);		t_outb(blue>>10,0x3C9);	} else	if (bpp == 16) 			/* RGB 565 */			((u32*)info->pseudo_palette)[regno] = (red & 0xF800) |			((green & 0xFC00) >> 5) | ((blue & 0xF800) >> 11);	else	if (bpp == 32)		/* ARGB 8888 */		((u32*)info->pseudo_palette)[regno] =			((transp & 0xFF00) <<16) 	|			((red & 0xFF00) << 8) 		|			((green & 0xFF00))		|			((blue & 0xFF00)>>8);//	debug("exit\n");	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8dad46cf38c029248d1331b6a97b2999e0751cfa/tridentfb.c/clean/drivers/video/tridentfb.c