⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init301.c

📁 linux-2.6.15.6
💻 C
📖 第 1 页 / 共 5 页
字号:
  } else if(SiS_Pr->SiS_VBType & VB_SISVB) {     if(SiS_Pr->SiS_VBType & VB_SISLVDS) {	/* Always center screen on SiS LVDS (if scaling is disabled) */	SiS_Pr->SiS_LCDInfo &= ~LCDPass11;     } else {	/* By default, pass 1:1 on SiS TMDS (if scaling is supported) */	if(panelcanscale)             SiS_Pr->SiS_LCDInfo |= LCDPass11;	if(SiS_Pr->CenterScreen == 1) SiS_Pr->SiS_LCDInfo &= ~LCDPass11;     }  }  SiS_Pr->PanelVCLKIdx300 = VCLK65_300;  SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315;  switch(SiS_Pr->SiS_LCDResInfo) {     case Panel_320x240_1:     case Panel_320x240_2:     case Panel_320x240_3:  SiS_Pr->PanelXRes =  640; SiS_Pr->PanelYRes =  480;			    SiS_Pr->PanelVRS  =   24; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx300 = VCLK28;			    SiS_Pr->PanelVCLKIdx315 = VCLK28;			    break;     case Panel_640x480:    SiS_Pr->PanelXRes =  640; SiS_Pr->PanelYRes =  480;						      SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx300 = VCLK28;			    SiS_Pr->PanelVCLKIdx315 = VCLK28;			    break;     case Panel_800x600:    SiS_Pr->PanelXRes =  800; SiS_Pr->PanelYRes =  600;     			    SiS_Pr->PanelHT   = 1056; SiS_Pr->PanelVT   =  628;			    SiS_Pr->PanelHRS  =   40; SiS_Pr->PanelHRE  =  128;			    SiS_Pr->PanelVRS  =    1; SiS_Pr->PanelVRE  =    4;			    SiS_Pr->PanelVCLKIdx300 = VCLK40;			    SiS_Pr->PanelVCLKIdx315 = VCLK40;			    break;     case Panel_1024x600:   SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes =  600;			    SiS_Pr->PanelHT   = 1344; SiS_Pr->PanelVT   =  800;			    SiS_Pr->PanelHRS  =   24; SiS_Pr->PanelHRE  =  136;			    SiS_Pr->PanelVRS  =    2 /* 88 */ ; SiS_Pr->PanelVRE  =    6;			    SiS_Pr->PanelVCLKIdx300 = VCLK65_300;			    SiS_Pr->PanelVCLKIdx315 = VCLK65_315;			    break;     case Panel_1024x768:   SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes =  768;			    SiS_Pr->PanelHT   = 1344; SiS_Pr->PanelVT   =  806;			    SiS_Pr->PanelHRS  =   24; SiS_Pr->PanelHRE  =  136;			    SiS_Pr->PanelVRS  =    3; SiS_Pr->PanelVRE  =    6;			    if(SiS_Pr->ChipType < SIS_315H) {			       SiS_Pr->PanelHRS = 23;						      SiS_Pr->PanelVRE  =    5;			    }			    SiS_Pr->PanelVCLKIdx300 = VCLK65_300;			    SiS_Pr->PanelVCLKIdx315 = VCLK65_315;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1152x768:   SiS_Pr->PanelXRes = 1152; SiS_Pr->PanelYRes =  768;			    SiS_Pr->PanelHT   = 1344; SiS_Pr->PanelVT   =  806;			    SiS_Pr->PanelHRS  =   24; SiS_Pr->PanelHRE  =  136;			    SiS_Pr->PanelVRS  =    3; SiS_Pr->PanelVRE  =    6;			    if(SiS_Pr->ChipType < SIS_315H) {			       SiS_Pr->PanelHRS = 23;						      SiS_Pr->PanelVRE  =    5;			    }			    SiS_Pr->PanelVCLKIdx300 = VCLK65_300;			    SiS_Pr->PanelVCLKIdx315 = VCLK65_315;			    break;     case Panel_1152x864:   SiS_Pr->PanelXRes = 1152; SiS_Pr->PanelYRes =  864;			    break;     case Panel_1280x720:   SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  720;			    SiS_Pr->PanelHT   = 1650; SiS_Pr->PanelVT   =  750;			    SiS_Pr->PanelHRS  =  110; SiS_Pr->PanelHRE  =   40;			    SiS_Pr->PanelVRS  =    5; SiS_Pr->PanelVRE  =    5;			    SiS_Pr->PanelVCLKIdx315 = VCLK_1280x720;			    /* Data above for TMDS (projector); get from BIOS for LVDS */			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1280x768:   SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  768;			    if(SiS_Pr->SiS_IF_DEF_LVDS == 1) {			       SiS_Pr->PanelHT   = 1408; SiS_Pr->PanelVT   =  806;			       SiS_Pr->PanelVCLKIdx300 = VCLK81_300; /* ? */			       SiS_Pr->PanelVCLKIdx315 = VCLK81_315; /* ? */			    } else {			       SiS_Pr->PanelHT   = 1688; SiS_Pr->PanelVT   =  802;			       SiS_Pr->PanelHRS  =   48; SiS_Pr->PanelHRS  =  112;			       SiS_Pr->PanelVRS  =    3; SiS_Pr->PanelVRE  =    6;			       SiS_Pr->PanelVCLKIdx300 = VCLK81_300;			       SiS_Pr->PanelVCLKIdx315 = VCLK81_315;			    }			    break;     case Panel_1280x768_2: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  768;			    SiS_Pr->PanelHT   = 1660; SiS_Pr->PanelVT   =  806;			    SiS_Pr->PanelHRS  =   48; SiS_Pr->PanelHRE  =  112;			    SiS_Pr->PanelVRS  =    3; SiS_Pr->PanelVRE  =    6;			    SiS_Pr->PanelVCLKIdx315 = VCLK_1280x768_2;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1280x800:   SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  800;			    SiS_Pr->PanelHT   = 1408; SiS_Pr->PanelVT   =  816;			    SiS_Pr->PanelHRS   =  21; SiS_Pr->PanelHRE  =   24;			    SiS_Pr->PanelVRS   =   4; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx315 = VCLK_1280x800_315;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1280x800_2: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  800;			    SiS_Pr->PanelHT   = 1552; SiS_Pr->PanelVT   =  812;			    SiS_Pr->PanelHRS   =  48; SiS_Pr->PanelHRE  =  112;			    SiS_Pr->PanelVRS   =   4; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx315 = VCLK_1280x800_315_2;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1280x854:   SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  854;			    SiS_Pr->PanelHT   = 1664; SiS_Pr->PanelVT   =  861;			    SiS_Pr->PanelHRS   =  16; SiS_Pr->PanelHRE  =  112;			    SiS_Pr->PanelVRS   =   1; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx315 = VCLK_1280x854;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1280x960:   SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes =  960;			    SiS_Pr->PanelHT   = 1800; SiS_Pr->PanelVT   = 1000;			    SiS_Pr->PanelVCLKIdx300 = VCLK108_3_300;			    SiS_Pr->PanelVCLKIdx315 = VCLK108_3_315;			    if(resinfo == SIS_RI_1280x1024) {			       SiS_Pr->PanelVCLKIdx300 = VCLK100_300;			       SiS_Pr->PanelVCLKIdx315 = VCLK100_315;			    }			    break;     case Panel_1280x1024:  SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 1024;			    SiS_Pr->PanelHT   = 1688; SiS_Pr->PanelVT   = 1066;			    SiS_Pr->PanelHRS  =   48; SiS_Pr->PanelHRE  =  112;			    SiS_Pr->PanelVRS  =    1; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx300 = VCLK108_3_300;			    SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1400x1050:  SiS_Pr->PanelXRes = 1400; SiS_Pr->PanelYRes = 1050;			    SiS_Pr->PanelHT   = 1688; SiS_Pr->PanelVT   = 1066;			    SiS_Pr->PanelHRS  =   48; SiS_Pr->PanelHRE  =  112;			    SiS_Pr->PanelVRS  =    1; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1600x1200:  SiS_Pr->PanelXRes = 1600; SiS_Pr->PanelYRes = 1200;			    SiS_Pr->PanelHT   = 2160; SiS_Pr->PanelVT   = 1250;			    SiS_Pr->PanelHRS  =   64; SiS_Pr->PanelHRE  =  192;			    SiS_Pr->PanelVRS  =    1; SiS_Pr->PanelVRE  =    3;			    SiS_Pr->PanelVCLKIdx315 = VCLK162_315;			    if(SiS_Pr->SiS_VBType & VB_SISTMDSLCDA) {			       if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) {				  SiS_Pr->PanelHT  = 1760; SiS_Pr->PanelVT  = 1235;				  SiS_Pr->PanelHRS =   48; SiS_Pr->PanelHRE =   32;				  SiS_Pr->PanelVRS =    2; SiS_Pr->PanelVRE =    4;				  SiS_Pr->PanelVCLKIdx315 = VCLK130_315;				  SiS_Pr->Alternate1600x1200 = TRUE;			       }			    } else if(SiS_Pr->SiS_IF_DEF_LVDS) {			       SiS_Pr->PanelHT  = 2048; SiS_Pr->PanelVT  = 1320;			       SiS_Pr->PanelHRS = SiS_Pr->PanelHRE = 999;			       SiS_Pr->PanelVRS = SiS_Pr->PanelVRE = 999;			    }			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_1680x1050:  SiS_Pr->PanelXRes = 1680; SiS_Pr->PanelYRes = 1050;			    SiS_Pr->PanelHT   = 1900; SiS_Pr->PanelVT   = 1066;			    SiS_Pr->PanelHRS  =   26; SiS_Pr->PanelHRE  =   76;			    SiS_Pr->PanelVRS  =    3; SiS_Pr->PanelVRE  =    6;			    SiS_Pr->PanelVCLKIdx315 = VCLK121_315;			    SiS_GetLCDInfoBIOS(SiS_Pr);			    break;     case Panel_Barco1366:  SiS_Pr->PanelXRes = 1360; SiS_Pr->PanelYRes = 1024;			    SiS_Pr->PanelHT   = 1688; SiS_Pr->PanelVT   = 1066;			    break;     case Panel_848x480:    SiS_Pr->PanelXRes =  848; SiS_Pr->PanelYRes =  480;			    SiS_Pr->PanelHT   = 1088; SiS_Pr->PanelVT   =  525;			    break;     case Panel_856x480:    SiS_Pr->PanelXRes =  856; SiS_Pr->PanelYRes =  480;			    SiS_Pr->PanelHT   = 1088; SiS_Pr->PanelVT   =  525;			    break;     case Panel_Custom:     SiS_Pr->PanelXRes = SiS_Pr->CP_MaxX;			    SiS_Pr->PanelYRes = SiS_Pr->CP_MaxY;			    SiS_Pr->PanelHT   = SiS_Pr->CHTotal;			    SiS_Pr->PanelVT   = SiS_Pr->CVTotal;			    if(SiS_Pr->CP_PreferredIndex != -1) {			       SiS_Pr->PanelXRes = SiS_Pr->CP_HDisplay[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelYRes = SiS_Pr->CP_VDisplay[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelHT   = SiS_Pr->CP_HTotal[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelVT   = SiS_Pr->CP_VTotal[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelHRS  = SiS_Pr->CP_HSyncStart[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelHRE  = SiS_Pr->CP_HSyncEnd[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelVRS  = SiS_Pr->CP_VSyncStart[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelVRE  = SiS_Pr->CP_VSyncEnd[SiS_Pr->CP_PreferredIndex];			       SiS_Pr->PanelHRS -= SiS_Pr->PanelXRes;			       SiS_Pr->PanelHRE -= SiS_Pr->PanelHRS;			       SiS_Pr->PanelVRS -= SiS_Pr->PanelYRes;			       SiS_Pr->PanelVRE -= SiS_Pr->PanelVRS;			       if(SiS_Pr->CP_PrefClock) {				  int idx;				  SiS_Pr->PanelVCLKIdx315 = VCLK_CUSTOM_315;				  SiS_Pr->PanelVCLKIdx300 = VCLK_CUSTOM_300;				  if(SiS_Pr->ChipType < SIS_315H) idx = VCLK_CUSTOM_300;				  else				   idx = VCLK_CUSTOM_315;				  SiS_Pr->SiS_VCLKData[idx].CLOCK =				     SiS_Pr->SiS_VBVCLKData[idx].CLOCK = SiS_Pr->CP_PrefClock;				  SiS_Pr->SiS_VCLKData[idx].SR2B =				     SiS_Pr->SiS_VBVCLKData[idx].Part4_A = SiS_Pr->CP_PrefSR2B;				  SiS_Pr->SiS_VCLKData[idx].SR2C =				     SiS_Pr->SiS_VBVCLKData[idx].Part4_B = SiS_Pr->CP_PrefSR2C;			       }			    }			    break;     default:		    SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes =  768;			    SiS_Pr->PanelHT   = 1344; SiS_Pr->PanelVT   =  806;			    break;  }  /* Special cases */  if( (SiS_Pr->SiS_IF_DEF_FSTN)              ||      (SiS_Pr->SiS_IF_DEF_DSTN)              ||      (SiS_Pr->SiS_CustomT == CUT_BARCO1366) ||      (SiS_Pr->SiS_CustomT == CUT_BARCO1024) ||      (SiS_Pr->SiS_CustomT == CUT_PANEL848)  ||      (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) {     SiS_Pr->PanelHRS = 999;     SiS_Pr->PanelHRE = 999;  }  if( (SiS_Pr->SiS_CustomT == CUT_BARCO1366) ||      (SiS_Pr->SiS_CustomT == CUT_BARCO1024) ||      (SiS_Pr->SiS_CustomT == CUT_PANEL848)  ||      (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) {     SiS_Pr->PanelVRS = 999;     SiS_Pr->PanelVRE = 999;  }  /* DontExpand overrule */  if((SiS_Pr->SiS_VBType & VB_SISVB) && (!(SiS_Pr->SiS_VBType & VB_NoLCD))) {     if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && (modeflag & NoSupportLCDScale)) {	/* No scaling for this mode on any panel (LCD=CRT2)*/	SiS_Pr->SiS_LCDInfo |= DontExpandLCD;     }     switch(SiS_Pr->SiS_LCDResInfo) {     case Panel_Custom:     case Panel_1152x864:     case Panel_1280x768:	/* TMDS only */	SiS_Pr->SiS_LCDInfo |= DontExpandLCD;	break;     case Panel_800x600: {	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, 0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1024x768: {	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1280x720: {	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	if(SiS_Pr->PanelHT == 1650) {	   SiS_Pr->SiS_LCDInfo |= DontExpandLCD;	}	break;     }     case Panel_1280x768_2: {  /* LVDS only */	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	switch(resinfo) {	case SIS_RI_1280x720:  if(SiS_Pr->UsePanelScaler == -1) {				  SiS_Pr->SiS_LCDInfo |= DontExpandLCD;			       }			       break;	}	break;     }     case Panel_1280x800: {  	/* SiS TMDS special (Averatec 6200 series) */	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,SIS_RI_1280x720,SIS_RI_1280x768,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1280x800_2:  { 	/* SiS LVDS */	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	switch(resinfo) {	case SIS_RI_1280x720:	case SIS_RI_1280x768:  if(SiS_Pr->UsePanelScaler == -1) {				  SiS_Pr->SiS_LCDInfo |= DontExpandLCD;			       }			       break;	}	break;     }     case Panel_1280x854: {  	/* SiS LVDS */	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	switch(resinfo) {	case SIS_RI_1280x720:	case SIS_RI_1280x768:	case SIS_RI_1280x800:  if(SiS_Pr->UsePanelScaler == -1) {				  SiS_Pr->SiS_LCDInfo |= DontExpandLCD;			       }			       break;	}	break;     }     case Panel_1280x960: {	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,SIS_RI_1152x864,SIS_RI_1280x720,SIS_RI_1280x768,SIS_RI_1280x800,	   SIS_RI_1280x854,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1280x1024: {	static const unsigned char nonscalingmodes[] = {	   SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	   SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	   SIS_RI_1152x768,SIS_RI_1152x864,SIS_RI_1280x720,SIS_RI_1280x768,SIS_RI_1280x800,	   SIS_RI_1280x854,SIS_RI_1280x960,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1400x1050: {	static const unsigned char nonscalingmodes[] = {	     SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	     SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	     SIS_RI_1152x768,SIS_RI_1152x864,SIS_RI_1280x768,SIS_RI_1280x800,SIS_RI_1280x854,	     SIS_RI_1280x960,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	switch(resinfo) {	case SIS_RI_1280x720:  if(SiS_Pr->UsePanelScaler == -1) {				  SiS_Pr->SiS_LCDInfo |= DontExpandLCD;			       }			       break;	case SIS_RI_1280x1024: SiS_Pr->SiS_LCDInfo |= DontExpandLCD;			       break;	}	break;     }     case Panel_1600x1200: {	static const unsigned char nonscalingmodes[] = {	     SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	     SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	     SIS_RI_1152x768,SIS_RI_1152x864,SIS_RI_1280x720,SIS_RI_1280x768,SIS_RI_1280x800,	     SIS_RI_1280x854,SIS_RI_1280x960,SIS_RI_1360x768,SIS_RI_1360x1024,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     case Panel_1680x1050: {	static const unsigned char nonscalingmodes[] = {	     SIS_RI_720x480, SIS_RI_720x576, SIS_RI_768x576, SIS_RI_800x480, SIS_RI_848x480,	     SIS_RI_856x480, SIS_RI_960x540, SIS_RI_960x600, SIS_RI_1024x576,SIS_RI_1024x600,	     SIS_RI_1152x768,SIS_RI_1152x864,SIS_RI_1280x854,SIS_RI_1280x960,SIS_RI_1360x768,	     SIS_RI_1360x1024,0xff	};	SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes);	break;     }     }  }#ifdef SIS300  if(SiS_Pr->SiS_IF_DEF_LVDS == 1) {     if(SiS_Pr->SiS_CustomT == CUT_PANEL848 || SiS_Pr->SiS_CustomT == CUT_PANEL856) {	SiS_Pr->SiS_LCDInfo = 0x80 | 0x40 | 0x20;   /* neg h/v sync, RGB24(D0 = 0) */     }  }  if(SiS_Pr->ChipType < SIS_315H) {     if(SiS_Pr->SiS_IF_DEF_LVDS == 1) {	if(SiS_Pr->SiS_UseROM) {	   if((ROMAddr[0x233] == 0x12) && (ROMAddr[0x234] == 0x34)) {	      if(!(ROMAddr[0x235] & 0x02)) {		 SiS_Pr->SiS_LCDInfo &= (~DontExpandLCD);	      }	   }	}     } else if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) {	if((SiS_Pr->SiS_SetFlag & SetDOSMode) && ((ModeNo == 0x03) || (ModeNo == 0x10))) {	   SiS_Pr->SiS_LCDInfo &= (~DontExpandLCD);	}     }  }#endif  /* Special cases */  if(modexres == SiS_Pr->PanelXRes && modeyres == SiS_Pr->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -