 #if 0 if(SiS_Pr->SiS_IF_DEF_FSTN) { if(SiS_Pr->SiS_LCDResInfo == SiS_Pr->SiS_Panel320x480){ (*DisplayType) = 22; } } #endif 
SiS_GetLVDSCRT1Ptr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex,		   USHORT RefreshRateTableIndex, USHORT *ResIndex,		   USHORT *DisplayType) {  USHORT modeflag=0;  if(SiS_Pr->SiS_IF_DEF_LVDS == 1) {     if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) {        if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) return FALSE;     }  } else if(SiS_Pr->SiS_VBType & VB_SISVB) {     if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode))    return FALSE;  } else     return FALSE;  if(ModeNo <= 0x13) {     modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;     (*ResIndex) = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC;  } else {     modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;     (*ResIndex) = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC;  }  (*ResIndex) &= 0x3F;  if((SiS_Pr->SiS_IF_DEF_CH70xx) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) {     (*DisplayType) = 18;     if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) (*DisplayType)++;     if(SiS_Pr->SiS_TVMode & TVSetPAL) {      	(*DisplayType) += 2;	if(SiS_Pr->SiS_ModeType > ModeVGA) {	   if(SiS_Pr->SiS_CHSOverScan) (*DisplayType) = 99;	}	if(SiS_Pr->SiS_TVMode & TVSetPALM) {	   (*DisplayType) = 18;  /* PALM uses NTSC data */	   if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) (*DisplayType)++;	} else if(SiS_Pr->SiS_TVMode & TVSetPALN) {	   (*DisplayType) = 20;  /* PALN uses PAL data  */	   if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) (*DisplayType)++;	}     }  } else {     switch(SiS_Pr->SiS_LCDResInfo) {     case Panel_640x480:   (*DisplayType) = 50; break;     case Panel_640x480_2: (*DisplayType) = 52; break;     case Panel_640x480_3: (*DisplayType) = 54; break;     case Panel_800x600:   (*DisplayType) =  0; break;     case Panel_1024x600:  (*DisplayType) = 23; break;     case Panel_1024x768:  (*DisplayType) =  4; break;     case Panel_1152x768:  (*DisplayType) = 27; break;     case Panel_1280x768:  (*DisplayType) = 40; break;     case Panel_1280x1024: (*DisplayType) =  8; break;     case Panel_1400x1050: (*DisplayType) = 14; break;     case Panel_1600x1200: (*DisplayType) = 36; break;     default: return FALSE;     }     if(modeflag & HalfDCLK) (*DisplayType)++;     switch(SiS_Pr->SiS_LCDResInfo) {     case Panel_640x480:     case Panel_640x480_2:     case Panel_640x480_3:        break;     default:        if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) (*DisplayType) += 2;     }     if(SiS_Pr->SiS_LCDInfo & LCDPass11) {        (*DisplayType) = 12;	if(modeflag & HalfDCLK) (*DisplayType)++;     }  }#if 0  if(SiS_Pr->SiS_IF_DEF_FSTN) {     if(SiS_Pr->SiS_LCDResInfo == SiS_Pr->SiS_Panel320x480){        (*DisplayType) = 22;     }  }#endif  return TRUE;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c