• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/sis/

Lines Matching defs:tempbx

945    unsigned short tempax, tempbx, temp;
958 tempbx = 0;
963 tempbx |= temp;
966 tempbx |= tempax;
990 tempbx |= SetCRT2ToLCDA;
995 tempbx &= ~(SetCRT2ToYPbPr525750 | SetCRT2ToHiVision);
998 if(temp == 0x60) tempbx |= SetCRT2ToHiVision;
1000 tempbx |= SetCRT2ToYPbPr525750;
1008 tempbx |= SetCRT2ToLCDA;
1012 tempbx |= SetCRT2ToCHYPbPr;
1021 tempbx &= ~(SetCRT2ToRAMDAC);
1055 if(!(tempbx & temp)) {
1057 tempbx = 0;
1071 if(tempbx & SetCRT2ToLCDA) tempbx &= (clearmask | SetCRT2ToLCDA);
1072 if(tempbx & SetCRT2ToRAMDAC) tempbx &= (clearmask | SetCRT2ToRAMDAC);
1073 if(tempbx & SetCRT2ToLCD) tempbx &= (clearmask | SetCRT2ToLCD);
1074 if(tempbx & SetCRT2ToSCART) tempbx &= (clearmask | SetCRT2ToSCART);
1075 if(tempbx & SetCRT2ToHiVision) tempbx &= (clearmask | SetCRT2ToHiVision);
1076 if(tempbx & SetCRT2ToYPbPr525750) tempbx &= (clearmask | SetCRT2ToYPbPr525750);
1081 if(tempbx & SetCRT2ToLCDA) {
1082 tempbx &= (0xFF00|SwitchCRT2|SetSimuScanMode);
1086 if(tempbx & SetCRT2ToTV) {
1087 tempbx &= (0xFF00|SetCRT2ToTV|SwitchCRT2|SetSimuScanMode);
1090 if(tempbx & SetCRT2ToLCD) {
1091 tempbx &= (0xFF00|SetCRT2ToLCD|SwitchCRT2|SetSimuScanMode);
1094 if(tempbx & SetCRT2ToLCDA) {
1095 tempbx |= SetCRT2ToLCD;
1102 if(!(tempbx & (SwitchCRT2 | SetSimuScanMode))) {
1103 tempbx = SetSimuScanMode | DisableCRT2Display;
1107 if(!(tempbx & DriverMode)) tempbx |= SetSimuScanMode;
1112 ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) {
1117 if(!(tempbx & SetSimuScanMode)) {
1118 if(tempbx & SwitchCRT2) {
1121 tempbx |= SetSimuScanMode;
1126 if(!(tempbx & DriverMode)) {
1128 tempbx |= SetSimuScanMode;
1135 if(!(tempbx & DisableCRT2Display)) {
1136 if(tempbx & DriverMode) {
1137 if(tempbx & SetSimuScanMode) {
1140 tempbx |= SetInSlaveMode;
1145 tempbx |= SetInSlaveMode;
1151 SiS_Pr->SiS_VBInfo = tempbx;
2199 unsigned short modeflag, resinfo, tempbx;
2313 tempbx = 0;
2314 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1;
2316 tempbx += 2;
2318 if(SiS_Pr->SiS_CHSOverScan) tempbx = 8;
2321 tempbx = 4;
2322 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1;
2324 tempbx = 6;
2325 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1;
2328 switch(tempbx) {
2880 unsigned short tempbx=0, tempal=0, resinfo=0;
2893 tempbx = SiS_Pr->SiS_LCDResInfo;
2894 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32;
2910 tempbx = 100;
2920 tempbx = 200;
2921 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++;
2931 tempbx = 2;
2933 tempbx = 13;
2934 if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14;
2937 if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7;
2938 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6;
2939 else tempbx = 5;
2940 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5;
2942 if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3;
2943 else tempbx = 4;
2944 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5;
2985 *CRT2Index = tempbx;
2990 tempbx = 0;
2993 tempbx = 90;
2995 tempbx = 92;
2997 if(SiS_Pr->SiS_CHSOverScan) tempbx = 99;
2999 if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94;
3000 else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96;
3002 if(tempbx != 99) {
3003 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++;
3009 case Panel_640x480: tempbx = 12; break;
3010 case Panel_320x240_1: tempbx = 10; break;
3012 case Panel_320x240_3: tempbx = 14; break;
3013 case Panel_800x600: tempbx = 16; break;
3014 case Panel_1024x600: tempbx = 18; break;
3016 case Panel_1024x768: tempbx = 20; break;
3017 case Panel_1280x768: tempbx = 22; break;
3018 case Panel_1280x1024: tempbx = 24; break;
3019 case Panel_1400x1050: tempbx = 26; break;
3020 case Panel_1600x1200: tempbx = 28; break;
3022 case Panel_Barco1366: tempbx = 80; break;
3033 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++;
3036 if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30;
3040 tempbx = 82;
3041 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++;
3043 tempbx = 84;
3044 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++;
3050 (*CRT2Index) = tempbx;
3059 unsigned short tempax=0, tempbx=0, index, dotclock;
3071 tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6];
3084 tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6];
3088 tempbx |= tempcx;
3095 if(temp1 & 0x01) tempbx |= 0x0100;
3096 if(temp1 & 0x20) tempbx |= 0x0200;
3102 tempbx++;
3105 SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx;
3251 unsigned short tempax, tempbx, modeflag, romptr=0;
3528 tempbx = SiS_Pr->PanelYRes;
3534 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560;
3535 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640;
3538 if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527;
3539 else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620;
3540 else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775;
3541 else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775;
3542 else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560;
3543 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640;
3547 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700;
3548 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800;
3549 else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960;
3552 if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768;
3553 else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800;
3554 else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864;
3558 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875;
3559 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000;
3566 tempbx = SiS_Pr->SiS_VGAVDE;
3570 SiS_Pr->SiS_VDE = tempbx;
5068 unsigned short tempbx, tempcl, CRT1ModeNo, CRT2ModeNo, SelectRate_backup;
5128 SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl);
5129 data = SiS_GetFIFOThresholdB300(tempbx, tempcl);
5267 unsigned int tempax,tempbx;
5269 tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX;
5271 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx;
5431 unsigned short push2, tempax, tempbx, tempcx, temp;
5520 tempbx = SiS_Pr->SiS_HDE;
5523 tempbx = SiS_Pr->PanelXRes;
5528 tempbx >>= 1;
5532 tempax += tempbx;
5540 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2;
5604 tempbx = SiS_Pr->SiS_LCDVDES + tempax;
5605 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT;
5607 push2 = tempbx;
5624 tempbx += tempcx;
5625 if(issis) tempbx++;
5627 tempbx += tempcx;
5628 if(SiS_Pr->ChipType < SIS_315H) tempbx++;
5629 else if(issis) tempbx++;
5632 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT;
5634 temp = tempbx & 0x00FF;
5651 tempcx += tempbx;
5655 temp = ((tempbx >> 8) & 0x07) << 3;
5662 tempbx = 0x87;
5665 tempbx = 0x07;
5678 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp);
5680 tempbx = push2; /* BPLVDEE */
5687 tempbx = SiS_Pr->SiS_VGAVDE - 1;
5713 temp = ((tempbx >> 8) & 0x07) << 3;
5716 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx);
5796 tempbx = (unsigned short)(tempeax & 0xFFFF);
5799 tempbx = tempvcfact & 0x3f;
5800 if(tempbx == 0) tempbx = 64;
5801 tempeax /= tempbx;
5802 tempbx = (unsigned short)(tempeax & 0xFFFF);
5804 if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--;
5806 if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1;
5807 else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1;
5810 temp = ((tempbx >> 8) & 0x07) << 3;
5813 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx);
5989 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0;
6043 tempbx = pushbx + tempcx;
6045 tempcx += tempbx;
6073 tempbx = SiS_Pr->SiS_VGAHDE;
6074 tempcx -= tempbx;
6077 tempbx >>= 1;
6080 tempbx += 16;
6082 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */
6084 pushbx = tempbx;
6086 tempbx += tempcx;
6087 tempcx += tempbx;
6111 tempbx = SiS_Pr->CHSyncStart + bridgeadd;
6132 tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */
6135 tempcx |= (tempbx & 0xFF00);
6136 tempbx += bridgeadd;
6145 tempbx = 1040;
6151 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */
6155 temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0);
6180 tempbx = SiS_Pr->SiS_VGAVDE - 1;
6181 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */
6183 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07);
6187 tempbx++;
6188 tempax = tempbx;
6192 tempbx += tempcx;
6195 tempcx += tempbx;
6198 tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x11 */
6199 tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */
6204 tempbx = SiS_Pr->CVSyncStart;
6220 tempbx = cr8;
6221 if(cr7 & 0x04) tempbx |= 0x0100;
6222 if(cr7 & 0x80) tempbx |= 0x0200;
6223 if(cr13 & 0x08) tempbx |= 0x0400;
6226 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */
6228 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F);
6642 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp;
6803 tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8);
6804 tempbx += tempcx;
6805 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx);
6806 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0));
6808 tempbx += 8;
6810 tempbx -= 4;
6811 tempcx = tempbx;
6813 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0));
6836 tempbx = SiS_Pr->SiS_VDE;
6838 if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746;
6839 if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746;
6840 if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853;
6843 tempbx >>= 1;
6846 if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++;
6849 if(crt2crtc == 4) tempbx++;
6855 if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++;
6858 if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */
6862 tempbx -= 2;
6863 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx);
6866 temp |= ((tempbx >> 2) & 0xC0);
6874 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5));
6878 tempbx = SiS_Pr->SiS_VDE;
6881 tempbx >>= 1;
6883 tempbx -= 3;
6884 temp = ((tempbx >> 3) & 0x60) | 0x18;
6886 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx);
6889 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4));
6893 tempbx = 0;
6897 tempbx |= 0x20;
6908 tempbx &= ~0x20;
6918 if(!(tempbx & 0x20)) {
6924 tempbx |= ((tempax >> 8) & 0x1F);
6929 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx);
6934 if(tempbx & 0x20) tempcx = 0;
6938 tempbx = 0x0382;
6941 tempbx = 0x0369;
6944 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx);
6947 temp |= ((tempbx >> 8) & 0x03);
6986 tempbx = SiS_Pr->SiS_HDE;
6987 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1;
6988 tempbx--; /* RHACTE = HDE - 1 */
6989 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx);
6990 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0));
7005 tempbx = SiS_Pr->SiS_VDE - 1;
7006 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx);
7007 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07));
7061 tempbx = SiS_Pr->SiS_VDE - 1;
7064 tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2);
7068 tempbx = SiS_Pr->PanelYRes;
7082 tempbx -= tempax; /* lcdvdee */
7085 /* Non-expanding: lcdvdes = tempcx = VT-1; lcdvdee = tempbx = VDE-1 */
7089 xf86DrvMsg(0, X_INFO, "lcdvdes 0x%x lcdvdee 0x%x\n", tempcx, tempbx);
7094 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */
7096 temp = (tempbx >> 5) & 0x38;
7111 tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1;
7118 tempbx -= (tempax - 1);
7120 tempbx -= 10;
7121 if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1;
7126 tempbx++;
7129 tempbx = 770;
7138 tempbx = SiS_Pr->CVSyncStart;
7143 xf86DrvMsg(0, X_INFO, "lcdvrs 0x%x\n", tempbx);
7147 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */
7149 temp = (tempbx >> 4) & 0xF0;
7150 tempbx += (tempcx + 1);
7151 temp |= (tempbx & 0x0F);
7189 tempax = tempbx = SiS_Pr->SiS_HDE;
7193 tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2);
7198 tempbx >>= 1;
7204 xf86DrvMsg(0, X_INFO, "lcdhdee 0x%x\n", tempbx);
7208 tempbx += bridgeoffset;
7210 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */
7211 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f));
7215 tempbx += tempcx;
7216 push2 = tempbx;
7221 if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47;
7227 tempbx = SiS_Pr->CHSyncStart;
7228 if(modeflag & HalfDCLK) tempbx <<= 1;
7229 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1;
7230 tempbx += bridgeoffset;
7235 xf86DrvMsg(0, X_INFO, "lcdhrs 0x%x\n", tempbx);
7239 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */
7240 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0));
7242 tempbx = push2;
7248 tempbx += tempcx;
7251 tempbx = SiS_Pr->CHSyncEnd;
7252 if(modeflag & HalfDCLK) tempbx <<= 1;
7253 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1;
7254 tempbx += bridgeoffset;
7259 xf86DrvMsg(0, X_INFO, "lcdhre 0x%x\n", tempbx);
7263 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */
7463 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo;
7500 tempbx = SiS_Pr->SiS_RVBHCMAX;
7501 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx);
7503 temp = (tempbx >> 1) & 0x80;
7517 tempbx = SiS_Pr->SiS_VGAHDE;
7518 if(modeflag & HalfDCLK) tempbx >>= 1;
7519 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1;
7523 if(tempbx > 800) temp = 0x60;
7526 if(tempbx > 1024) temp = 0xC0;
7527 else if(tempbx >= 960) temp = 0xA0;
7530 if(tempbx >= 1280) temp = 0x40;
7531 else if(tempbx >= 1024) temp = 0x20;
7534 if(tempbx >= 1024) temp = 0xA0;
7583 tempbx = 0;
7584 if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08;
7592 tempbx = 0x08;
7612 temp = ((tempax >> 4) & 0x30) | tempbx;
7616 temp = 0x0036; tempbx = 0xD0;
7618 temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */
7630 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp);
7632 tempbx = SiS_Pr->SiS_HT >> 1;
7633 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1;
7634 tempbx -= 2;
7635 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx);
7636 temp = (tempbx >> 5) & 0x38;
8946 SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx)
8961 SiS_Pr->SiS_DDC_ReadAddr = tempbx;
8979 SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx)
8987 SiS_Pr->SiS_DDC_ReadAddr = tempbx;
8998 SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx)
9001 return SiS_GetCH700x(SiS_Pr, tempbx);
9003 return SiS_GetCH701x(SiS_Pr, tempbx);
10511 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp;
10674 tempbx = (tempbh << 8) | tempbl;
10678 tempbx = 770;
10680 if(tempbx > 770) tempbx = 770;
10685 tempbx -= tempax;
10690 temp = tempbx & 0xff;
10692 temp = ((tempbx & 0xff00) >> 4) | tempcl;
10752 unsigned short tempbx=0,romptr=0;
10764 tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f;
10765 if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07;
10766 tempbx -= 2;
10767 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4;
10769 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3;
10773 tempbx = SiS_Pr->SiS_LCDTypeInfo;
10776 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo];
10777 else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo];
10778 if(tempbx == 0xFF) return 0xFFFF;
10780 tempbx <<= 1;
10781 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++;
10790 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo];
10791 else tempbx = 0xff;
10793 tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo];
10795 if(tempbx == 0xFF) return 0xFFFF;
10796 tempbx <<= 2;
10797 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2;
10798 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++;
10799 return tempbx;
10801 tempbx = SiS_Pr->SiS_LCDTypeInfo << 2;
10802 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2;
10803 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++;
10807 return tempbx;