temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); temp = (temp & 0x0E) >> 1; if((temp >= 2) && (temp <= 5)) 	SiS_Pr->SiS_IF_DEF_LVDS = 1; if(temp == 3)   		SiS_Pr->SiS_IF_DEF_TRUMPION = 1; if((temp == 4) || (temp == 5)) { 
temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x37) & 0x0e) >> 1; if((temp >= 2) && (temp <= 5))	SiS_Pr->SiS_IF_DEF_LVDS = 1; if(temp == 3)			SiS_Pr->SiS_IF_DEF_TRUMPION = 1; if((temp == 4) || (temp == 5)) { 
SiSSetLVDSetc(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo){   USHORT temp;   SiS_Pr->SiS_IF_DEF_LVDS = 0;   SiS_Pr->SiS_IF_DEF_TRUMPION = 0;   SiS_Pr->SiS_IF_DEF_CH70xx = 0;   SiS_Pr->SiS_IF_DEF_DSTN = 0;   SiS_Pr->SiS_IF_DEF_FSTN = 0;   SiS_Pr->SiS_IF_DEF_CONEX = 0;   SiS_Pr->SiS_ChrontelInit = 0;   /* Check for SiS30x first */   temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x00);   if((temp == 1) || (temp == 2)) return;   switch(HwInfo->jChipType) {#ifdef SIS300   case SIS_540:   case SIS_630:   case SIS_730:      	temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37);      	temp = (temp & 0x0E) >> 1;      	if((temp >= 2) && (temp <= 5)) 	SiS_Pr->SiS_IF_DEF_LVDS = 1;      	if(temp == 3)   		SiS_Pr->SiS_IF_DEF_TRUMPION = 1;      	if((temp == 4) || (temp == 5)) {		/* Save power status (and error check) - UNUSED */		SiS_Pr->SiS_Backup70xx = SiS_GetCH700x(SiS_Pr, 0x0e);		SiS_Pr->SiS_IF_DEF_CH70xx = 1;        }	break;#endif#ifdef SIS315H   case SIS_550:   case SIS_650:   case SIS_740:   case SIS_330:        temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37);      	temp = (temp & 0x0E) >> 1;      	if((temp >= 2) && (temp <= 3)) 	SiS_Pr->SiS_IF_DEF_LVDS = 1;      	if(temp == 3)  			SiS_Pr->SiS_IF_DEF_CH70xx = 2;        break;   case SIS_661:   case SIS_741:   case SIS_660:   case SIS_760:   case SIS_761:   case SIS_340:        temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38);      	temp = (temp & 0xe0) >> 5;      	if((temp >= 2) && (temp <= 3)) 	SiS_Pr->SiS_IF_DEF_LVDS = 1;      	if(temp == 3)  			SiS_Pr->SiS_IF_DEF_CH70xx = 2;	if(temp == 4)  			SiS_Pr->SiS_IF_DEF_CONEX = 1;  /* Not yet supported */        break;#endif   default:        break;   }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c