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

Lines Matching defs:tempbx

153 void     XGI_GetTVPtrIndex2(unsigned short *tempbx, unsigned char* tempcl,
1157 unsigned short tempax, tempbx, resinfo, modeflag, infoflag;
1169 tempbx = pVBInfo->RefIndex[ RefreshRateTableIndex + ( *i ) ].ModeID ;
1293 for( ; pVBInfo->RefIndex[ RefreshRateTableIndex + ( *i ) ].ModeID == tempbx ; ( *i )-- )
1307 if ( pVBInfo->RefIndex[ RefreshRateTableIndex + ( *i ) ].ModeID != tempbx )
1948 unsigned short resindex, tempax, tempbx, tempcx, temp, modeflag;
1958 tempbx = pVBInfo->StResInfo[ resindex ].VTotal ;
1964 tempbx = pVBInfo->ModeResInfo[ resindex ].VTotal ;
1978 tempbx = tempbx >> 1 ;
1981 tempbx = tempbx << 1 ;
1991 tempbx -= 1 ;
1999 XGINew_SetReg1(pVBInfo->P3d4, 0x12, (unsigned short)(tempbx & 0xff));
2001 tempbx = tempbx >> 8 ;
2003 if ( tempbx & 0x01 )
2006 if ( tempbx & 0x02 )
2014 if ( tempbx & 0x04 )
2763 unsigned short tempbx ;
2767 tempbx = 2 ;
2771 LCDPtr = (struct XGI330_LVDSDataStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2781 TVPtr = (struct XGI330_CHTVDataStruct *)XGI_GetTVPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2830 unsigned short tempbx , i ;
2846 tempbx = 0 ;
2850 LCDPtr = (struct XGI_LVDSCRT1HDataStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2860 CH7007TV_TimingHPtr = (struct XGI_CH7007TV_TimingHStruct *)XGI_GetTVPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2870 TVPtr = ( struct XGI330_CHTVDataStruct *)XGI_GetTVPtr( tempbx , ModeNo , ModeIdIndex , RefreshRateTableIndex, pVBInfo ) ;
2881 tempbx = 1 ;
2885 LCDPtr1 = (struct XGI_LVDSCRT1VDataStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2894 CH7007TV_TimingVPtr = (struct XGI_CH7007TV_TimingVStruct *)XGI_GetTVPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2903 TVPtr = ( struct XGI330_CHTVDataStruct *)XGI_GetTVPtr( tempbx , ModeNo , ModeIdIndex , RefreshRateTableIndex, pVBInfo ) ;
2930 unsigned short tempbx , tempax , tempcx , tempdx , push1 , push2 , modeflag ;
2946 tempbx = 8 ;
2947 LCDPtr = (struct XGI330_LCDDataDesStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2952 tempbx = 3 ;
2954 LCDPtr1 = (struct XGI330_LCDDataDesStruct2 *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2956 LCDPtr = (struct XGI330_LCDDataDesStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
2959 XGI_GetLCDSync( &tempax , &tempbx ,pVBInfo) ;
2960 push1 = tempbx ;
2967 tempbx = 768 ;
2972 tempbx = 1024 ;
2977 tempbx = 1050 ;
2982 tempbx = 1200 ;
2988 pVBInfo->VDE=tempbx;
2990 pVBInfo->VGAVDE=tempbx;
2996 tempbx=pVBInfo->VDE;
3002 tempbx = LCDPtr1->LCDHDES ;
3004 tempbx = LCDPtr->LCDHDES ;
3007 tempbx = tempbx & 0x0fff ;
3008 tempcx += tempbx ;
3013 XGINew_SetReg1( pVBInfo->Part1Port , 0x1A , tempbx & 0x07 ) ;
3016 tempbx = tempbx >> 3 ;
3018 XGINew_SetReg1(pVBInfo->Part1Port, 0x16, (unsigned short)(tempbx & 0xff));
3024 tempbx = LCDPtr1->LCDHRS ;
3026 tempbx = LCDPtr->LCDHRS ;
3033 tempcx += tempbx ;
3038 tempax = tempbx & 0x07 ;
3041 tempbx = tempbx >> 3 ;
3047 XGINew_SetReg1(pVBInfo->Part1Port, 0x14, (unsigned short)(tempbx & 0xff));
3051 tempbx = LCDPtr1->LCDVDES ;
3053 tempbx = LCDPtr->LCDVDES ;
3056 tempbx = tempbx & 0x0fff ;
3057 tempcx += tempbx ;
3061 XGINew_SetReg1(pVBInfo->Part1Port, 0x1b, (unsigned short)(tempbx & 0xff));
3064 tempbx = ( tempbx >> 8 ) & 0x07 ;
3067 XGINew_SetReg1(pVBInfo->Part1Port, 0x1d, (unsigned short)((tempcx << 3) | tempbx));
3071 tempbx = LCDPtr1->LCDVRS ;
3073 tempbx = LCDPtr->LCDVRS ;
3075 /* tempbx = tempbx >> 4 ; */
3081 tempcx += tempbx ;
3085 XGINew_SetReg1(pVBInfo->Part1Port, 0x18, (unsigned short)(tempbx & 0xff));
3088 tempax = ( ( tempbx >> 8 ) & 0x07 ) << 3 ;
3090 tempbx = pVBInfo->VGAVDE ;
3091 if ( tempbx != pVBInfo->VDE )
3100 tempbx = pVBInfo->VDE ;
3105 temp1 = ( temp << 18 ) / tempbx ;
3107 tempdx = (unsigned short)((temp << 18) % tempbx);
3118 tempbx = (unsigned short)(temp2 >> 16);
3119 tempax = tempbx & 0x03 ;
3121 tempbx = pVBInfo->VGAVDE ;
3122 if ( tempbx == pVBInfo->VDE )
3132 tempbx = (unsigned short)(temp2 >> 16);
3133 XGINew_SetRegANDOR(pVBInfo->Part4Port, 0x3a, ~0xc0, (unsigned short)((tempbx & 0xff) << 6));
3143 tempbx = pVBInfo->HDE ;
3147 tempax = (unsigned short)(temp1 / tempbx);
3149 if ( ( tempbx & 0xffff ) == ( tempcx & 0xffff ) )
3166 tempbx = (unsigned short)(temp1 & 0xffff);
3169 tempbx -= 1 ;
3171 tempax = ( ( tempbx >> 8 ) & 0xff ) << 3 ;
3174 XGINew_SetReg1(pVBInfo->Part1Port, 0x21, (unsigned short)(tempbx & 0xff));
3363 unsigned short flag , tempbx , tempah ;
3372 tempbx = VB_XGI302B ;
3376 tempbx = VB_XGI301 ;
3380 tempbx = VB_XGI301B ;
3383 tempbx = VB_XGI301C ;
3386 tempbx = VB_XGI301LV ;
3389 tempbx = VB_XGI302LV ;
3392 tempbx = VB_XGI301C ;
3397 if ( tempbx & ( VB_XGI301B | VB_XGI302B ) )
3402 tempbx = tempbx | VB_NoLCD ;
3406 pVBInfo->VBType = tempbx ;
3428 tempbx ,
3443 tempbx = 0 ;
3448 tempbx = tempbx | temp ;
3453 tempbx = tempbx | tempax ;
3456 tempbx &= temp ;
3472 tempbx |= SetCRT2ToDualEdge ;
3475 tempbx |= SetCRT2ToLCDA ;
3485 tempbx |= SetCRT2ToDualEdge ;
3488 tempbx |= SetCRT2ToLCDA ;
3506 tempbx |= SetCRT2ToHiVisionTV ;
3509 tempbx &= ( ~SetCRT2ToHiVisionTV ) ;
3510 tempbx |= SetCRT2ToYPbPr ; }
3513 /* tempbx |= SetCRT2ToYPbPr ; */
3549 if ( !( tempbx & temp ) )
3552 tempbx = 0 ;
3559 if ( tempbx & SetCRT2ToLCDA )
3561 if ( tempbx & SetSimuScanMode )
3562 tempbx &= ( ~( SetCRT2ToLCD | SetCRT2ToRAMDAC | SwitchToCRT2 ) ) ;
3564 tempbx &= ( ~( SetCRT2ToLCD | SetCRT2ToRAMDAC | SetCRT2ToTV | SwitchToCRT2 ) ) ;
3570 if ( !( tempbx & ( SwitchToCRT2 | SetSimuScanMode ) ) ) /* for driver abnormal */
3574 if ( tempbx & SetCRT2ToRAMDAC )
3576 tempbx &= ( 0xFF00 | SetCRT2ToRAMDAC | SwitchToCRT2 | SetSimuScanMode ) ;
3577 tempbx &= ( 0x00FF | ( ~SetCRT2ToYPbPr ) ) ;
3581 tempbx &= ( ~( SetCRT2ToRAMDAC | SetCRT2ToLCD | SetCRT2ToTV ) ) ;
3586 if ( tempbx & SetCRT2ToLCD )
3588 tempbx &= ( 0xFF00 | SetCRT2ToLCD | SwitchToCRT2 | SetSimuScanMode ) ;
3589 tempbx &= ( 0x00FF | ( ~SetCRT2ToYPbPr ) ) ;
3593 if ( tempbx & SetCRT2ToSCART )
3595 tempbx &= ( 0xFF00 | SetCRT2ToSCART | SwitchToCRT2 | SetSimuScanMode ) ;
3596 tempbx &= ( 0x00FF | ( ~SetCRT2ToYPbPr ) ) ;
3601 if ( tempbx & SetCRT2ToYPbPr )
3602 tempbx &= ( 0xFF00 | SwitchToCRT2 | SetSimuScanMode ) ;
3607 if ( tempbx & SetCRT2ToHiVisionTV )
3608 tempbx &= ( 0xFF00 | SetCRT2ToHiVisionTV | SwitchToCRT2 | SetSimuScanMode ) ;
3613 if ( !( tempbx & ( SwitchToCRT2 | SetSimuScanMode ) ) )
3614 tempbx = DisableCRT2Display ;
3617 if ( !( tempbx & DisableCRT2Display ) )
3619 if ( ( !( tempbx & DriverMode ) ) || ( !( modeflag & CRT2Mode ) ) )
3623 if ( !( tempbx & SetCRT2ToLCDA ) )
3624 tempbx |= ( SetInSlaveMode | SetSimuScanMode ) ;
3636 if ( !( tempbx & SetCRT2ToRAMDAC ) ) /*CRT2 not need to support*/
3638 tempbx &= ( 0x00FF | ( ~SetInSlaveMode ) ) ;
3647 if ( ( tempbx & SetInSlaveMode ) && ( tempbx & SetCRT2ToLCDA ) )
3649 tempbx ^= ( SetCRT2ToLCD | SetCRT2ToLCDA | SetCRT2ToDualEdge ) ;
3655 pVBInfo->VBInfo = tempbx ;
3668 tempbx = 0 ,
3673 tempbx = 0 ;
3692 tempbx = temp;
3693 if ( tempbx & SetPALTV )
3695 tempbx &= ( SetCHTVOverScan | SetPALMTV | SetPALNTV | SetPALTV ) ;
3696 if ( tempbx & SetPALMTV )
3697 tempbx &= ~SetPALTV ; /* set to NTSC if PAL-M */
3700 tempbx &= ( SetCHTVOverScan | SetNTSCJ | SetPALTV ) ;
3706 tempbx |= temp2 ;
3708 tempbx &= ( ~SetPALTV ) ;
3715 tempbx = XGINew_GetReg1( pVBInfo->P3d4 , 0x35 ) ;
3717 if ( tempbx & TVOverScan )
3718 tempbx |= SetCHTVOverScan ;
3723 tempbx = XGINew_GetReg1( pVBInfo->P3d4 , 0x35 ) ;
3725 if ( tempbx & TVOverScan )
3727 tempbx |= SetCHTVOverScan ;
3735 tempbx |= SetPALTV ;
3746 tempbx |= SetYPbPrMode525i ;
3749 tempbx = tempbx | SetYPbPrMode525p;
3751 tempbx = tempbx | SetYPbPrMode750p;
3759 tempbx = tempbx | SetYPbPrMode1080i | SetPALTV ;
3766 tempbx |= TVSimuMode ;
3768 if ( !( tempbx & SetPALTV ) && ( modeflag > 13 ) && ( resinfo == 8 ) ) /* NTSC 1024x768, */
3769 tempbx |= NTSC1024x768 ;
3771 tempbx |= RPLLDIV2XO ;
3776 tempbx &=( ~RPLLDIV2XO ) ;
3780 if ( tempbx & ( SetYPbPrMode525p | SetYPbPrMode750p ) )
3781 tempbx &= ( ~RPLLDIV2XO ) ;
3784 if ( tempbx & TVSimuMode )
3785 tempbx &= ( ~RPLLDIV2XO ) ;
3790 pVBInfo->TVInfo = tempbx ;
3805 tempbx ,
3825 tempbx = temp & 0x0F ;
3827 if ( tempbx == 0 )
3828 tempbx = Panel1024x768 ; /* default */
3831 if ( ( tempbx == Panel1024x768 ) || ( tempbx == Panel1280x1024 ) )
3844 tempbx |= PanelRef75Hz ;
3849 tempbx |= PanelRef75Hz ;
3854 pVBInfo->LCDResInfo = tempbx ;
3868 tempbx = 0 ;
3877 tempbx |= temp ;
3887 tempbx |= SetLCDDualLink ;
3895 tempbx |= SetLCDDualLink ;
3901 if ( ( pVBInfo->LCDResInfo == Panel1400x1050 ) && ( pVBInfo->VBInfo & SetCRT2ToLCD ) && ( ModeNo > 0x13 ) && ( resinfo == 9 ) && ( !( tempbx & EnableScalingLCD ) ) )
3902 tempbx |= SetLCDtoNonExpanding ; /* set to center in 1280x1024 LCDB for Panel1400x1050 */
3908 tempbx |= SetLCDBToA ;
3917 if ( !( tempbx & SetLCDtoNonExpanding ) )
3919 tempbx |= EnableLVDSDDA ;
3929 tempbx |= EnableLVDSDDA ;
3941 tempbx |= LCDVESATiming ;
3946 tempbx |= LCDVESATiming ;
3949 pVBInfo->LCDInfo = tempbx ;
4449 unsigned short tempbx ,
4453 tempbx=pVBInfo->VBInfo ;
4631 tempbx ,
4658 tempbx = 4 ;
4662 LCDPtr = (struct XGI_LCDDataStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
4674 tempbx = 768 ;
4679 tempbx = 527 ;
4681 tempbx = 620 ;
4683 tempbx = 775 ;
4685 tempbx = 775 ;
4686 /* else if(pVBInfo->VGAVDE==350) tempbx=560; */
4687 /* else if(pVBInfo->VGAVDE==400) tempbx=640; */
4689 tempbx = 768 ;
4692 tempbx = 768 ;
4697 tempbx = 768 ;
4703 tempbx = 768 ;
4705 tempbx = 800 ;
4707 tempbx = 864 ;
4709 tempbx = 1024 ;
4714 tempbx = 1024 ;
4720 tempbx = 700 ;
4722 tempbx = 800 ;
4724 tempbx = 960 ;
4726 tempbx = 960 ;
4731 tempbx = 1050 ;
4736 tempbx = 1024 ;
4742 tempbx = 1200 ; /* alan 10/14/2003 */
4746 tempbx = 875 ;
4748 tempbx = 1000 ;
4755 tempbx = pVBInfo->VGAVDE ;
4759 pVBInfo->VDE = tempbx ;
4765 tempbx = 4 ;
4766 TVPtr = (struct XGI_TVDataStruct *)XGI_GetTVPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
4790 tempbx = ExtHiTVVT ;
4797 tempbx = StHiTVVT ;
4802 tempbx = StHiTextTVVT ;
4812 tempbx = YPbPrTV750pVT ; /* Ext750pTVVT */
4818 tempbx = YPbPrTV525pVT ; /* Ext525pTVVT */
4823 tempbx = YPbPrTV525iVT ; /* Ext525iTVVT */
4831 tempbx = PALVT ;
4835 tempbx = NTSCVT ;
4842 pVBInfo->VT = tempbx ;
4933 unsigned short tempbx ;
5002 tempbx = 0;
5004 tempbx = tempbx + 2;
5006 tempbx++;
5007 tempbx = tempbx << 1;
5026 tempbx = 0;
5030 tempbx = tempbx + 2;
5034 tempbx++;
5036 /** tempbx = tempbx << 1; CH7007 ? **/
5041 switch( tempbx )
5062 switch( tempbx )
5274 tempbx = 0 ,
5309 tempbx = pushbx + tempcx ; /* bx BTVGA@HRS 0x0B,0x0C */
5310 tempcx += tempbx ;
5314 tempbx = pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 4 ] ;
5315 tempbx |= ( ( pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 14 ] & 0xC0 ) << 2 ) ;
5316 tempbx = ( tempbx - 3 ) << 3 ; /* (VGAHRS-3)*8 */
5324 tempbx += 4 ;
5330 temp = tempbx & 0x00FF ;
5345 tempbx = pushbx + tempcx ; /* bx BTVGA@HRS 0x0B,0x0C */
5346 tempcx += tempbx ;
5350 tempbx = pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 3 ] ;
5351 tempbx |= ( ( pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 5 ] & 0xC0 ) << 2 ) ;
5352 tempbx = ( tempbx - 3 ) << 3 ; /* (VGAHRS-3)*8 */
5358 tempbx += 16 ;
5365 temp = tempbx & 0x00FF ;
5369 tempax = ( tempax & 0x00FF ) | ( tempbx & 0xFF00 ) ;
5370 tempbx = pushbx ;
5371 tempbx = ( tempbx & 0x00FF ) | ( ( tempbx & 0xFF00 ) << 4 ) ;
5372 tempax |= ( tempbx & 0xFF00 ) ;
5389 tempbx = pVBInfo->VGAVDE - 1 ;
5390 temp = tempbx & 0x00FF ;
5392 temp = ( ( tempbx & 0xFF00 ) << 3 ) >> 8 ;
5397 tempbx = pVBInfo->VGAVDE ;
5399 tempbx = ( pVBInfo->VGAVT + pVBInfo->VGAVDE ) >> 1 ; /* BTVGA2VRS 0x10,0x11 */
5400 tempcx = ( ( pVBInfo->VGAVT - pVBInfo->VGAVDE ) >> 4 ) + tempbx + 1 ; /* BTVGA2VRE 0x11 */
5404 tempbx = pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 10 ] ;
5408 tempbx |= 0x0100 ;
5411 tempbx |= 0x0200 ;
5416 tempbx |= 0x0400 ;
5422 temp = tempbx & 0x00FF ;
5424 temp = ( ( tempbx & 0xFF00 ) >> 8 ) << 4 ;
5453 tempbx = 0 ,
5493 tempbx |= ( ( tempax & 0x00FF ) << 8 ) ;
5497 temp = ( tempbx & 0xFF00 ) >> 8 ;
5545 temp = ( tempbx & 0x00FF ) - 1 ;
5559 /* tempcx = tempbx & 0x00FF ; */
5560 tempbx = ( tempbx & 0xFF00 ) >> 8 ;
5561 tempcx = ( tempcx + tempbx ) >> 1 ;
5680 tempbx = pVBInfo->VGAVT ;
5681 push1 = tempbx ;
5683 tempbx = pVBInfo->VGAVDE ; /* 0x0E Virtical Display End */
5685 if ( tempbx == 357 )
5686 tempbx = 350 ;
5687 if ( tempbx == 360 )
5688 tempbx =350 ;
5689 if ( tempbx == 375 )
5690 tempbx = 350 ;
5691 if ( tempbx == 405 )
5692 tempbx = 400 ;
5693 if ( tempbx == 525 )
5694 tempbx = 480 ;
5696 push2 = tempbx ;
5704 if ( tempbx == 350 )
5705 tempbx += 5 ;
5706 if ( tempbx == 480 )
5707 tempbx += 5 ;
5711 tempbx-- ;
5712 temp = tempbx & 0x00FF ;
5713 tempbx-- ;
5714 temp = tempbx & 0x00FF ;
5716 tempbx = push2 ;
5717 tempbx-- ;
5718 temp = tempbx & 0x00FF ;
5721 if ( tempbx & 0x0100 )
5733 if ( tempbx & 0x0200 )
5741 if ( tempbx & 0x0400 )
5749 tempax -= tempbx ; /* 0x0C Vertical Retrace Start */
5756 tempbx += tempax ;
5764 tempbx -= 10 ;
5774 tempbx += 40 ;
5777 tempbx += 40 ;
5783 tempbx -= 10 ;
5794 tempbx += 40 ;
5797 tempbx += 40 ;
5804 tempax += tempbx ;
5809 if ( tempbx <= 513 )
5813 tempbx = 513 ;
5818 temp = tempbx & 0x00FF ;
5820 tempbx-- ;
5821 temp = tempbx & 0x00FF ;
5824 if ( tempbx & 0x0100 )
5829 if ( tempbx & 0x0200 )
5834 tempbx++ ;
5836 if ( tempbx & 0x0100 )
5841 if ( tempbx & 0x0200 )
5846 if ( tempbx & 0x0400 )
5851 tempbx = push1 ; /* pop ax */
5852 temp = tempbx & 0x00FF ;
5856 if ( tempbx & 0x0010 )
5900 tempbx ,
6082 tempbx = TimingPoint[ j ] | ( ( TimingPoint[ j + 1 ] ) << 8 ) ;
6083 tempbx += tempcx ;
6084 push2 = tempbx ;
6085 temp = tempbx & 0x00FF ;
6087 temp = ( tempbx & 0xFF00 ) >> 8 ;
6091 tempbx=push2;
6092 tempbx=tempbx+8;
6095 tempbx=tempbx-4;
6096 tempcx=tempbx;
6099 temp = ( tempbx & 0x00FF ) << 4 ;
6137 tempbx = pVBInfo->VDE ;
6140 tempbx = 746 ;
6142 tempbx = 746 ;
6144 tempbx = 853 ;
6151 tempbx = tempbx >> 1 ;
6154 tempbx = tempbx >> 1 ;
6157 tempbx -= 2 ;
6158 temp = tempbx & 0x00FF ;
6186 temp |= ( ( tempbx & 0xFF00 ) >> 8 ) << 6 ;
6212 tempbx = pVBInfo->VDE ;
6213 tempcx = tempbx - 2 ;
6218 tempbx = tempbx >> 1 ;
6227 if ( tempbx & 0x0400 )
6233 temp = ( ( ( tempbx - 3 ) & 0x0300 ) >> 8 ) << 5 ;
6235 temp = ( tempbx - 3 ) & 0x00FF ;
6239 tempbx = tempbx & 0x00FF ;
6246 tempbx |= 0x2000 ;
6260 tempbx=tempbx&0xDFFF;
6265 if ( !( tempbx & 0x2000 ) )
6272 push1 = tempbx ;
6305 tempbx = push1 ;
6306 tempbx = (unsigned short)(((tempeax & 0x0000FF00) & 0x1F00) | (tempbx & 0x00FF));
6316 temp = ( tempbx & 0xFF00 ) >> 8 ;
6320 if ( tempbx & 0x2000 )
6329 tempbx = 0x0382 ;
6334 tempbx = 0x0369 ;
6338 temp = tempbx & 0x00FF ;
6345 temp |= ( ( tempbx & 0xFF00 ) >> 8 ) & 0x03 ;
6419 tempbx ,
6450 tempbx = pVBInfo->HDE ; /* RHACTE=HDE-1 */
6453 tempbx = tempbx >> 1 ;
6455 tempbx -= 1 ;
6456 temp = tempbx & 0x00FF ;
6458 temp = ( tempbx & 0xFF00 ) >> 8 ;
6477 tempbx = pVBInfo->VDE ; /* RTVACTEO=(VDE-1)&0xFF */
6478 push1 = tempbx ;
6479 tempbx-- ;
6480 temp = tempbx & 0x00FF ;
6482 temp = ( ( tempbx & 0xFF00 ) >> 8 ) & 0x07 ;
6498 tempbx = 5 ;
6499 LCDBDesPtr = (struct XGI_LCDDesStruct *)XGI_GetLcdPtr(tempbx, ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
6505 tempbx = 1024 ;
6510 tempbx = 1280 ;
6515 tempbx = 1400 ;
6520 tempbx = 1600 ;
6526 tempbx = pVBInfo->HDE ;
6530 pushbx = tempbx ;
6536 tempbx = pVBInfo->LCDVDES ;
6537 tempcx += tempbx ;
6542 temp = tempbx & 0x00FF ; /* RVEQ1EQ=lcdvdes */
6547 tempbh = ( ( tempbx & 0xFF00 ) >> 8 ) & 0x07 ;
6554 XGI_GetLCDSync( &tempax , &tempbx,pVBInfo ) ;
6555 tempcx = tempbx ;
6557 tempbx = pVBInfo->LCDVRS ;
6560 tempcx += tempbx ;
6564 temp = tempbx & 0x00FF ; /* RTVACTEE=lcdvrs */
6566 temp = ( tempbx & 0xFF00 ) >> 8 ;
6572 tempbx = pVBInfo->LCDHDES ;
6573 tempbx &= 0x0FFF ;
6578 tempbx = tempbx >> 1 ;
6583 tempbx += 1 ;
6586 tempbx += 1 ;
6588 tempcx += tempbx ;
6593 temp = tempbx & 0x00FF ;
6595 temp = ( ( tempbx & 0xFF00 ) >> 8 ) << 4 ;
6603 XGI_GetLCDSync( &tempax , &tempbx ,pVBInfo) ;
6606 tempbx = pVBInfo->LCDHRS ;
6611 tempbx = tempbx >> 1 ;
6616 tempbx += 1 ;
6618 tempcx += tempbx ;
6623 temp = tempbx & 0x00FF ; /* RHBURSTS=lcdhrs */
6626 temp = ( tempbx & 0xFF00 ) >> 8 ;
6671 tempbx ,
6679 tempbx = pVBInfo->HDE ;
6684 tempbx = pVBInfo->VDE ;
6687 if ( tempax < tempbx )
6689 else if( tempax == tempbx )
6857 tempbx ,
6879 tempbx = pVBInfo->RVBHCMAX ;
6880 temp = tempbx & 0x00FF ;
6882 temp2 = ( ( tempbx & 0xFF00 ) >> 8 ) << 7 ;
6902 tempbx = pVBInfo->VGAHDE ;
6906 tempbx = tempbx >> 1 ;
6910 tempbx = tempbx >> 1 ;
6915 if(tempbx<=1024)
6917 if(tempbx == 1280)
6923 if(tempbx <= 800)
6932 if(tempbx>800)
6952 tempbx = tempbx >> 1 ;
6989 tempbx = (unsigned short)(tempebx >> 16);
6990 temp = tempbx & 0x00FF ;
7082 tempbx = pVBInfo->HT ;
7084 tempbx = tempbx >> 1 ;
7085 tempbx = ( tempbx >> 1 ) - 2 ;
7086 temp = ( ( tempbx & 0x0700 ) >> 8 ) << 3 ;
7088 temp = tempbx & 0x00FF ;
7138 tempbx ,
7146 tempbx = BX;
7161 if ( tempbx <= 1 ) /* ExpLink */
7180 if ( tempbx & 0x01 )
7186 tempcx = LCDLenList[ tempbx ] ; /* mov cl,byte ptr cs:LCDLenList[bx] */
7190 if ( ( tempbx == 5 ) || ( tempbx ) == 7 )
7192 else if ( ( tempbx == 3 ) || ( tempbx == 8 ) )
7196 /* tempdi=pVideoMemory[LCDDataList+tempbx*2]|(pVideoMemory[LCDDataList+tempbx*2+1]<<8); */
7198 switch( tempbx )
7233 table = tempbx ;
7239 if ( tempbx & 0x0080 ) /* OEMUtil */
7241 tempbx &= ( ~0x0080 ) ;
7250 tempbx = tempdi[ i ].MASK ;
7259 tempbx &= tempdx;
7260 if ( tempbx == tempdi[ i ].CAP )
7640 unsigned short i , tempdx , tempbx , tempal , modeflag , table ;
7643 tempbx = BX ;
7657 table = tempbx ;
7659 switch( tempbx )
8588 unsigned short tempbx ,
8591 tempbx = pVBInfo->SetFlag & ( DisableChA | DisableChB ) ;
8594 if ( tempbx & ( EnableChA | DisableChA ) )
8600 if ( !( tempbx & ( EnableChB | DisableChB ) ) )
8618 unsigned short tempbx ,
8622 tempbx = pVBInfo->SetFlag & ( EnableChA | EnableChB ) ;
8625 if ( tempbx & ( EnableChA | DisableChA ) )
8631 if ( !( tempbx & ( EnableChB | DisableChB ) ) )
8967 tempbx ,
8989 tempbx = 0xFE ; /* not 01h */
8994 tempbx = 0xF7 ; /* not 08h */
8997 XGI_SetPanelPower( tempax , tempbx , pVBInfo) ;
9012 tempbx = XGINew_GetCH7005( 0x61 ) ;
9013 if ( tempbx < 0x01 ) //first time we power up
9147 unsigned short tempbx = 0 ;
9150 tempbx = 2 ;
9152 tempbx = 4 ;
9154 tempbx = 6 ;
9156 tempbx = 8 ;
9158 tempbx = 10 ;
9160 tempbx++ ;
9162 return tempbx ;
9409 unsigned short tempbx ,
9417 tempbx = XGI_GetTVPtrIndex(pVBInfo ) ;
9418 tempbx &= 0xFE ;
9429 tempbx += index ;
9430 tempah = TVAntiFlickList[ tempbx ] ;
9445 unsigned short tempbx ,
9451 tempbx = XGI_GetTVPtrIndex(pVBInfo ) ;
9452 tempbx &= 0xFE ;
9463 tempbx += index ;
9464 tempah = TVEdgeList[ tempbx ] ;
9479 unsigned short tempbx ;
9486 XGI_GetTVPtrIndex2( &tempbx , &tempcl , &tempch, pVBInfo ) ; /* bx, cl, ch */
9487 tempData = TVPhaseList[ tempbx ] ;
9509 unsigned short tempbx ,
9517 XGI_GetTVPtrIndex2( &tempbx , &tempcl , &tempch, pVBInfo ) ; /* bx, cl, ch */
9519 switch( tempbx )
9611 void XGI_GetTVPtrIndex2(unsigned short *tempbx, unsigned char *tempcl,
9614 *tempbx = 0 ;
9619 *tempbx = 1 ;
9622 *tempbx = 2 ;
9625 *tempbx = 3 ;
9629 *tempbx = 4 ;
9631 *tempbx = 5 ;
9638 *tempbx += 8 ;
9887 unsigned short tempbx ;
9889 tempbx = 0 ;
9892 tempbx = 0x08A0 ;
9906 unsigned short tempbx ;
9908 tempbx = 0 ;
9923 tempbx ,
9939 tempbx = pVBInfo->StandTable[StandTableIndex ].CRTC[ 6 ] ;
9950 tempbx = (unsigned short)pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[8];
9954 tempbx |= tempcx;
9959 tempbx |= 0x0100 ;
9962 tempbx |= 0x0200 ;
9972 tempbx++ ;
9973 pVBInfo->VGAVT = tempbx ;
9974 pVBInfo->VT = tempbx ;
10212 tempbx ;
10214 tempbx = ( ( pVBInfo->VGAVT - pVBInfo->VGAVDE ) * pVBInfo->RVBHCMAX ) & 0xFFFF ;
10216 tempax = ( tempax * pVBInfo->HT ) /tempbx ;
10234 unsigned short tempbx ;
10381 tempbx = 0 ;
10384 tempbx += 2 ;
10387 tempbx += 1 ;
10389 switch( tempbx )