USHORT modeflag; USHORT PanelIndex,ResIndex; const  SiS_LVDSDesStruct *PanelDesPtr = NULL; 
unsigned short modeflag, ResIndex; const struct SiS_LVDSDes *PanelDesPtr = NULL; 
SiS_GetLVDSDesData(SiS_Private *SiS_Pr, USHORT ModeNo,USHORT ModeIdIndex,                   USHORT RefreshRateTableIndex, PSIS_HW_INFO HwInfo){  USHORT modeflag;  USHORT PanelIndex,ResIndex;  const  SiS_LVDSDesStruct *PanelDesPtr = NULL;  SiS_Pr->SiS_LCDHDES = 0;  SiS_Pr->SiS_LCDVDES = 0;  if( (SiS_Pr->UseCustomMode) 		         ||      (SiS_Pr->SiS_LCDResInfo == Panel_Custom)   ||      (SiS_Pr->SiS_CustomT == CUT_PANEL848)      ||      ((SiS_Pr->SiS_VBType & VB_SISVB) &&       (SiS_Pr->SiS_LCDInfo & DontExpandLCD) &&       (SiS_Pr->SiS_LCDInfo & LCDPass11)) ) {     return;  }  if((SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) {#ifdef SIS315H     if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) {        /* non-pass 1:1 only, see above */        if(SiS_Pr->SiS_VGAHDE != SiS_Pr->PanelXRes) {           SiS_Pr->SiS_LCDHDES = SiS_Pr->SiS_HT - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE) / 2);	}	if(SiS_Pr->SiS_VGAVDE != SiS_Pr->PanelYRes) {	   SiS_Pr->SiS_LCDVDES = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VGAVDE) / 2);	}     }     if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) {        switch(SiS_Pr->SiS_CustomT) {        case CUT_UNIWILL1024:        case CUT_UNIWILL10242:        case CUT_CLEVO1400:	   if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) {	      SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1;	   }	   break;	}	if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) {	   if(SiS_Pr->SiS_CustomT != CUT_COMPAQ1280) {	      SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1;	   }	}     }#endif  } else {     SiS_GetLVDSDesPtr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex,                       &PanelIndex, &ResIndex, HwInfo);     switch(PanelIndex) {     	case  0: PanelDesPtr = SiS_Pr->SiS_PanelType00_1;    break;   /* ---  */     	case  1: PanelDesPtr = SiS_Pr->SiS_PanelType01_1;    break;     	case  2: PanelDesPtr = SiS_Pr->SiS_PanelType02_1;    break;     	case  3: PanelDesPtr = SiS_Pr->SiS_PanelType03_1;    break;     	case  4: PanelDesPtr = SiS_Pr->SiS_PanelType04_1;    break;     	case  5: PanelDesPtr = SiS_Pr->SiS_PanelType05_1;    break;     	case  6: PanelDesPtr = SiS_Pr->SiS_PanelType06_1;    break;     	case  7: PanelDesPtr = SiS_Pr->SiS_PanelType07_1;    break;     	case  8: PanelDesPtr = SiS_Pr->SiS_PanelType08_1;    break;     	case  9: PanelDesPtr = SiS_Pr->SiS_PanelType09_1;    break;     	case 10: PanelDesPtr = SiS_Pr->SiS_PanelType0a_1;    break;     	case 11: PanelDesPtr = SiS_Pr->SiS_PanelType0b_1;    break;     	case 12: PanelDesPtr = SiS_Pr->SiS_PanelType0c_1;    break;     	case 13: PanelDesPtr = SiS_Pr->SiS_PanelType0d_1;    break;     	case 14: PanelDesPtr = SiS_Pr->SiS_PanelType0e_1;    break;     	case 15: PanelDesPtr = SiS_Pr->SiS_PanelType0f_1;    break;     	case 16: PanelDesPtr = SiS_Pr->SiS_PanelType00_2;    break;    /* --- */     	case 17: PanelDesPtr = SiS_Pr->SiS_PanelType01_2;    break;     	case 18: PanelDesPtr = SiS_Pr->SiS_PanelType02_2;    break;     	case 19: PanelDesPtr = SiS_Pr->SiS_PanelType03_2;    break;     	case 20: PanelDesPtr = SiS_Pr->SiS_PanelType04_2;    break;     	case 21: PanelDesPtr = SiS_Pr->SiS_PanelType05_2;    break;     	case 22: PanelDesPtr = SiS_Pr->SiS_PanelType06_2;    break;     	case 23: PanelDesPtr = SiS_Pr->SiS_PanelType07_2;    break;     	case 24: PanelDesPtr = SiS_Pr->SiS_PanelType08_2;    break;     	case 25: PanelDesPtr = SiS_Pr->SiS_PanelType09_2;    break;     	case 26: PanelDesPtr = SiS_Pr->SiS_PanelType0a_2;    break;     	case 27: PanelDesPtr = SiS_Pr->SiS_PanelType0b_2;    break;     	case 28: PanelDesPtr = SiS_Pr->SiS_PanelType0c_2;    break;     	case 29: PanelDesPtr = SiS_Pr->SiS_PanelType0d_2;    break;     	case 30: PanelDesPtr = SiS_Pr->SiS_PanelType0e_2;    break;     	case 31: PanelDesPtr = SiS_Pr->SiS_PanelType0f_2;    break;	case 32: PanelDesPtr = SiS_Pr->SiS_PanelTypeNS_1;    break;    /* pass 1:1 */	case 33: PanelDesPtr = SiS_Pr->SiS_PanelTypeNS_2;    break;     	case 50: PanelDesPtr = SiS_Pr->SiS_CHTVUNTSCDesData; break;    /* TV */     	case 51: PanelDesPtr = SiS_Pr->SiS_CHTVONTSCDesData; break;     	case 52: PanelDesPtr = SiS_Pr->SiS_CHTVUPALDesData;  break;     	case 53: PanelDesPtr = SiS_Pr->SiS_CHTVOPALDesData;  break;	default: return;     }     SiS_Pr->SiS_LCDHDES = (PanelDesPtr+ResIndex)->LCDHDES;     SiS_Pr->SiS_LCDVDES = (PanelDesPtr+ResIndex)->LCDVDES;     if((ModeNo <= 0x13) && (SiS_Pr->SiS_LCDInfo & DontExpandLCD)) {        modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;        if((SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) {	   if(!(modeflag & HalfDCLK)) SiS_Pr->SiS_LCDHDES = 632;        } else if(!(SiS_Pr->SiS_SetFlag & SetDOSMode)) {           if(SiS_Pr->SiS_LCDResInfo != Panel_1280x1024) {              if(SiS_Pr->SiS_LCDResInfo >= Panel_1024x768) {	         if(HwInfo->jChipType < SIS_315H) {	            if(!(modeflag & HalfDCLK)) SiS_Pr->SiS_LCDHDES = 320;	         } else {	            if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768)  SiS_Pr->SiS_LCDHDES = 480;                    if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) SiS_Pr->SiS_LCDHDES = 804;		    if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) SiS_Pr->SiS_LCDHDES = 704;                    if(!(modeflag & HalfDCLK)) {                       SiS_Pr->SiS_LCDHDES = 320;	               if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) SiS_Pr->SiS_LCDHDES = 632;		       if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) SiS_Pr->SiS_LCDHDES = 542;                    }                 }              }           }        }     }  }}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init301.c/clean/drivers/video/sis/init301.c