tempbx 3389 drivers/video/fbdev/sis/init.c unsigned short modeflag, tempax, tempbx = 0, remaining = 0; tempbx 3408 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->SiS_VGAHT; tempbx 3410 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelHT; tempbx 3412 drivers/video/fbdev/sis/init.c if(modeflag & HalfDCLK) tempbx >>= 1; tempbx 3413 drivers/video/fbdev/sis/init.c remaining = tempbx % 8; tempbx 3418 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelHT - SiS_Pr->PanelXRes; tempbx 3423 drivers/video/fbdev/sis/init.c tempbx += tempax; tempbx 3424 drivers/video/fbdev/sis/init.c if(modeflag & HalfDCLK) tempbx -= VGAHDE; tempbx 3427 drivers/video/fbdev/sis/init.c SiS_Pr->CHTotal = SiS_Pr->CHBlankEnd = tempbx; tempbx 3440 drivers/video/fbdev/sis/init.c tempbx = (SiS_Pr->PanelHRS + 1) & ~1; tempbx 3443 drivers/video/fbdev/sis/init.c tempbx >>= 1; tempbx 3445 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart = (VGAHDE + tempax + tempbx + 7) & ~7; tempbx 3465 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelXRes; tempbx 3466 drivers/video/fbdev/sis/init.c if(modeflag & HalfDCLK) tempbx >>= 1; tempbx 3467 drivers/video/fbdev/sis/init.c tempax += ((tempbx - tempax) >> 1); tempbx 3476 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelVT - SiS_Pr->PanelYRes; tempbx 3484 drivers/video/fbdev/sis/init.c if((tempax + tempbx) == 438) tempbx += 16; tempbx 3488 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->SiS_VGAVT; tempbx 3492 drivers/video/fbdev/sis/init.c SiS_Pr->CVTotal = SiS_Pr->CVBlankEnd = tempbx + tempax; tempbx 1261 drivers/video/fbdev/sis/init301.c unsigned short tempax, tempbx, temp; tempbx 1274 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 1279 drivers/video/fbdev/sis/init301.c tempbx |= temp; tempbx 1282 drivers/video/fbdev/sis/init301.c tempbx |= tempax; tempbx 1306 drivers/video/fbdev/sis/init301.c tempbx |= SetCRT2ToLCDA; tempbx 1311 drivers/video/fbdev/sis/init301.c tempbx &= ~(SetCRT2ToYPbPr525750 | SetCRT2ToHiVision); tempbx 1314 drivers/video/fbdev/sis/init301.c if(temp == 0x60) tempbx |= SetCRT2ToHiVision; tempbx 1316 drivers/video/fbdev/sis/init301.c tempbx |= SetCRT2ToYPbPr525750; tempbx 1324 drivers/video/fbdev/sis/init301.c tempbx |= SetCRT2ToLCDA; tempbx 1328 drivers/video/fbdev/sis/init301.c tempbx |= SetCRT2ToCHYPbPr; tempbx 1337 drivers/video/fbdev/sis/init301.c tempbx &= ~(SetCRT2ToRAMDAC); tempbx 1371 drivers/video/fbdev/sis/init301.c if(!(tempbx & temp)) { tempbx 1373 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 1387 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToLCDA) tempbx &= (clearmask | SetCRT2ToLCDA); tempbx 1388 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToRAMDAC) tempbx &= (clearmask | SetCRT2ToRAMDAC); tempbx 1389 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToLCD) tempbx &= (clearmask | SetCRT2ToLCD); tempbx 1390 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToSCART) tempbx &= (clearmask | SetCRT2ToSCART); tempbx 1391 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToHiVision) tempbx &= (clearmask | SetCRT2ToHiVision); tempbx 1392 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToYPbPr525750) tempbx &= (clearmask | SetCRT2ToYPbPr525750); tempbx 1397 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToLCDA) { tempbx 1398 drivers/video/fbdev/sis/init301.c tempbx &= (0xFF00|SwitchCRT2|SetSimuScanMode); tempbx 1402 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToTV) { tempbx 1403 drivers/video/fbdev/sis/init301.c tempbx &= (0xFF00|SetCRT2ToTV|SwitchCRT2|SetSimuScanMode); tempbx 1406 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToLCD) { tempbx 1407 drivers/video/fbdev/sis/init301.c tempbx &= (0xFF00|SetCRT2ToLCD|SwitchCRT2|SetSimuScanMode); tempbx 1410 drivers/video/fbdev/sis/init301.c if(tempbx & SetCRT2ToLCDA) { tempbx 1411 drivers/video/fbdev/sis/init301.c tempbx |= SetCRT2ToLCD; tempbx 1418 drivers/video/fbdev/sis/init301.c if(!(tempbx & (SwitchCRT2 | SetSimuScanMode))) { tempbx 1419 drivers/video/fbdev/sis/init301.c tempbx = SetSimuScanMode | DisableCRT2Display; tempbx 1423 drivers/video/fbdev/sis/init301.c if(!(tempbx & DriverMode)) tempbx |= SetSimuScanMode; tempbx 1428 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) { tempbx 1433 drivers/video/fbdev/sis/init301.c if(!(tempbx & SetSimuScanMode)) { tempbx 1434 drivers/video/fbdev/sis/init301.c if(tempbx & SwitchCRT2) { tempbx 1437 drivers/video/fbdev/sis/init301.c tempbx |= SetSimuScanMode; tempbx 1442 drivers/video/fbdev/sis/init301.c if(!(tempbx & DriverMode)) { tempbx 1444 drivers/video/fbdev/sis/init301.c tempbx |= SetSimuScanMode; tempbx 1451 drivers/video/fbdev/sis/init301.c if(!(tempbx & DisableCRT2Display)) { tempbx 1452 drivers/video/fbdev/sis/init301.c if(tempbx & DriverMode) { tempbx 1453 drivers/video/fbdev/sis/init301.c if(tempbx & SetSimuScanMode) { tempbx 1456 drivers/video/fbdev/sis/init301.c tempbx |= SetInSlaveMode; tempbx 1461 drivers/video/fbdev/sis/init301.c tempbx |= SetInSlaveMode; tempbx 1467 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo = tempbx; tempbx 2478 drivers/video/fbdev/sis/init301.c unsigned short resinfo, tempbx; tempbx 2590 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 2591 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; tempbx 2593 drivers/video/fbdev/sis/init301.c tempbx += 2; tempbx 2595 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) tempbx = 8; tempbx 2598 drivers/video/fbdev/sis/init301.c tempbx = 4; tempbx 2599 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; tempbx 2601 drivers/video/fbdev/sis/init301.c tempbx = 6; tempbx 2602 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; tempbx 2605 drivers/video/fbdev/sis/init301.c switch(tempbx) { tempbx 3157 drivers/video/fbdev/sis/init301.c unsigned short tempbx=0, tempal=0, resinfo=0; tempbx 3170 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDResInfo; tempbx 3171 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32; tempbx 3187 drivers/video/fbdev/sis/init301.c tempbx = 100; tempbx 3197 drivers/video/fbdev/sis/init301.c tempbx = 200; tempbx 3198 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; tempbx 3208 drivers/video/fbdev/sis/init301.c tempbx = 2; tempbx 3210 drivers/video/fbdev/sis/init301.c tempbx = 13; tempbx 3211 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14; tempbx 3214 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7; tempbx 3215 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6; tempbx 3216 drivers/video/fbdev/sis/init301.c else tempbx = 5; tempbx 3217 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; tempbx 3219 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3; tempbx 3220 drivers/video/fbdev/sis/init301.c else tempbx = 4; tempbx 3221 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; tempbx 3262 drivers/video/fbdev/sis/init301.c *CRT2Index = tempbx; tempbx 3267 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 3270 drivers/video/fbdev/sis/init301.c tempbx = 90; tempbx 3272 drivers/video/fbdev/sis/init301.c tempbx = 92; tempbx 3274 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) tempbx = 99; tempbx 3276 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94; tempbx 3277 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96; tempbx 3279 drivers/video/fbdev/sis/init301.c if(tempbx != 99) { tempbx 3280 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++; tempbx 3286 drivers/video/fbdev/sis/init301.c case Panel_640x480: tempbx = 12; break; tempbx 3287 drivers/video/fbdev/sis/init301.c case Panel_320x240_1: tempbx = 10; break; tempbx 3289 drivers/video/fbdev/sis/init301.c case Panel_320x240_3: tempbx = 14; break; tempbx 3290 drivers/video/fbdev/sis/init301.c case Panel_800x600: tempbx = 16; break; tempbx 3291 drivers/video/fbdev/sis/init301.c case Panel_1024x600: tempbx = 18; break; tempbx 3293 drivers/video/fbdev/sis/init301.c case Panel_1024x768: tempbx = 20; break; tempbx 3294 drivers/video/fbdev/sis/init301.c case Panel_1280x768: tempbx = 22; break; tempbx 3295 drivers/video/fbdev/sis/init301.c case Panel_1280x1024: tempbx = 24; break; tempbx 3296 drivers/video/fbdev/sis/init301.c case Panel_1400x1050: tempbx = 26; break; tempbx 3297 drivers/video/fbdev/sis/init301.c case Panel_1600x1200: tempbx = 28; break; tempbx 3299 drivers/video/fbdev/sis/init301.c case Panel_Barco1366: tempbx = 80; break; tempbx 3310 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; tempbx 3313 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30; tempbx 3317 drivers/video/fbdev/sis/init301.c tempbx = 82; tempbx 3318 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; tempbx 3320 drivers/video/fbdev/sis/init301.c tempbx = 84; tempbx 3321 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; tempbx 3327 drivers/video/fbdev/sis/init301.c (*CRT2Index) = tempbx; tempbx 3336 drivers/video/fbdev/sis/init301.c unsigned short tempax=0, tempbx=0, index, dotclock; tempbx 3348 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6]; tempbx 3361 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6]; tempbx 3365 drivers/video/fbdev/sis/init301.c tempbx |= tempcx; tempbx 3372 drivers/video/fbdev/sis/init301.c if(temp1 & 0x01) tempbx |= 0x0100; tempbx 3373 drivers/video/fbdev/sis/init301.c if(temp1 & 0x20) tempbx |= 0x0200; tempbx 3379 drivers/video/fbdev/sis/init301.c tempbx++; tempbx 3382 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx; tempbx 3528 drivers/video/fbdev/sis/init301.c unsigned short tempax, tempbx, modeflag, romptr=0; tempbx 3799 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelYRes; tempbx 3805 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; tempbx 3806 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; tempbx 3809 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527; tempbx 3810 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620; tempbx 3811 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775; tempbx 3812 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775; tempbx 3813 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; tempbx 3814 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; tempbx 3818 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700; tempbx 3819 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800; tempbx 3820 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960; tempbx 3823 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768; tempbx 3824 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800; tempbx 3825 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864; tempbx 3829 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875; tempbx 3830 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000; tempbx 3837 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE; tempbx 3841 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = tempbx; tempbx 5338 drivers/video/fbdev/sis/init301.c unsigned short tempbx, tempcl, CRT1ModeNo, CRT2ModeNo, SelectRate_backup; tempbx 5398 drivers/video/fbdev/sis/init301.c SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl); tempbx 5399 drivers/video/fbdev/sis/init301.c data = SiS_GetFIFOThresholdB300(tempbx, tempcl); tempbx 5532 drivers/video/fbdev/sis/init301.c unsigned int tempax,tempbx; tempbx 5534 drivers/video/fbdev/sis/init301.c tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX; tempbx 5536 drivers/video/fbdev/sis/init301.c tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; tempbx 5675 drivers/video/fbdev/sis/init301.c unsigned short push2, tempax, tempbx, tempcx, temp; tempbx 5764 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HDE; tempbx 5767 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelXRes; tempbx 5772 drivers/video/fbdev/sis/init301.c tempbx >>= 1; tempbx 5776 drivers/video/fbdev/sis/init301.c tempax += tempbx; tempbx 5784 drivers/video/fbdev/sis/init301.c tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; tempbx 5848 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDVDES + tempax; tempbx 5849 drivers/video/fbdev/sis/init301.c if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; tempbx 5851 drivers/video/fbdev/sis/init301.c push2 = tempbx; tempbx 5868 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 5869 drivers/video/fbdev/sis/init301.c if(issis) tempbx++; tempbx 5871 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 5872 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) tempbx++; tempbx 5873 drivers/video/fbdev/sis/init301.c else if(issis) tempbx++; tempbx 5876 drivers/video/fbdev/sis/init301.c if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; tempbx 5878 drivers/video/fbdev/sis/init301.c temp = tempbx & 0x00FF; tempbx 5895 drivers/video/fbdev/sis/init301.c tempcx += tempbx; tempbx 5899 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 8) & 0x07) << 3; tempbx 5906 drivers/video/fbdev/sis/init301.c tempbx = 0x87; tempbx 5909 drivers/video/fbdev/sis/init301.c tempbx = 0x07; tempbx 5922 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); tempbx 5924 drivers/video/fbdev/sis/init301.c tempbx = push2; /* BPLVDEE */ tempbx 5931 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE - 1; tempbx 5957 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 8) & 0x07) << 3; tempbx 5960 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx); tempbx 6040 drivers/video/fbdev/sis/init301.c tempbx = (unsigned short)(tempeax & 0xFFFF); tempbx 6043 drivers/video/fbdev/sis/init301.c tempbx = tempvcfact & 0x3f; tempbx 6044 drivers/video/fbdev/sis/init301.c if(tempbx == 0) tempbx = 64; tempbx 6045 drivers/video/fbdev/sis/init301.c tempeax /= tempbx; tempbx 6046 drivers/video/fbdev/sis/init301.c tempbx = (unsigned short)(tempeax & 0xFFFF); tempbx 6048 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--; tempbx 6050 drivers/video/fbdev/sis/init301.c if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1; tempbx 6051 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1; tempbx 6054 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 8) & 0x07) << 3; tempbx 6057 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx); tempbx 6233 drivers/video/fbdev/sis/init301.c unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; tempbx 6287 drivers/video/fbdev/sis/init301.c tempbx = pushbx + tempcx; tempbx 6289 drivers/video/fbdev/sis/init301.c tempcx += tempbx; tempbx 6317 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAHDE; tempbx 6318 drivers/video/fbdev/sis/init301.c tempcx -= tempbx; tempbx 6321 drivers/video/fbdev/sis/init301.c tempbx >>= 1; tempbx 6324 drivers/video/fbdev/sis/init301.c tempbx += 16; tempbx 6326 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */ tempbx 6328 drivers/video/fbdev/sis/init301.c pushbx = tempbx; tempbx 6330 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 6331 drivers/video/fbdev/sis/init301.c tempcx += tempbx; tempbx 6355 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncStart + bridgeadd; tempbx 6376 drivers/video/fbdev/sis/init301.c tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */ tempbx 6379 drivers/video/fbdev/sis/init301.c tempcx |= (tempbx & 0xFF00); tempbx 6380 drivers/video/fbdev/sis/init301.c tempbx += bridgeadd; tempbx 6389 drivers/video/fbdev/sis/init301.c tempbx = 1040; tempbx 6395 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */ tempbx 6399 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0); tempbx 6424 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE - 1; tempbx 6425 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */ tempbx 6427 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); tempbx 6431 drivers/video/fbdev/sis/init301.c tempbx++; tempbx 6432 drivers/video/fbdev/sis/init301.c tempax = tempbx; tempbx 6436 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 6439 drivers/video/fbdev/sis/init301.c tempcx += tempbx; tempbx 6442 drivers/video/fbdev/sis/init301.c tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x11 */ tempbx 6443 drivers/video/fbdev/sis/init301.c tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */ tempbx 6448 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CVSyncStart; tempbx 6464 drivers/video/fbdev/sis/init301.c tempbx = cr8; tempbx 6465 drivers/video/fbdev/sis/init301.c if(cr7 & 0x04) tempbx |= 0x0100; tempbx 6466 drivers/video/fbdev/sis/init301.c if(cr7 & 0x80) tempbx |= 0x0200; tempbx 6467 drivers/video/fbdev/sis/init301.c if(cr13 & 0x08) tempbx |= 0x0400; tempbx 6470 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */ tempbx 6472 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); tempbx 6908 drivers/video/fbdev/sis/init301.c unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; tempbx 7069 drivers/video/fbdev/sis/init301.c tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8); tempbx 7070 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 7071 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx); tempbx 7072 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0)); tempbx 7074 drivers/video/fbdev/sis/init301.c tempbx += 8; tempbx 7076 drivers/video/fbdev/sis/init301.c tempbx -= 4; tempbx 7077 drivers/video/fbdev/sis/init301.c tempcx = tempbx; tempbx 7079 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0)); tempbx 7102 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE; tempbx 7104 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746; tempbx 7105 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746; tempbx 7106 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853; tempbx 7109 drivers/video/fbdev/sis/init301.c tempbx >>= 1; tempbx 7112 drivers/video/fbdev/sis/init301.c if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++; tempbx 7115 drivers/video/fbdev/sis/init301.c if(crt2crtc == 4) tempbx++; tempbx 7121 drivers/video/fbdev/sis/init301.c if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++; tempbx 7124 drivers/video/fbdev/sis/init301.c if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */ tempbx 7128 drivers/video/fbdev/sis/init301.c tempbx -= 2; tempbx 7129 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx); tempbx 7132 drivers/video/fbdev/sis/init301.c temp |= ((tempbx >> 2) & 0xC0); tempbx 7140 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5)); tempbx 7144 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE; tempbx 7147 drivers/video/fbdev/sis/init301.c tempbx >>= 1; tempbx 7149 drivers/video/fbdev/sis/init301.c tempbx -= 3; tempbx 7150 drivers/video/fbdev/sis/init301.c temp = ((tempbx >> 3) & 0x60) | 0x18; tempbx 7152 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx); tempbx 7155 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4)); tempbx 7159 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 7163 drivers/video/fbdev/sis/init301.c tempbx |= 0x20; tempbx 7174 drivers/video/fbdev/sis/init301.c tempbx &= ~0x20; tempbx 7182 drivers/video/fbdev/sis/init301.c if(!(tempbx & 0x20)) { tempbx 7188 drivers/video/fbdev/sis/init301.c tempbx |= ((tempax >> 8) & 0x1F); tempbx 7193 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx); tempbx 7198 drivers/video/fbdev/sis/init301.c if(tempbx & 0x20) tempcx = 0; tempbx 7202 drivers/video/fbdev/sis/init301.c tempbx = 0x0382; tempbx 7205 drivers/video/fbdev/sis/init301.c tempbx = 0x0369; tempbx 7208 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx); tempbx 7211 drivers/video/fbdev/sis/init301.c temp |= ((tempbx >> 8) & 0x03); tempbx 7250 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HDE; tempbx 7251 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; tempbx 7252 drivers/video/fbdev/sis/init301.c tempbx--; /* RHACTE = HDE - 1 */ tempbx 7253 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx); tempbx 7254 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0)); tempbx 7269 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE - 1; tempbx 7270 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx); tempbx 7271 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07)); tempbx 7325 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE - 1; tempbx 7328 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); tempbx 7332 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelYRes; tempbx 7346 drivers/video/fbdev/sis/init301.c tempbx -= tempax; /* lcdvdee */ tempbx 7352 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */ tempbx 7354 drivers/video/fbdev/sis/init301.c temp = (tempbx >> 5) & 0x38; tempbx 7369 drivers/video/fbdev/sis/init301.c tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1; tempbx 7376 drivers/video/fbdev/sis/init301.c tempbx -= (tempax - 1); tempbx 7378 drivers/video/fbdev/sis/init301.c tempbx -= 10; tempbx 7379 drivers/video/fbdev/sis/init301.c if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1; tempbx 7384 drivers/video/fbdev/sis/init301.c tempbx++; tempbx 7387 drivers/video/fbdev/sis/init301.c tempbx = 770; tempbx 7396 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CVSyncStart; tempbx 7399 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */ tempbx 7401 drivers/video/fbdev/sis/init301.c temp = (tempbx >> 4) & 0xF0; tempbx 7402 drivers/video/fbdev/sis/init301.c tempbx += (tempcx + 1); tempbx 7403 drivers/video/fbdev/sis/init301.c temp |= (tempbx & 0x0F); tempbx 7435 drivers/video/fbdev/sis/init301.c tempax = tempbx = SiS_Pr->SiS_HDE; tempbx 7439 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); tempbx 7444 drivers/video/fbdev/sis/init301.c tempbx >>= 1; tempbx 7448 drivers/video/fbdev/sis/init301.c tempbx += bridgeoffset; tempbx 7450 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */ tempbx 7451 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f)); tempbx 7455 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 7456 drivers/video/fbdev/sis/init301.c push2 = tempbx; tempbx 7461 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47; tempbx 7467 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncStart; tempbx 7468 drivers/video/fbdev/sis/init301.c if(modeflag & HalfDCLK) tempbx <<= 1; tempbx 7469 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; tempbx 7470 drivers/video/fbdev/sis/init301.c tempbx += bridgeoffset; tempbx 7473 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */ tempbx 7474 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0)); tempbx 7476 drivers/video/fbdev/sis/init301.c tempbx = push2; tempbx 7482 drivers/video/fbdev/sis/init301.c tempbx += tempcx; tempbx 7485 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncEnd; tempbx 7486 drivers/video/fbdev/sis/init301.c if(modeflag & HalfDCLK) tempbx <<= 1; tempbx 7487 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; tempbx 7488 drivers/video/fbdev/sis/init301.c tempbx += bridgeoffset; tempbx 7491 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */ tempbx 7723 drivers/video/fbdev/sis/init301.c unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; tempbx 7760 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_RVBHCMAX; tempbx 7761 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx); tempbx 7763 drivers/video/fbdev/sis/init301.c temp = (tempbx >> 1) & 0x80; tempbx 7777 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAHDE; tempbx 7778 drivers/video/fbdev/sis/init301.c if(modeflag & HalfDCLK) tempbx >>= 1; tempbx 7779 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; tempbx 7783 drivers/video/fbdev/sis/init301.c if(tempbx > 800) temp = 0x60; tempbx 7786 drivers/video/fbdev/sis/init301.c if(tempbx > 1024) temp = 0xC0; tempbx 7787 drivers/video/fbdev/sis/init301.c else if(tempbx >= 960) temp = 0xA0; tempbx 7790 drivers/video/fbdev/sis/init301.c if(tempbx >= 1280) temp = 0x40; tempbx 7791 drivers/video/fbdev/sis/init301.c else if(tempbx >= 1024) temp = 0x20; tempbx 7794 drivers/video/fbdev/sis/init301.c if(tempbx >= 1024) temp = 0xA0; tempbx 7843 drivers/video/fbdev/sis/init301.c tempbx = 0; tempbx 7844 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08; tempbx 7852 drivers/video/fbdev/sis/init301.c tempbx = 0x08; tempbx 7872 drivers/video/fbdev/sis/init301.c temp = ((tempax >> 4) & 0x30) | tempbx; tempbx 7876 drivers/video/fbdev/sis/init301.c temp = 0x0036; tempbx = 0xD0; tempbx 7878 drivers/video/fbdev/sis/init301.c temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */ tempbx 7890 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); tempbx 7892 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HT >> 1; tempbx 7893 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; tempbx 7894 drivers/video/fbdev/sis/init301.c tempbx -= 2; tempbx 7895 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx); tempbx 7896 drivers/video/fbdev/sis/init301.c temp = (tempbx >> 5) & 0x38; tempbx 9202 drivers/video/fbdev/sis/init301.c SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx) tempbx 9217 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_ReadAddr = tempbx; tempbx 9235 drivers/video/fbdev/sis/init301.c SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx) tempbx 9243 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_ReadAddr = tempbx; tempbx 9252 drivers/video/fbdev/sis/init301.c SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx) tempbx 9255 drivers/video/fbdev/sis/init301.c return SiS_GetCH700x(SiS_Pr, tempbx); tempbx 9257 drivers/video/fbdev/sis/init301.c return SiS_GetCH701x(SiS_Pr, tempbx); tempbx 10753 drivers/video/fbdev/sis/init301.c unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; tempbx 10874 drivers/video/fbdev/sis/init301.c tempbx = 806; /* 0x326 */ /* other older BIOSes */ tempbx 10875 drivers/video/fbdev/sis/init301.c tempbx--; tempbx 10876 drivers/video/fbdev/sis/init301.c temp = tempbx & 0xff; tempbx 10878 drivers/video/fbdev/sis/init301.c temp = (tempbx >> 8) & 0x03; tempbx 10924 drivers/video/fbdev/sis/init301.c tempbx = (tempbh << 8) | tempbl; tempbx 10928 drivers/video/fbdev/sis/init301.c tempbx = 770; tempbx 10930 drivers/video/fbdev/sis/init301.c if(tempbx > 770) tempbx = 770; tempbx 10935 drivers/video/fbdev/sis/init301.c tempbx -= tempax; tempbx 10940 drivers/video/fbdev/sis/init301.c temp = tempbx & 0xff; tempbx 10942 drivers/video/fbdev/sis/init301.c temp = ((tempbx & 0xff00) >> 4) | tempcl; tempbx 11002 drivers/video/fbdev/sis/init301.c unsigned short tempbx=0,romptr=0; tempbx 11014 drivers/video/fbdev/sis/init301.c tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f; tempbx 11015 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07; tempbx 11016 drivers/video/fbdev/sis/init301.c tempbx -= 2; tempbx 11017 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4; tempbx 11019 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3; tempbx 11023 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDTypeInfo; tempbx 11026 drivers/video/fbdev/sis/init301.c if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; tempbx 11027 drivers/video/fbdev/sis/init301.c else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo]; tempbx 11028 drivers/video/fbdev/sis/init301.c if(tempbx == 0xFF) return 0xFFFF; tempbx 11030 drivers/video/fbdev/sis/init301.c tempbx <<= 1; tempbx 11031 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; tempbx 11040 drivers/video/fbdev/sis/init301.c if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; tempbx 11041 drivers/video/fbdev/sis/init301.c else tempbx = 0xff; tempbx 11043 drivers/video/fbdev/sis/init301.c tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo]; tempbx 11045 drivers/video/fbdev/sis/init301.c if(tempbx == 0xFF) return 0xFFFF; tempbx 11046 drivers/video/fbdev/sis/init301.c tempbx <<= 2; tempbx 11047 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; tempbx 11048 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; tempbx 11049 drivers/video/fbdev/sis/init301.c return tempbx; tempbx 11051 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDTypeInfo << 2; tempbx 11052 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; tempbx 11053 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; tempbx 11057 drivers/video/fbdev/sis/init301.c return tempbx; tempbx 128 drivers/video/fbdev/sis/init301.h extern void SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *tempbx, tempbx 130 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetFIFOThresholdB300(unsigned short tempbx, unsigned short tempcl);