ivideo->video_size += (ivideo->video_size/2); 
ivideo->video_size += (ivideo->video_size/2); 
static int __devinit sisfb_get_dram_size(struct sis_video_info *ivideo){#if defined(CONFIG_FB_SIS_300) || defined(CONFIG_FB_SIS_315)	u8 reg;#endif	ivideo->video_size = 0;	switch(ivideo->chip) {#ifdef CONFIG_FB_SIS_300	case SIS_300:	        inSISIDXREG(SISSR, 0x14, reg);		ivideo->video_size = ((reg & 0x3F) + 1) << 20;		break;	case SIS_540:	case SIS_630:	case SIS_730:	   	if(!ivideo->nbridge) return -1;	   	pci_read_config_byte(ivideo->nbridge, 0x63, &reg);		ivideo->video_size = 1 << (((reg & 0x70) >> 4) + 21);		break;#endif#ifdef CONFIG_FB_SIS_315	case SIS_315H:	case SIS_315PRO:	case SIS_315:	   	inSISIDXREG(SISSR, 0x14, reg);		ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20;		switch((reg >> 2) & 0x03) {		case 0x01:		case 0x03:		   ivideo->video_size <<= 1;		   break;		case 0x02:		   ivideo->video_size += (ivideo->video_size/2);		}	   	break;	case SIS_330:	   	inSISIDXREG(SISSR, 0x14, reg);		ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20;		if(reg & 0x0c) ivideo->video_size <<= 1;	   	break;	case SIS_550:	case SIS_650:	case SIS_740:	    	inSISIDXREG(SISSR, 0x14, reg);		ivideo->video_size = (((reg & 0x3f) + 1) << 2) << 20;		break;	case SIS_661:	case SIS_741:	     	inSISIDXREG(SISCR, 0x79, reg);		ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20;	   	break;	case SIS_660:	case SIS_760:		inSISIDXREG(SISCR, 0x79, reg);		reg = (reg & 0xf0) >> 4;		if(reg)	ivideo->video_size = (1 << reg) << 20;		inSISIDXREG(SISCR, 0x78, reg);		reg &= 0x30;		if(reg) {		   if(reg == 0x10) ivideo->video_size += (32 << 20);		   else		   ivideo->video_size += (64 << 20);		}	   	break;#endif	default:		return -1;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c