Lines Matching defs:HwDeviceExtension

61                             PXGI_HW_DEVICE_INFO HwDeviceExtension,
76 PXGI_HW_DEVICE_INFO HwDeviceExtension,
78 USHORT XGI_GetRatePtrCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo, USHORT ModeIdIndex,
93 PXGI_HW_DEVICE_INFO HwDeviceExtension,
96 PXGI_HW_DEVICE_INFO HwDeviceExtension,
99 PXGI_HW_DEVICE_INFO HwDeviceExtension,
102 PXGI_HW_DEVICE_INFO HwDeviceExtension,
106 PXGI_HW_DEVICE_INFO HwDeviceExtension,
112 PXGI_HW_DEVICE_INFO HwDeviceExtension,
121 void XGI_EnableGatingCRT(PXGI_HW_DEVICE_INFO HwDeviceExtension,
123 void XGI_DisableGatingCRT(PXGI_HW_DEVICE_INFO HwDeviceExtension,
132 void XGI_DisplayOn(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo);
133 void XGI_DisplayOff(PXGI_HW_DEVICE_INFO HwDeviceExtension,PVB_DEVICE_INFO pVBInfo);
134 void XGI_SetCRT1Group(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
148 PXGI_HW_DEVICE_INFO HwDeviceExtension);
150 PXGI_HW_DEVICE_INFO HwDeviceExtension);
153 void XGI_SetCRT1DE(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
157 PXGI_HW_DEVICE_INFO HwDeviceExtension,
159 void XGI_SetCRT1FIFO(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension,
161 void XGI_SetCRT1ModeRegs(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
164 void XGI_SetVCLKState(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
169 PXGI_HW_DEVICE_INFO HwDeviceExtension,
177 PXGI_HW_DEVICE_INFO HwDeviceExtension,
181 void XGI_UpdateModeInfo(PXGI_HW_DEVICE_INFO HwDeviceExtension,
185 PXGI_HW_DEVICE_INFO HwDeviceExtension,
194 void XGI_DisableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension,
196 void XGI_EnableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension,
228 PXGI_HW_DEVICE_INFO HwDeviceExtension,
475 XGISetModeNew(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo,
483 /* PUCHAR pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress ; */
495 if ( HwDeviceExtension->jChipType == XG27 )
507 if ( HwDeviceExtension->jChipType < XG20 ) /* kuku 2004/06/25 */
511 InitTo330Pointer( HwDeviceExtension->jChipType, pVBInfo ) ;
522 if (HwDeviceExtension->jChipType < XG20) /* kuku 2004/06/25 1.Openkey */
523 XGI_UnLockCRT2(HwDeviceExtension, pVBInfo);
526 HwDeviceExtension->SpecialMode = FALSE;
540 (HwDeviceExtension->SpecifyTiming) )
542 switch (HwDeviceExtension->BPP)
545 HwDeviceExtension->SpecialMode = TRUE;
548 HwDeviceExtension->SpecialMode = TRUE;
551 HwDeviceExtension->SpecialMode = TRUE;
554 HwDeviceExtension->SpecialMode = TRUE;
562 if (HwDeviceExtension->SpecialMode)
568 if ( !(HwDeviceExtension->SpecifyTiming) )
573 if ( ( SpecialModeTiming[i].Horizontal_ACTIVE==HwDeviceExtension->Horizontal_ACTIVE ) &&
574 ( (SpecialModeTiming[i].Vertical_ACTIVE<<(SpecialModeTiming[i].Interlace&0x1))==HwDeviceExtension->Vertical_ACTIVE ) )
576 if ( ( ( SpecialModeTiming[i].FrameRate-HwDeviceExtension->Frequency ) < 2.0 ) ||
577 ( ( SpecialModeTiming[i].FrameRate-HwDeviceExtension->Frequency ) > -2.0 ) )
579 HwDeviceExtension->Horizontal_FP = SpecialModeTiming[i].Horizontal_FP;
580 HwDeviceExtension->Horizontal_SYNC = SpecialModeTiming[i].Horizontal_SYNC;
581 HwDeviceExtension->Horizontal_BP = SpecialModeTiming[i].Horizontal_BP;
582 HwDeviceExtension->Vertical_FP = SpecialModeTiming[i].Vertical_FP;
583 HwDeviceExtension->Vertical_SYNC = SpecialModeTiming[i].Vertical_SYNC;
584 HwDeviceExtension->Vertical_BP = SpecialModeTiming[i].Vertical_BP;
585 HwDeviceExtension->DCLK = SpecialModeTiming[i].DCLK;
586 HwDeviceExtension->Interlace = SpecialModeTiming[i].Interlace & 0x1;
602 if (HwDeviceExtension->jChipType < XG20) { /* kuku 2004/06/25 */
604 XGI_GetVBInfo(ModeNo, ModeIdIndex, HwDeviceExtension, pVBInfo);
614 if (HwDeviceExtension->SpecialMode)
620 XGI_DisableBridge(HwDeviceExtension, pVBInfo);
624 XGI_SetCRT1Group(HwDeviceExtension, ModeNo, ModeIdIndex, pVBInfo);
627 XGI_SetLCDAGroup(ModeNo, ModeIdIndex, HwDeviceExtension,
633 XGI_SetCRT1Group(HwDeviceExtension, ModeNo, ModeIdIndex,
636 XGI_SetLCDAGroup(ModeNo, ModeIdIndex, HwDeviceExtension,
644 switch (HwDeviceExtension->ujVBChipID) {
647 XGI_SetCRT2Group301(ModeNo, HwDeviceExtension, pVBInfo); /*add for CRT2 */
651 XGI_SetCRT2Group301(ModeNo, HwDeviceExtension, pVBInfo); /*add for CRT2 */
660 XGI_SetCRT2ModeRegs(ModeNo, HwDeviceExtension, pVBInfo);
662 XGI_EnableBridge(HwDeviceExtension, pVBInfo);
699 XGI_DisplayOff(HwDeviceExtension,pVBInfo);
702 XGI_SetCRT1Group(HwDeviceExtension, ModeNo, ModeIdIndex, pVBInfo);
706 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
723 temp = XGINew_CheckMemorySize( HwDeviceExtension , ModeNo , ModeIdIndex, pVBInfo ) ;
728 XGI_DisplayOff( HwDeviceExtension,pVBInfo) ;
729 XGI_SetCRT1Group( HwDeviceExtension , ModeNo , ModeIdIndex, pVBInfo ) ;
730 XGI_DisplayOn( HwDeviceExtension, pVBInfo) ;
734 XGI_UpdateModeInfo(HwDeviceExtension, pVBInfo);
737 if (HwDeviceExtension->jChipType < XG20) /* kuku 2004/06/25 */
738 XGI_LockCRT2(HwDeviceExtension, pVBInfo);
1083 XGI_SetCRT1Group(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
1112 /* if ( HwDeviceExtension->jChipType == XG27 ) */
1113 if ( HwDeviceExtension->jChipType >= XG20 )
1138 RefreshRateTableIndex = XGI_GetRatePtrCRT2(HwDeviceExtension, ModeNo, ModeIdIndex, pVBInfo);
1145 HwDeviceExtension);
1146 XGI_SetCRT1DE(HwDeviceExtension, ModeNo, ModeIdIndex,
1149 HwDeviceExtension, pVBInfo);
1150 XGI_SetCRT1VCLK(ModeNo, ModeIdIndex, HwDeviceExtension,
1157 /* if (HwDeviceExtension->jChipType == XG20) { */
1158 if ( ( HwDeviceExtension->jChipType >= XG20 ) &&
1159 ( HwDeviceExtension->jChipType < XG27 ) ) /* fix H/W DCLK/2 bug */
1176 if ( HwDeviceExtension->jChipType >= XG21 )
1188 if ( HwDeviceExtension->jChipType == XG27 )
1197 if ( HwDeviceExtension->jChipType == XG27 )
1206 if ( HwDeviceExtension->jChipType == XG27 )
1218 XGI_SetCRT1FIFO(ModeNo, HwDeviceExtension, pVBInfo);
1219 XGI_SetCRT1ModeRegs(HwDeviceExtension, ModeNo, ModeIdIndex,
1222 if ( HwDeviceExtension->SpecialMode )
1224 XGI_SetCRTTiming( HwDeviceExtension, pVBInfo );
1229 if (HwDeviceExtension->jChipType == XG40) { /* Copy reg settings to 2nd chip */
1231 SetDualChipRegs(HwDeviceExtension, pVBInfo);
1469 XGI_GetRatePtrCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo, USHORT ModeIdIndex, PVB_DEVICE_INFO pVBInfo)
1527 if ( HwDeviceExtension->jChipType >= XG20 ) /* for XG20, XG21, XG27 */
1774 PXGI_HW_DEVICE_INFO HwDeviceExtension)
1797 XGI_SetCRT1Timing_H(pVBInfo, HwDeviceExtension);
1817 PXGI_HW_DEVICE_INFO HwDeviceExtension)
1851 if (HwDeviceExtension->jChipType >= XG20) {
2410 XGI_SetCRT1DE(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
2541 PXGI_HW_DEVICE_INFO HwDeviceExtension,
2616 if (HwDeviceExtension->jChipType >= XG20)
2632 PXGI_HW_DEVICE_INFO HwDeviceExtension,
2668 if ((HwDeviceExtension->jChipType >= XG20)
2702 XGI_SetCRT1FIFO(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension,
2727 if (HwDeviceExtension->jChipType == XG27)
2744 if (HwDeviceExtension->jChipType == XG21)
2759 XGI_SetCRT1ModeRegs(PXGI_HW_DEVICE_INFO HwDeviceExtension,
2840 XGI_SetVCLKState(HwDeviceExtension, ModeNo, RefreshRateTableIndex,
2846 if (HwDeviceExtension->jChipType == XG27 )
2855 else if (HwDeviceExtension->jChipType >= XG20)
2882 XGI_SetVCLKState(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
2904 if (HwDeviceExtension->jChipType >= XG20)
2910 if (HwDeviceExtension->jChipType < XG20) {
2933 if (HwDeviceExtension->jChipType >= XG27 )
3092 PXGI_HW_DEVICE_INFO HwDeviceExtension,
3101 RefreshRateTableIndex = XGI_GetRatePtrCRT2(HwDeviceExtension, ModeNo, ModeIdIndex, pVBInfo);
3105 HwDeviceExtension, pVBInfo);
3206 PXGI_HW_DEVICE_INFO HwDeviceExtension,
3238 XGI_SetCRT1Timing_H(pVBInfo, HwDeviceExtension);
3563 XGI_UpdateModeInfo(PXGI_HW_DEVICE_INFO HwDeviceExtension,
3579 if ((HwDeviceExtension->jChipType >= XG20)
3580 || (HwDeviceExtension->jChipType >= XG40))
3714 PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
3885 if ((HwDeviceExtension->jChipType >= XG40)
3886 && (HwDeviceExtension->jChipType <= XG45)) {
4188 XGINew_CheckMemorySize(PXGI_HW_DEVICE_INFO HwDeviceExtension, USHORT ModeNo,
4209 if (HwDeviceExtension->jChipType == XG40) {
4218 else if (HwDeviceExtension->jChipType == XG42) {
4224 else if (HwDeviceExtension->jChipType == XG45) {
4252 XGI_DisplayOn(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
4257 if ( HwDeviceExtension->jChipType == XG21 )
4281 if ( HwDeviceExtension->jChipType == XG27 )
4313 XGI_DisplayOff(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
4318 if ( HwDeviceExtension->jChipType == XG21 )
4332 if ( HwDeviceExtension->jChipType == XG27 )
4516 SetDualChipRegs(PXGI_HW_DEVICE_INFO HwDeviceExtension,
4521 USHORT BaseAddr2nd = (USHORT) (ULONG) HwDeviceExtension->pj2ndIOAddress;
4523 USHORT BaseAddr2nd = (USHORT) HwDeviceExtension->pj2ndIOAddress;
4530 pVBInfo->BaseAddr = (USHORT) HwDeviceExtension->pjIOAddress;
4566 XGI_SetCRT2Group301(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension,
4581 RefreshRateTableIndex = XGI_GetRatePtrCRT2(HwDeviceExtension, ModeNo, ModeIdIndex, pVBInfo);
4585 XGI_PreSetGroup1(ModeNo, ModeIdIndex, HwDeviceExtension,
4587 XGI_SetGroup1(ModeNo, ModeIdIndex, HwDeviceExtension,
4589 XGI_SetLockRegs(ModeNo, ModeIdIndex, HwDeviceExtension,
4592 HwDeviceExtension, pVBInfo);
4593 XGI_SetLCDRegs(ModeNo, ModeIdIndex, HwDeviceExtension,
4598 HwDeviceExtension, pVBInfo);
5108 PXGI_HW_DEVICE_INFO HwDeviceExtension,
5120 HwDeviceExtension, pVBInfo);
5138 PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
5208 PXGI_HW_DEVICE_INFO HwDeviceExtension,
5223 HwDeviceExtension, pVBInfo);
5243 PXGI_HW_DEVICE_INFO HwDeviceExtension,
5405 PXGI_HW_DEVICE_INFO HwDeviceExtension,
5793 PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
6282 PXGI_HW_DEVICE_INFO HwDeviceExtension,
6692 PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
7661 XGI_EnableGatingCRT(PXGI_HW_DEVICE_INFO HwDeviceExtension,
7675 XGI_DisableGatingCRT(PXGI_HW_DEVICE_INFO HwDeviceExtension,
8634 XGI_EnableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension,
8646 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
8654 if (HwDeviceExtension->jChipType < XG40) {
8768 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
8775 XGI_DisableGatingCRT(HwDeviceExtension, pVBInfo);
8776 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
8793 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
8797 if (HwDeviceExtension->jChipType < XG40) {
8834 XGI_DisableBridge(PXGI_HW_DEVICE_INFO HwDeviceExtension,
8843 if (HwDeviceExtension->jChipType < XG40) {
8902 XGI_EnableGatingCRT(HwDeviceExtension, pVBInfo);
8903 XGI_DisplayOff(HwDeviceExtension, pVBInfo);
8945 XGI_DisplayOff(HwDeviceExtension,pVBInfo);
8951 if (HwDeviceExtension->jChipType < XG40) {
9516 XGI_SetCRT2ModeRegs(USHORT ModeNo, PXGI_HW_DEVICE_INFO HwDeviceExtension,
9841 XGI_UnLockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
9856 XGI_LockCRT2(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
10158 void XGIInitMiscVBInfo(PXGI_HW_DEVICE_INFO HwDeviceExtension, PVB_DEVICE_INFO pVBInfo)
10161 pVBInfo->ROMAddr = HwDeviceExtension->pjVirtualRomBase ;
10162 pVBInfo->BaseAddr = ( ULONG )HwDeviceExtension->pjIOAddress ;
10195 if ( HwDeviceExtension->jChipType >= XG20 ) /* kuku 2004/06/25 */
10201 else if ( HwDeviceExtension->jChipType >= XG40 )
10214 if ( HwDeviceExtension->jChipType == XG21 ) /* for x86 Linux, XG21 LVDS */
10224 /* HwDeviceExtension->bCH7007 = 1; */
10226 /* if( HwDeviceExtension->pDevice == NULL ) */
10228 HwDeviceExtension->pDevice= HwDeviceExtension;
10233 if ( HwDeviceExtension->jChipType == XG27 )