SiS_Pr 2276 drivers/usb/misc/sisusbvga/sisusb.c if (!sisusb->SiS_Pr) SiS_Pr 2279 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->IOAddress = SISUSB_PCI_IOPORTBASE + 0x30; SiS_Pr 2280 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->sisusb = (void *)sisusb; SiS_Pr 2283 drivers/usb/misc/sisusbvga/sisusb.c SiSUSBSetMode(sisusb->SiS_Pr, 0x03); SiS_Pr 2450 drivers/usb/misc/sisusbvga/sisusb.c kfree(sisusb->SiS_Pr); SiS_Pr 2847 drivers/usb/misc/sisusbvga/sisusb.c if (!sisusb->gfxinit || !sisusb->SiS_Pr) SiS_Pr 2864 drivers/usb/misc/sisusbvga/sisusb.c if (!sisusb->gfxinit || !sisusb->SiS_Pr) SiS_Pr 2869 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->IOAddress = SISUSB_PCI_IOPORTBASE + 0x30; SiS_Pr 2870 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->sisusb = (void *)sisusb; SiS_Pr 2872 drivers/usb/misc/sisusbvga/sisusb.c if (SiSUSBSetMode(sisusb->SiS_Pr, y->data3)) SiS_Pr 2879 drivers/usb/misc/sisusbvga/sisusb.c if (!sisusb->gfxinit || !sisusb->SiS_Pr) SiS_Pr 2884 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->IOAddress = SISUSB_PCI_IOPORTBASE + 0x30; SiS_Pr 2885 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr->sisusb = (void *)sisusb; SiS_Pr 2887 drivers/usb/misc/sisusbvga/sisusb.c if (SiSUSBSetVESAMode(sisusb->SiS_Pr, y->data3)) SiS_Pr 3095 drivers/usb/misc/sisusbvga/sisusb.c sisusb->SiS_Pr = kmalloc(sizeof(struct SiS_Private), GFP_KERNEL); SiS_Pr 3096 drivers/usb/misc/sisusbvga/sisusb.c if (!sisusb->SiS_Pr) { SiS_Pr 130 drivers/usb/misc/sisusbvga/sisusb.h struct SiS_Private *SiS_Pr; SiS_Pr 1390 drivers/usb/misc/sisusbvga/sisusb_con.c if (sisusb->haveconsole || !sisusb->SiS_Pr) { SiS_Pr 53 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiSUSB_InitPtr(struct SiS_Private *SiS_Pr) SiS_Pr 55 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_ModeResInfo = SiSUSB_ModeResInfo; SiS_Pr 56 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_StandTable = SiSUSB_StandTable; SiS_Pr 58 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_SModeIDTable = SiSUSB_SModeIDTable; SiS_Pr 59 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_EModeIDTable = SiSUSB_EModeIDTable; SiS_Pr 60 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_RefIndex = SiSUSB_RefIndex; SiS_Pr 61 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Table = SiSUSB_CRT1Table; SiS_Pr 63 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_VCLKData = SiSUSB_VCLKData; SiS_Pr 71 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(struct SiS_Private *SiS_Pr, unsigned long port, SiS_Pr 74 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_setidxreg(SiS_Pr->sisusb, port, index, data); SiS_Pr 78 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(struct SiS_Private *SiS_Pr, unsigned long port, SiS_Pr 81 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_setreg(SiS_Pr->sisusb, port, data); SiS_Pr 85 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetReg(struct SiS_Private *SiS_Pr, unsigned long port, unsigned short index) SiS_Pr 89 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_getidxreg(SiS_Pr->sisusb, port, index, &data); SiS_Pr 95 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRegByte(struct SiS_Private *SiS_Pr, unsigned long port) SiS_Pr 99 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_getreg(SiS_Pr->sisusb, port, &data); SiS_Pr 105 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(struct SiS_Private *SiS_Pr, unsigned long port, SiS_Pr 109 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_setidxregandor(SiS_Pr->sisusb, port, index, DataAND, DataOR); SiS_Pr 113 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(struct SiS_Private *SiS_Pr, unsigned long port, SiS_Pr 116 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_setidxregand(SiS_Pr->sisusb, port, index, DataAND); SiS_Pr 120 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegOR(struct SiS_Private *SiS_Pr, unsigned long port, SiS_Pr 123 drivers/usb/misc/sisusbvga/sisusb_init.c sisusb_setidxregor(SiS_Pr->sisusb, port, index, DataOR); SiS_Pr 130 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_DisplayOn(struct SiS_Private *SiS_Pr) SiS_Pr 132 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x01, 0xDF); SiS_Pr 139 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiSUSBRegInit(struct SiS_Private *SiS_Pr, unsigned long BaseAddr) SiS_Pr 141 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c4 = BaseAddr + 0x14; SiS_Pr 142 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3d4 = BaseAddr + 0x24; SiS_Pr 143 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c0 = BaseAddr + 0x10; SiS_Pr 144 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3ce = BaseAddr + 0x1e; SiS_Pr 145 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c2 = BaseAddr + 0x12; SiS_Pr 146 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3ca = BaseAddr + 0x1a; SiS_Pr 147 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c6 = BaseAddr + 0x16; SiS_Pr 148 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c7 = BaseAddr + 0x17; SiS_Pr 149 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c8 = BaseAddr + 0x18; SiS_Pr 150 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3c9 = BaseAddr + 0x19; SiS_Pr 151 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3cb = BaseAddr + 0x1b; SiS_Pr 152 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3cc = BaseAddr + 0x1c; SiS_Pr 153 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3cd = BaseAddr + 0x1d; SiS_Pr 154 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_P3da = BaseAddr + 0x2a; SiS_Pr 155 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_Part1Port = BaseAddr + SIS_CRT2_PORT_04; SiS_Pr 162 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_GetSysFlags(struct SiS_Private *SiS_Pr) SiS_Pr 164 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_MyCR63 = 0x63; SiS_Pr 171 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiSInitPCIetc(struct SiS_Private *SiS_Pr) SiS_Pr 173 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x20, 0xa1); SiS_Pr 180 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x1E, 0xDA); SiS_Pr 187 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_SetSegRegLower(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 192 drivers/usb/misc/sisusbvga/sisusb_init.c temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb) & 0xf0; SiS_Pr 194 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb, temp); SiS_Pr 195 drivers/usb/misc/sisusbvga/sisusb_init.c temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd) & 0xf0; SiS_Pr 197 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd, temp); SiS_Pr 200 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_SetSegRegUpper(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 205 drivers/usb/misc/sisusbvga/sisusb_init.c temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb) & 0x0f; SiS_Pr 207 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb, temp); SiS_Pr 208 drivers/usb/misc/sisusbvga/sisusb_init.c temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd) & 0x0f; SiS_Pr 210 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd, temp); SiS_Pr 213 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_SetSegmentReg(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 215 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegRegLower(SiS_Pr, value); SiS_Pr 216 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegRegUpper(SiS_Pr, value); SiS_Pr 219 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_ResetSegmentReg(struct SiS_Private *SiS_Pr) SiS_Pr 221 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegmentReg(SiS_Pr, 0); SiS_Pr 225 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegmentRegOver(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 231 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x1d, temp); SiS_Pr 232 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegmentReg(SiS_Pr, value); SiS_Pr 235 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_ResetSegmentRegOver(struct SiS_Private *SiS_Pr) SiS_Pr 237 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSegmentRegOver(SiS_Pr, 0); SiS_Pr 240 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_ResetSegmentRegisters(struct SiS_Private *SiS_Pr) SiS_Pr 242 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_ResetSegmentReg(SiS_Pr); SiS_Pr 243 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_ResetSegmentRegOver(SiS_Pr); SiS_Pr 251 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, SiS_Pr 265 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_EModeIDTable[*ModeIdIndex].Ext_ModeID == SiS_Pr 269 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_EModeIDTable[*ModeIdIndex].Ext_ModeID == SiS_Pr 283 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_HandleCRT1(struct SiS_Private *SiS_Pr) SiS_Pr 286 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3d4, SiS_Pr->SiS_MyCR63, 0xbf); SiS_Pr 294 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 302 drivers/usb/misc/sisusbvga/sisusb_init.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 304 drivers/usb/misc/sisusbvga/sisusb_init.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 318 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 323 drivers/usb/misc/sisusbvga/sisusb_init.c infoflag = SiS_Pr->SiS_RefIndex[rrti].Ext_InfoFlag; SiS_Pr 324 drivers/usb/misc/sisusbvga/sisusb_init.c xres = SiS_Pr->SiS_RefIndex[rrti].XRes; SiS_Pr 326 drivers/usb/misc/sisusbvga/sisusb_init.c colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 346 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSeqRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 351 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x00, 0x03); SiS_Pr 353 drivers/usb/misc/sisusbvga/sisusb_init.c SRdata = SiS_Pr->SiS_StandTable[StandTableIndex].SR[0] | 0x20; SiS_Pr 354 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x01, SRdata); SiS_Pr 357 drivers/usb/misc/sisusbvga/sisusb_init.c SRdata = SiS_Pr->SiS_StandTable[StandTableIndex].SR[i - 1]; SiS_Pr 358 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, i, SRdata); SiS_Pr 367 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetMiscRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 369 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned char Miscdata = SiS_Pr->SiS_StandTable[StandTableIndex].MISC; SiS_Pr 371 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c2, Miscdata); SiS_Pr 379 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRTCRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 384 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3d4, 0x11, 0x7f); SiS_Pr 387 drivers/usb/misc/sisusbvga/sisusb_init.c CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_Pr 388 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, i, CRTCdata); SiS_Pr 397 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetATTRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 403 drivers/usb/misc/sisusbvga/sisusb_init.c ARdata = SiS_Pr->SiS_StandTable[StandTableIndex].ATTR[i]; SiS_Pr 404 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3da); SiS_Pr 405 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c0, i); SiS_Pr 406 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c0, ARdata); SiS_Pr 408 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3da); SiS_Pr 409 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c0, 0x14); SiS_Pr 410 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c0, 0x00); SiS_Pr 412 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3da); SiS_Pr 413 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c0, 0x20); SiS_Pr 414 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3da); SiS_Pr 422 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetGRCRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 428 drivers/usb/misc/sisusbvga/sisusb_init.c GRdata = SiS_Pr->SiS_StandTable[StandTableIndex].GRC[i]; SiS_Pr 429 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3ce, i, GRdata); SiS_Pr 432 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 434 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3ce, 0x05, 0xBF); SiS_Pr 442 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 447 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, i, 0x00); SiS_Pr 450 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x37, 0xFE); SiS_Pr 458 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 466 drivers/usb/misc/sisusbvga/sisusb_init.c index = SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x33) & 0x0F; SiS_Pr 470 drivers/usb/misc/sisusbvga/sisusb_init.c rrti = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; SiS_Pr 471 drivers/usb/misc/sisusbvga/sisusb_init.c ModeNo = SiS_Pr->SiS_RefIndex[rrti].ModeID; SiS_Pr 475 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_RefIndex[rrti + i].ModeID != ModeNo) SiS_Pr 479 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_RefIndex[rrti + i].Ext_InfoFlag & ModeTypeMask; SiS_Pr 480 drivers/usb/misc/sisusbvga/sisusb_init.c if (temp < SiS_Pr->SiS_ModeType) SiS_Pr 496 drivers/usb/misc/sisusbvga/sisusb_init.c static void SiS_SetCRT1Sync(struct SiS_Private *SiS_Pr, unsigned short rrti) SiS_Pr 498 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short sync = SiS_Pr->SiS_RefIndex[rrti].Ext_InfoFlag >> 8; SiS_Pr 501 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c2, sync); SiS_Pr 509 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 515 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3d4, 0x11, 0x7f); SiS_Pr 517 drivers/usb/misc/sisusbvga/sisusb_init.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 519 drivers/usb/misc/sisusbvga/sisusb_init.c index = SiS_Pr->SiS_RefIndex[rrti].Ext_CRT1CRTC; SiS_Pr 522 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, SiS_Pr 523 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Table[index].CR[i]); SiS_Pr 526 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, SiS_Pr 527 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Table[index].CR[i]); SiS_Pr 530 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, j, SiS_Pr 531 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Table[index].CR[i]); SiS_Pr 534 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, j, SiS_Pr 535 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Table[index].CR[i]); SiS_Pr 538 drivers/usb/misc/sisusbvga/sisusb_init.c temp = SiS_Pr->SiS_CRT1Table[index].CR[16] & 0xE0; SiS_Pr 539 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0E, temp); SiS_Pr 541 drivers/usb/misc/sisusbvga/sisusb_init.c temp = ((SiS_Pr->SiS_CRT1Table[index].CR[16]) & 0x01) << 5; SiS_Pr 544 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3d4, 0x09, 0x5F, temp); SiS_Pr 546 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_ModeType > ModeVGA) SiS_Pr 547 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x14, 0x4F); SiS_Pr 557 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 560 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short du = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, rrti); SiS_Pr 561 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short infoflag = SiS_Pr->SiS_RefIndex[rrti].Ext_InfoFlag; SiS_Pr 565 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0E, 0xF0, temp); SiS_Pr 567 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x13, (du & 0xFF)); SiS_Pr 577 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x10, temp); SiS_Pr 585 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 588 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short index = SiS_Pr->SiS_RefIndex[rrti].Ext_CRTVCLK; SiS_Pr 589 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short clka = SiS_Pr->SiS_VCLKData[index].SR2B; SiS_Pr 590 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short clkb = SiS_Pr->SiS_VCLKData[index].SR2C; SiS_Pr 592 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x31, 0xCF); SiS_Pr 594 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x2B, clka); SiS_Pr 595 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x2C, clkb); SiS_Pr 596 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x2D, 0x01); SiS_Pr 604 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 607 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short modeflag = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; SiS_Pr 610 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x3D, 0xFE); SiS_Pr 612 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x08, 0xAE); SiS_Pr 613 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x09, 0xF0); SiS_Pr 619 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x08, 0x34); SiS_Pr 620 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x3D, 0x01); SiS_Pr 629 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 635 drivers/usb/misc/sisusbvga/sisusb_init.c index = SiS_Pr->SiS_RefIndex[rrti].Ext_CRTVCLK; SiS_Pr 636 drivers/usb/misc/sisusbvga/sisusb_init.c VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 641 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x32, 0xf3, data); SiS_Pr 644 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x1f, 0xe7); SiS_Pr 655 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x07, 0xF8, data); SiS_Pr 659 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 665 drivers/usb/misc/sisusbvga/sisusb_init.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 667 drivers/usb/misc/sisusbvga/sisusb_init.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 668 drivers/usb/misc/sisusbvga/sisusb_init.c infoflag = SiS_Pr->SiS_RefIndex[rrti].Ext_InfoFlag; SiS_Pr 672 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x1F, 0x3F); SiS_Pr 676 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_ModeType > ModeEGA) { SiS_Pr 678 drivers/usb/misc/sisusbvga/sisusb_init.c data |= ((SiS_Pr->SiS_ModeType - ModeVGA) << 2); SiS_Pr 683 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x06, 0xC0, data); SiS_Pr 689 drivers/usb/misc/sisusbvga/sisusb_init.c (SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x04) | SiS_Pr 690 drivers/usb/misc/sisusbvga/sisusb_init.c ((SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0b) & 0xc0) << 2)) SiS_Pr 693 drivers/usb/misc/sisusbvga/sisusb_init.c (SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x00) | SiS_Pr 694 drivers/usb/misc/sisusbvga/sisusb_init.c ((SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0b) & 0x03) << 8)) SiS_Pr 698 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x19, (data & 0xFF)); SiS_Pr 699 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3d4, 0x1a, 0xFC, (data >> 8)); SiS_Pr 702 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x01, 0x08); SiS_Pr 707 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0F, 0xB7, data); SiS_Pr 709 drivers/usb/misc/sisusbvga/sisusb_init.c if ((SiS_Pr->SiS_ModeType == ModeEGA) && (ModeNo > 0x13)) SiS_Pr 710 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x0F, 0x40); SiS_Pr 712 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegAND(SiS_Pr, SiS_Pr->SiS_P3c4, 0x31, 0xfb); SiS_Pr 715 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_ModeType != ModeText) { SiS_Pr 717 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_ModeType != ModeEGA) SiS_Pr 720 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegANDOR(SiS_Pr, SiS_Pr->SiS_P3c4, 0x21, 0x1F, data); SiS_Pr 722 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetVCLKState(SiS_Pr, ModeNo, rrti); SiS_Pr 724 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_GetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x31) & 0x40) SiS_Pr 725 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x52, 0x2c); SiS_Pr 727 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x52, 0x6c); SiS_Pr 735 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_WriteDAC(struct SiS_Private *SiS_Pr, unsigned long DACData, SiS_Pr 757 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACData, (d1 << shiftflag)); SiS_Pr 758 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACData, (d2 << shiftflag)); SiS_Pr 759 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACData, (d3 << shiftflag)); SiS_Pr 763 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 772 drivers/usb/misc/sisusbvga/sisusb_init.c data = SiS_Pr->SiS_SModeIDTable[mi].St_ModeFlag; SiS_Pr 774 drivers/usb/misc/sisusbvga/sisusb_init.c data = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; SiS_Pr 791 drivers/usb/misc/sisusbvga/sisusb_init.c DACAddr = SiS_Pr->SiS_P3c8; SiS_Pr 792 drivers/usb/misc/sisusbvga/sisusb_init.c DACData = SiS_Pr->SiS_P3c9; SiS_Pr 794 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c6, 0xFF); SiS_Pr 796 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACAddr, 0x00); SiS_Pr 806 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACData, (data2 << sf)); SiS_Pr 815 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, DACData, data); SiS_Pr 823 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_WriteDAC(SiS_Pr, DACData, sf, n, SiS_Pr 830 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_WriteDAC(SiS_Pr, DACData, sf, n, SiS_Pr 846 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 851 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_CRT1Mode = ModeNo; SiS_Pr 858 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_ResetSegmentRegisters(SiS_Pr); SiS_Pr 859 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetSeqRegs(SiS_Pr, StandTableIndex); SiS_Pr 860 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetMiscRegs(SiS_Pr, StandTableIndex); SiS_Pr 861 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRTCRegs(SiS_Pr, StandTableIndex); SiS_Pr 862 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetATTRegs(SiS_Pr, StandTableIndex); SiS_Pr 863 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetGRCRegs(SiS_Pr, StandTableIndex); SiS_Pr 864 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_ClearExt1Regs(SiS_Pr, ModeNo); SiS_Pr 866 drivers/usb/misc/sisusbvga/sisusb_init.c rrti = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 869 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1Sync(SiS_Pr, rrti); SiS_Pr 870 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, rrti); SiS_Pr 871 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, rrti); SiS_Pr 872 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1VCLK(SiS_Pr, ModeNo, rrti); SiS_Pr 875 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 877 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, rrti); SiS_Pr 879 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 881 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_DisplayOn(SiS_Pr); SiS_Pr 888 drivers/usb/misc/sisusbvga/sisusb_init.c int SiSUSBSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 891 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned long BaseAddr = SiS_Pr->IOAddress; SiS_Pr 893 drivers/usb/misc/sisusbvga/sisusb_init.c SiSUSB_InitPtr(SiS_Pr); SiS_Pr 894 drivers/usb/misc/sisusbvga/sisusb_init.c SiSUSBRegInit(SiS_Pr, BaseAddr); SiS_Pr 895 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_GetSysFlags(SiS_Pr); SiS_Pr 897 drivers/usb/misc/sisusbvga/sisusb_init.c if (!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) SiS_Pr 900 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3c4, 0x05, 0x86); SiS_Pr 902 drivers/usb/misc/sisusbvga/sisusb_init.c SiSInitPCIetc(SiS_Pr); SiS_Pr 906 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_ModeType = SiS_Pr 907 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag & ModeTypeMask; SiS_Pr 909 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_Pr->SiS_SetFlag = LowModeTests; SiS_Pr 912 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 914 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_HandleCRT1(SiS_Pr); SiS_Pr 916 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_DisplayOn(SiS_Pr); SiS_Pr 917 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3c6, 0xFF); SiS_Pr 920 drivers/usb/misc/sisusbvga/sisusb_init.c SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x34, ModeNo); SiS_Pr 925 drivers/usb/misc/sisusbvga/sisusb_init.c int SiSUSBSetVESAMode(struct SiS_Private *SiS_Pr, unsigned short VModeNo) SiS_Pr 930 drivers/usb/misc/sisusbvga/sisusb_init.c SiSUSB_InitPtr(SiS_Pr); SiS_Pr 941 drivers/usb/misc/sisusbvga/sisusb_init.c if (SiS_Pr->SiS_EModeIDTable[i].Ext_VESAID == VModeNo) { SiS_Pr 942 drivers/usb/misc/sisusbvga/sisusb_init.c ModeNo = SiS_Pr->SiS_EModeIDTable[i].Ext_ModeID; SiS_Pr 946 drivers/usb/misc/sisusbvga/sisusb_init.c } while (SiS_Pr->SiS_EModeIDTable[i++].Ext_ModeID != 0xff); SiS_Pr 953 drivers/usb/misc/sisusbvga/sisusb_init.c return SiSUSBSetMode(SiS_Pr, ModeNo); SiS_Pr 812 drivers/usb/misc/sisusbvga/sisusb_init.h int SiSUSBSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); SiS_Pr 813 drivers/usb/misc/sisusbvga/sisusb_init.h int SiSUSBSetVESAMode(struct SiS_Private *SiS_Pr, unsigned short VModeNo); SiS_Pr 79 drivers/video/fbdev/sis/init.c InitCommonPointer(struct SiS_Private *SiS_Pr) SiS_Pr 81 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SModeIDTable = SiS_SModeIDTable; SiS_Pr 82 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StResInfo = SiS_StResInfo; SiS_Pr 83 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ModeResInfo = SiS_ModeResInfo; SiS_Pr 84 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StandTable = SiS_StandTable; SiS_Pr 86 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_NTSCTiming = SiS_NTSCTiming; SiS_Pr 87 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PALTiming = SiS_PALTiming; SiS_Pr 88 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVSt1Timing = SiS_HiTVSt1Timing; SiS_Pr 89 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVSt2Timing = SiS_HiTVSt2Timing; SiS_Pr 91 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVExtTiming = SiS_HiTVExtTiming; SiS_Pr 92 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVGroup3Data = SiS_HiTVGroup3Data; SiS_Pr 93 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVGroup3Simu = SiS_HiTVGroup3Simu; SiS_Pr 95 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVTextTiming = SiS_HiTVTextTiming; SiS_Pr 96 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_HiTVGroup3Text = SiS_HiTVGroup3Text; SiS_Pr 99 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StPALData = SiS_StPALData; SiS_Pr 100 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtPALData = SiS_ExtPALData; SiS_Pr 101 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StNTSCData = SiS_StNTSCData; SiS_Pr 102 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtNTSCData = SiS_ExtNTSCData; SiS_Pr 103 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St1HiTVData = SiS_StHiTVData; SiS_Pr 104 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St2HiTVData = SiS_St2HiTVData; SiS_Pr 105 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtHiTVData = SiS_ExtHiTVData; SiS_Pr 106 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St525iData = SiS_StNTSCData; SiS_Pr 107 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St525pData = SiS_St525pData; SiS_Pr 108 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St750pData = SiS_St750pData; SiS_Pr 109 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Ext525iData = SiS_ExtNTSCData; SiS_Pr 110 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Ext525pData = SiS_ExtNTSCData; SiS_Pr 111 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Ext750pData = SiS_Ext750pData; SiS_Pr 113 drivers/video/fbdev/sis/init.c SiS_Pr->pSiS_OutputSelect = &SiS_OutputSelect; SiS_Pr 114 drivers/video/fbdev/sis/init.c SiS_Pr->pSiS_SoftSetting = &SiS_SoftSetting; SiS_Pr 116 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1280x720Data = SiS_LCD1280x720Data; SiS_Pr 117 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StLCD1280x768_2Data = SiS_StLCD1280x768_2Data; SiS_Pr 118 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1280x768_2Data = SiS_ExtLCD1280x768_2Data; SiS_Pr 119 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1280x800Data = SiS_LCD1280x800Data; SiS_Pr 120 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1280x800_2Data = SiS_LCD1280x800_2Data; SiS_Pr 121 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1280x854Data = SiS_LCD1280x854Data; SiS_Pr 122 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1280x960Data = SiS_LCD1280x960Data; SiS_Pr 123 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StLCD1400x1050Data = SiS_StLCD1400x1050Data; SiS_Pr 124 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1400x1050Data = SiS_ExtLCD1400x1050Data; SiS_Pr 125 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LCD1680x1050Data = SiS_LCD1680x1050Data; SiS_Pr 126 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_StLCD1600x1200Data = SiS_StLCD1600x1200Data; SiS_Pr 127 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1600x1200Data = SiS_ExtLCD1600x1200Data; SiS_Pr 128 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_NoScaleData = SiS_NoScaleData; SiS_Pr 130 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS320x240Data_1 = SiS_LVDS320x240Data_1; SiS_Pr 131 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS320x240Data_2 = SiS_LVDS320x240Data_2; SiS_Pr 132 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS640x480Data_1 = SiS_LVDS640x480Data_1; SiS_Pr 133 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS800x600Data_1 = SiS_LVDS800x600Data_1; SiS_Pr 134 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS1024x600Data_1 = SiS_LVDS1024x600Data_1; SiS_Pr 135 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS1024x768Data_1 = SiS_LVDS1024x768Data_1; SiS_Pr 137 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1320x240_1 = SiS_LVDSCRT1320x240_1; SiS_Pr 138 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1320x240_2 = SiS_LVDSCRT1320x240_2; SiS_Pr 139 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1320x240_2_H = SiS_LVDSCRT1320x240_2_H; SiS_Pr 140 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1320x240_3 = SiS_LVDSCRT1320x240_3; SiS_Pr 141 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1320x240_3_H = SiS_LVDSCRT1320x240_3_H; SiS_Pr 142 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1640x480_1 = SiS_LVDSCRT1640x480_1; SiS_Pr 143 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT1640x480_1_H = SiS_LVDSCRT1640x480_1_H; SiS_Pr 145 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT11024x600_1 = SiS_LVDSCRT11024x600_1; SiS_Pr 146 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT11024x600_1_H = SiS_LVDSCRT11024x600_1_H; SiS_Pr 147 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT11024x600_2 = SiS_LVDSCRT11024x600_2; SiS_Pr 148 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSCRT11024x600_2_H = SiS_LVDSCRT11024x600_2_H; SiS_Pr 151 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUNTSCData = SiS_CHTVUNTSCData; SiS_Pr 152 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVONTSCData = SiS_CHTVONTSCData; SiS_Pr 154 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelMinLVDS = Panel_800x600; /* lowest value LVDS/LCDA */ SiS_Pr 155 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelMin301 = Panel_1024x768; /* lowest value 301 */ SiS_Pr 161 drivers/video/fbdev/sis/init.c InitTo300Pointer(struct SiS_Private *SiS_Pr) SiS_Pr 163 drivers/video/fbdev/sis/init.c InitCommonPointer(SiS_Pr); SiS_Pr 165 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBModeIDTable = SiS300_VBModeIDTable; SiS_Pr 166 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_EModeIDTable = SiS300_EModeIDTable; SiS_Pr 167 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_RefIndex = SiS300_RefIndex; SiS_Pr 168 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT1Table = SiS300_CRT1Table; SiS_Pr 169 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 170 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS300_MCLKData_300; /* 300 */ SiS_Pr 172 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS300_MCLKData_630; /* 630, 730 */ SiS_Pr 174 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VCLKData = SiS300_VCLKData; SiS_Pr 175 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBVCLKData = (struct SiS_VBVCLKData *)SiS300_VCLKData; SiS_Pr 177 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SR15 = SiS300_SR15; SiS_Pr 179 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelDelayTbl = SiS300_PanelDelayTbl; SiS_Pr 180 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelDelayTblLVDS = SiS300_PanelDelayTbl; SiS_Pr 182 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1024x768Data = SiS300_ExtLCD1024x768Data; SiS_Pr 183 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St2LCD1024x768Data = SiS300_St2LCD1024x768Data; SiS_Pr 184 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1280x1024Data = SiS300_ExtLCD1280x1024Data; SiS_Pr 185 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St2LCD1280x1024Data = SiS300_St2LCD1280x1024Data; SiS_Pr 187 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT2Part2_1024x768_1 = SiS300_CRT2Part2_1024x768_1; SiS_Pr 188 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT2Part2_1024x768_2 = SiS300_CRT2Part2_1024x768_2; SiS_Pr 189 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT2Part2_1024x768_3 = SiS300_CRT2Part2_1024x768_3; SiS_Pr 191 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALData = SiS300_CHTVUPALData; SiS_Pr 192 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALData = SiS300_CHTVOPALData; SiS_Pr 193 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALMData = SiS_CHTVUNTSCData; /* not supported on 300 series */ SiS_Pr 194 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALMData = SiS_CHTVONTSCData; /* not supported on 300 series */ SiS_Pr 195 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALNData = SiS300_CHTVUPALData; /* not supported on 300 series */ SiS_Pr 196 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALNData = SiS300_CHTVOPALData; /* not supported on 300 series */ SiS_Pr 197 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVSOPALData = SiS300_CHTVSOPALData; SiS_Pr 199 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS848x480Data_1 = SiS300_LVDS848x480Data_1; SiS_Pr 200 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDS848x480Data_2 = SiS300_LVDS848x480Data_2; SiS_Pr 201 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSBARCO1024Data_1 = SiS300_LVDSBARCO1024Data_1; SiS_Pr 202 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSBARCO1366Data_1 = SiS300_LVDSBARCO1366Data_1; SiS_Pr 203 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_LVDSBARCO1366Data_2 = SiS300_LVDSBARCO1366Data_2; SiS_Pr 205 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelType04_1a = SiS300_PanelType04_1a; SiS_Pr 206 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelType04_2a = SiS300_PanelType04_2a; SiS_Pr 207 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelType04_1b = SiS300_PanelType04_1b; SiS_Pr 208 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelType04_2b = SiS300_PanelType04_2b; SiS_Pr 210 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1UNTSC = SiS300_CHTVCRT1UNTSC; SiS_Pr 211 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1ONTSC = SiS300_CHTVCRT1ONTSC; SiS_Pr 212 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1UPAL = SiS300_CHTVCRT1UPAL; SiS_Pr 213 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1OPAL = SiS300_CHTVCRT1OPAL; SiS_Pr 214 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1SOPAL = SiS300_CHTVCRT1SOPAL; SiS_Pr 215 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UNTSC = SiS300_CHTVReg_UNTSC; SiS_Pr 216 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_ONTSC = SiS300_CHTVReg_ONTSC; SiS_Pr 217 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPAL = SiS300_CHTVReg_UPAL; SiS_Pr 218 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPAL = SiS300_CHTVReg_OPAL; SiS_Pr 219 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPALM = SiS300_CHTVReg_UNTSC; /* not supported on 300 series */ SiS_Pr 220 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPALM = SiS300_CHTVReg_ONTSC; /* not supported on 300 series */ SiS_Pr 221 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPALN = SiS300_CHTVReg_UPAL; /* not supported on 300 series */ SiS_Pr 222 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPALN = SiS300_CHTVReg_OPAL; /* not supported on 300 series */ SiS_Pr 223 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_SOPAL = SiS300_CHTVReg_SOPAL; SiS_Pr 224 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUNTSC = SiS300_CHTVVCLKUNTSC; SiS_Pr 225 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKONTSC = SiS300_CHTVVCLKONTSC; SiS_Pr 226 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPAL = SiS300_CHTVVCLKUPAL; SiS_Pr 227 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPAL = SiS300_CHTVVCLKOPAL; SiS_Pr 228 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPALM = SiS300_CHTVVCLKUNTSC; /* not supported on 300 series */ SiS_Pr 229 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPALM = SiS300_CHTVVCLKONTSC; /* not supported on 300 series */ SiS_Pr 230 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPALN = SiS300_CHTVVCLKUPAL; /* not supported on 300 series */ SiS_Pr 231 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPALN = SiS300_CHTVVCLKOPAL; /* not supported on 300 series */ SiS_Pr 232 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKSOPAL = SiS300_CHTVVCLKSOPAL; SiS_Pr 238 drivers/video/fbdev/sis/init.c InitTo310Pointer(struct SiS_Private *SiS_Pr) SiS_Pr 240 drivers/video/fbdev/sis/init.c InitCommonPointer(SiS_Pr); SiS_Pr 242 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_EModeIDTable = SiS310_EModeIDTable; SiS_Pr 243 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_RefIndex = SiS310_RefIndex; SiS_Pr 244 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT1Table = SiS310_CRT1Table; SiS_Pr 245 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_340) { SiS_Pr 246 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_340; /* 340 + XGI */ SiS_Pr 247 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_761) { SiS_Pr 248 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_761; /* 761 - preliminary */ SiS_Pr 249 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_760) { SiS_Pr 250 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_760; /* 760 */ SiS_Pr 251 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 252 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_660; /* 661/741 */ SiS_Pr 253 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType == SIS_330) { SiS_Pr 254 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_330; /* 330 */ SiS_Pr 255 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType > SIS_315PRO) { SiS_Pr 256 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_650; /* 550, 650, 740 */ SiS_Pr 258 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_0 = SiS310_MCLKData_0_315; /* 315 */ SiS_Pr 260 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_340) { SiS_Pr 261 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_1 = SiS310_MCLKData_1_340; SiS_Pr 263 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MCLKData_1 = SiS310_MCLKData_1; SiS_Pr 265 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VCLKData = SiS310_VCLKData; SiS_Pr 266 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBVCLKData = SiS310_VBVCLKData; SiS_Pr 268 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SR15 = SiS310_SR15; SiS_Pr 270 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelDelayTbl = SiS310_PanelDelayTbl; SiS_Pr 271 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PanelDelayTblLVDS = SiS310_PanelDelayTblLVDS; SiS_Pr 273 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St2LCD1024x768Data = SiS310_St2LCD1024x768Data; SiS_Pr 274 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1024x768Data = SiS310_ExtLCD1024x768Data; SiS_Pr 275 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_St2LCD1280x1024Data = SiS310_St2LCD1280x1024Data; SiS_Pr 276 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ExtLCD1280x1024Data = SiS310_ExtLCD1280x1024Data; SiS_Pr 278 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT2Part2_1024x768_1 = SiS310_CRT2Part2_1024x768_1; SiS_Pr 280 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALData = SiS310_CHTVUPALData; SiS_Pr 281 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALData = SiS310_CHTVOPALData; SiS_Pr 282 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALMData = SiS310_CHTVUPALMData; SiS_Pr 283 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALMData = SiS310_CHTVOPALMData; SiS_Pr 284 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVUPALNData = SiS310_CHTVUPALNData; SiS_Pr 285 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVOPALNData = SiS310_CHTVOPALNData; SiS_Pr 286 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVSOPALData = SiS310_CHTVSOPALData; SiS_Pr 288 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1UNTSC = SiS310_CHTVCRT1UNTSC; SiS_Pr 289 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1ONTSC = SiS310_CHTVCRT1ONTSC; SiS_Pr 290 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1UPAL = SiS310_CHTVCRT1UPAL; SiS_Pr 291 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1OPAL = SiS310_CHTVCRT1OPAL; SiS_Pr 292 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVCRT1SOPAL = SiS310_CHTVCRT1OPAL; SiS_Pr 294 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UNTSC = SiS310_CHTVReg_UNTSC; SiS_Pr 295 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_ONTSC = SiS310_CHTVReg_ONTSC; SiS_Pr 296 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPAL = SiS310_CHTVReg_UPAL; SiS_Pr 297 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPAL = SiS310_CHTVReg_OPAL; SiS_Pr 298 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPALM = SiS310_CHTVReg_UPALM; SiS_Pr 299 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPALM = SiS310_CHTVReg_OPALM; SiS_Pr 300 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_UPALN = SiS310_CHTVReg_UPALN; SiS_Pr 301 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_OPALN = SiS310_CHTVReg_OPALN; SiS_Pr 302 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVReg_SOPAL = SiS310_CHTVReg_OPAL; SiS_Pr 304 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUNTSC = SiS310_CHTVVCLKUNTSC; SiS_Pr 305 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKONTSC = SiS310_CHTVVCLKONTSC; SiS_Pr 306 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPAL = SiS310_CHTVVCLKUPAL; SiS_Pr 307 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPAL = SiS310_CHTVVCLKOPAL; SiS_Pr 308 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPALM = SiS310_CHTVVCLKUPALM; SiS_Pr 309 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPALM = SiS310_CHTVVCLKOPALM; SiS_Pr 310 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKUPALN = SiS310_CHTVVCLKUPALN; SiS_Pr 311 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKOPALN = SiS310_CHTVVCLKOPALN; SiS_Pr 312 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CHTVVCLKSOPAL = SiS310_CHTVVCLKOPAL; SiS_Pr 317 drivers/video/fbdev/sis/init.c SiSInitPtr(struct SiS_Private *SiS_Pr) SiS_Pr 319 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 321 drivers/video/fbdev/sis/init.c InitTo300Pointer(SiS_Pr); SiS_Pr 327 drivers/video/fbdev/sis/init.c InitTo310Pointer(SiS_Pr); SiS_Pr 964 drivers/video/fbdev/sis/init.c SiS_DisplayOn(struct SiS_Private *SiS_Pr) SiS_Pr 966 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x01,0xDF); SiS_Pr 970 drivers/video/fbdev/sis/init.c SiS_DisplayOff(struct SiS_Private *SiS_Pr) SiS_Pr 972 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x01,0x20); SiS_Pr 981 drivers/video/fbdev/sis/init.c SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr) SiS_Pr 983 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c4 = BaseAddr + 0x14; SiS_Pr 984 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3d4 = BaseAddr + 0x24; SiS_Pr 985 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c0 = BaseAddr + 0x10; SiS_Pr 986 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3ce = BaseAddr + 0x1e; SiS_Pr 987 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c2 = BaseAddr + 0x12; SiS_Pr 988 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3ca = BaseAddr + 0x1a; SiS_Pr 989 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c6 = BaseAddr + 0x16; SiS_Pr 990 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c7 = BaseAddr + 0x17; SiS_Pr 991 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c8 = BaseAddr + 0x18; SiS_Pr 992 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3c9 = BaseAddr + 0x19; SiS_Pr 993 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3cb = BaseAddr + 0x1b; SiS_Pr 994 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3cc = BaseAddr + 0x1c; SiS_Pr 995 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3cd = BaseAddr + 0x1d; SiS_Pr 996 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_P3da = BaseAddr + 0x2a; SiS_Pr 997 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Part1Port = BaseAddr + SIS_CRT2_PORT_04; SiS_Pr 998 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Part2Port = BaseAddr + SIS_CRT2_PORT_10; SiS_Pr 999 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Part3Port = BaseAddr + SIS_CRT2_PORT_12; SiS_Pr 1000 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Part4Port = BaseAddr + SIS_CRT2_PORT_14; SiS_Pr 1001 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Part5Port = BaseAddr + SIS_CRT2_PORT_14 + 2; SiS_Pr 1002 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_DDC_Port = BaseAddr + 0x14; SiS_Pr 1003 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VidCapt = BaseAddr + SIS_VIDEO_CAPTURE; SiS_Pr 1004 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VidPlay = BaseAddr + SIS_VIDEO_PLAYBACK; SiS_Pr 1012 drivers/video/fbdev/sis/init.c SiS_GetSysFlags(struct SiS_Private *SiS_Pr) SiS_Pr 1018 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SensibleSR11 = false; SiS_Pr 1019 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MyCR63 = 0x63; SiS_Pr 1020 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 1021 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_MyCR63 = 0x53; SiS_Pr 1022 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1023 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SensibleSR11 = true; SiS_Pr 1029 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags = 0; SiS_Pr 1030 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_650) { SiS_Pr 1031 drivers/video/fbdev/sis/init.c cr5f = SiS_GetReg(SiS_Pr->SiS_P3d4,0x5f) & 0xf0; SiS_Pr 1032 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x5c,0x07); SiS_Pr 1033 drivers/video/fbdev/sis/init.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x5c) & 0xf8; SiS_Pr 1034 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x5c,0xf8); SiS_Pr 1035 drivers/video/fbdev/sis/init.c temp2 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x5c) & 0xf8; SiS_Pr 1041 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_IsM650; SiS_Pr 1046 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_Is651; SiS_Pr 1052 drivers/video/fbdev/sis/init.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x5c) & 0xf8; SiS_Pr 1054 drivers/video/fbdev/sis/init.c case 0x00: SiS_Pr->SiS_SysFlags |= SF_IsM652; break; SiS_Pr 1055 drivers/video/fbdev/sis/init.c case 0x40: SiS_Pr->SiS_SysFlags |= SF_IsM653; break; SiS_Pr 1056 drivers/video/fbdev/sis/init.c default: SiS_Pr->SiS_SysFlags |= SF_IsM650; break; SiS_Pr 1060 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_Is652; SiS_Pr 1063 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_IsM650; SiS_Pr 1069 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_760 && SiS_Pr->ChipType <= SIS_761) { SiS_Pr 1070 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x78) & 0x30) { SiS_Pr 1071 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_760LFB; SiS_Pr 1073 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x79) & 0xf0) { SiS_Pr 1074 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SysFlags |= SF_760UMA; SiS_Pr 1084 drivers/video/fbdev/sis/init.c SiSInitPCIetc(struct SiS_Private *SiS_Pr) SiS_Pr 1086 drivers/video/fbdev/sis/init.c switch(SiS_Pr->ChipType) { SiS_Pr 1097 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x20,0xa1); SiS_Pr 1103 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x5A); SiS_Pr 1121 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x20,0xa1); SiS_Pr 1128 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0xDA); SiS_Pr 1133 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x20,0xa1); SiS_Pr 1138 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x1E,0x60,0x40); SiS_Pr 1152 drivers/video/fbdev/sis/init.c SiSSetLVDSetc(struct SiS_Private *SiS_Pr) SiS_Pr 1156 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_LVDS = 0; SiS_Pr 1157 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_TRUMPION = 0; SiS_Pr 1158 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_CH70xx = 0; SiS_Pr 1159 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_CONEX = 0; SiS_Pr 1161 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ChrontelInit = 0; SiS_Pr 1163 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) return; SiS_Pr 1166 drivers/video/fbdev/sis/init.c temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x00); SiS_Pr 1169 drivers/video/fbdev/sis/init.c switch(SiS_Pr->ChipType) { SiS_Pr 1174 drivers/video/fbdev/sis/init.c temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x37) & 0x0e) >> 1; SiS_Pr 1175 drivers/video/fbdev/sis/init.c if((temp >= 2) && (temp <= 5)) SiS_Pr->SiS_IF_DEF_LVDS = 1; SiS_Pr 1176 drivers/video/fbdev/sis/init.c if(temp == 3) SiS_Pr->SiS_IF_DEF_TRUMPION = 1; SiS_Pr 1179 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_Backup70xx = SiS_GetCH700x(SiS_Pr, 0x0e); SiS_Pr 1180 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_CH70xx = 1; SiS_Pr 1189 drivers/video/fbdev/sis/init.c temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x37) & 0x0e) >> 1; SiS_Pr 1190 drivers/video/fbdev/sis/init.c if((temp >= 2) && (temp <= 3)) SiS_Pr->SiS_IF_DEF_LVDS = 1; SiS_Pr 1191 drivers/video/fbdev/sis/init.c if(temp == 3) SiS_Pr->SiS_IF_DEF_CH70xx = 2; SiS_Pr 1201 drivers/video/fbdev/sis/init.c temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x38) & 0xe0) >> 5; SiS_Pr 1202 drivers/video/fbdev/sis/init.c if((temp >= 2) && (temp <= 3)) SiS_Pr->SiS_IF_DEF_LVDS = 1; SiS_Pr 1203 drivers/video/fbdev/sis/init.c if(temp == 3) SiS_Pr->SiS_IF_DEF_CH70xx = 2; SiS_Pr 1204 drivers/video/fbdev/sis/init.c if(temp == 4) SiS_Pr->SiS_IF_DEF_CONEX = 1; /* Not yet supported */ SiS_Pr 1217 drivers/video/fbdev/sis/init.c SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable) SiS_Pr 1219 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_DSTN = enable ? 1 : 0; SiS_Pr 1223 drivers/video/fbdev/sis/init.c SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable) SiS_Pr 1225 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_IF_DEF_FSTN = enable ? 1 : 0; SiS_Pr 1233 drivers/video/fbdev/sis/init.c SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 1236 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 1237 drivers/video/fbdev/sis/init.c return SiS_Pr->CModeFlag; SiS_Pr 1239 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 1241 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 1250 drivers/video/fbdev/sis/init.c SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr) SiS_Pr 1252 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 1255 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= XGI_20) { SiS_Pr 1258 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_761) { SiS_Pr 1261 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1290 drivers/video/fbdev/sis/init.c SiSDetermineROMUsage(struct SiS_Private *SiS_Pr) SiS_Pr 1292 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 1295 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_UseROM = false; SiS_Pr 1296 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_ROMNew = false; SiS_Pr 1297 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PWDOffset = 0; SiS_Pr 1299 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= XGI_20) return; SiS_Pr 1301 drivers/video/fbdev/sis/init.c if((ROMAddr) && (SiS_Pr->UseROM)) { SiS_Pr 1302 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 1308 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_UseROM = true; SiS_Pr 1309 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 1313 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_UseROM = true; SiS_Pr 1316 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_UseROM = true; SiS_Pr 1317 drivers/video/fbdev/sis/init.c if((SiS_Pr->SiS_ROMNew = SiSDetermineROMLayout661(SiS_Pr))) { SiS_Pr 1318 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_EMIOffset = 14; SiS_Pr 1319 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PWDOffset = 17; SiS_Pr 1320 drivers/video/fbdev/sis/init.c SiS_Pr->SiS661LCD2TableSize = 36; SiS_Pr 1324 drivers/video/fbdev/sis/init.c SiS_Pr->SiS661LCD2TableSize = 32; SiS_Pr 1326 drivers/video/fbdev/sis/init.c SiS_Pr->SiS661LCD2TableSize = 34; SiS_Pr 1328 drivers/video/fbdev/sis/init.c SiS_Pr->SiS661LCD2TableSize = 36; SiS_Pr 1331 drivers/video/fbdev/sis/init.c SiS_Pr->SiS661LCD2TableSize = 38; /* UMC data layout abandoned at 2.05.00 */ SiS_Pr 1332 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_EMIOffset = 16; SiS_Pr 1333 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_PWDOffset = 19; SiS_Pr 1346 drivers/video/fbdev/sis/init.c SiS_SetSegRegLower(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 1351 drivers/video/fbdev/sis/init.c temp = SiS_GetRegByte(SiS_Pr->SiS_P3cb) & 0xf0; SiS_Pr 1353 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3cb, temp); SiS_Pr 1354 drivers/video/fbdev/sis/init.c temp = SiS_GetRegByte(SiS_Pr->SiS_P3cd) & 0xf0; SiS_Pr 1356 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3cd, temp); SiS_Pr 1360 drivers/video/fbdev/sis/init.c SiS_SetSegRegUpper(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 1365 drivers/video/fbdev/sis/init.c temp = SiS_GetRegByte(SiS_Pr->SiS_P3cb) & 0x0f; SiS_Pr 1367 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3cb, temp); SiS_Pr 1368 drivers/video/fbdev/sis/init.c temp = SiS_GetRegByte(SiS_Pr->SiS_P3cd) & 0x0f; SiS_Pr 1370 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3cd, temp); SiS_Pr 1374 drivers/video/fbdev/sis/init.c SiS_SetSegmentReg(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 1376 drivers/video/fbdev/sis/init.c SiS_SetSegRegLower(SiS_Pr, value); SiS_Pr 1377 drivers/video/fbdev/sis/init.c SiS_SetSegRegUpper(SiS_Pr, value); SiS_Pr 1381 drivers/video/fbdev/sis/init.c SiS_ResetSegmentReg(struct SiS_Private *SiS_Pr) SiS_Pr 1383 drivers/video/fbdev/sis/init.c SiS_SetSegmentReg(SiS_Pr, 0); SiS_Pr 1387 drivers/video/fbdev/sis/init.c SiS_SetSegmentRegOver(struct SiS_Private *SiS_Pr, unsigned short value) SiS_Pr 1393 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x1d,temp); SiS_Pr 1394 drivers/video/fbdev/sis/init.c SiS_SetSegmentReg(SiS_Pr, value); SiS_Pr 1398 drivers/video/fbdev/sis/init.c SiS_ResetSegmentRegOver(struct SiS_Private *SiS_Pr) SiS_Pr 1400 drivers/video/fbdev/sis/init.c SiS_SetSegmentRegOver(SiS_Pr, 0); SiS_Pr 1404 drivers/video/fbdev/sis/init.c SiS_ResetSegmentRegisters(struct SiS_Private *SiS_Pr) SiS_Pr 1406 drivers/video/fbdev/sis/init.c if((IS_SIS65x) || (SiS_Pr->ChipType >= SIS_661)) { SiS_Pr 1407 drivers/video/fbdev/sis/init.c SiS_ResetSegmentReg(SiS_Pr); SiS_Pr 1408 drivers/video/fbdev/sis/init.c SiS_ResetSegmentRegOver(SiS_Pr); SiS_Pr 1418 drivers/video/fbdev/sis/init.c SiS_GetVBType(struct SiS_Private *SiS_Pr) SiS_Pr 1423 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = 0; SiS_Pr 1425 drivers/video/fbdev/sis/init.c if((SiS_Pr->SiS_IF_DEF_LVDS) || (SiS_Pr->SiS_IF_DEF_CONEX)) SiS_Pr 1428 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) SiS_Pr 1431 drivers/video/fbdev/sis/init.c flag = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x00); SiS_Pr 1436 drivers/video/fbdev/sis/init.c rev = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x01); SiS_Pr 1439 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = VB_SIS302B; SiS_Pr 1442 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = VB_SIS301C; SiS_Pr 1444 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = VB_SIS301B; SiS_Pr 1446 drivers/video/fbdev/sis/init.c nolcd = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x23); SiS_Pr 1447 drivers/video/fbdev/sis/init.c if(!(nolcd & 0x02)) SiS_Pr->SiS_VBType |= VB_NoLCD; SiS_Pr 1449 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = VB_SIS301; SiS_Pr 1452 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & (VB_SIS301B | VB_SIS301C | VB_SIS302B)) { SiS_Pr 1454 drivers/video/fbdev/sis/init.c flag = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x39); SiS_Pr 1455 drivers/video/fbdev/sis/init.c if(flag == 0xff) SiS_Pr->SiS_VBType = VB_SIS302LV; SiS_Pr 1456 drivers/video/fbdev/sis/init.c else SiS_Pr->SiS_VBType = VB_SIS301C; /* VB_SIS302ELV; */ SiS_Pr 1458 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType = VB_SIS301LV; SiS_Pr 1461 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & (VB_SIS301C | VB_SIS301LV | VB_SIS302LV | VB_SIS302ELV)) { SiS_Pr 1462 drivers/video/fbdev/sis/init.c p4_0f = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x0f); SiS_Pr 1463 drivers/video/fbdev/sis/init.c p4_25 = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x25); SiS_Pr 1464 drivers/video/fbdev/sis/init.c p4_27 = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x27); SiS_Pr 1465 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x0f,0x7f); SiS_Pr 1466 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x25,0x08); SiS_Pr 1467 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x27,0xfd); SiS_Pr 1468 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_Part4Port,0x26) & 0x08) { SiS_Pr 1469 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VBType |= VB_UMC; SiS_Pr 1471 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x27,p4_27); SiS_Pr 1472 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x25,p4_25); SiS_Pr 1473 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0f,p4_0f); SiS_Pr 1482 drivers/video/fbdev/sis/init.c SiS_CheckMemorySize(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 1485 drivers/video/fbdev/sis/init.c unsigned short AdapterMemSize = SiS_Pr->VideoMemorySize / (1024*1024); SiS_Pr 1486 drivers/video/fbdev/sis/init.c unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 1501 drivers/video/fbdev/sis/init.c SiS_Get310DRAMType(struct SiS_Private *SiS_Pr) SiS_Pr 1505 drivers/video/fbdev/sis/init.c if((*SiS_Pr->pSiS_SoftSetting) & SoftDRAMType) { SiS_Pr 1506 drivers/video/fbdev/sis/init.c data = (*SiS_Pr->pSiS_SoftSetting) & 0x03; SiS_Pr 1508 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= XGI_20) { SiS_Pr 1511 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_340) { SiS_Pr 1514 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1515 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 1516 drivers/video/fbdev/sis/init.c data = ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x78) & 0xc0) >> 6); SiS_Pr 1518 drivers/video/fbdev/sis/init.c data = SiS_GetReg(SiS_Pr->SiS_P3d4,0x78) & 0x07; SiS_Pr 1521 drivers/video/fbdev/sis/init.c data = SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x07; SiS_Pr 1523 drivers/video/fbdev/sis/init.c data = SiS_GetReg(SiS_Pr->SiS_P3c4,0x3a) & 0x03; SiS_Pr 1524 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_330) { SiS_Pr 1526 drivers/video/fbdev/sis/init.c switch(SiS_GetReg(SiS_Pr->SiS_P3d4,0x5f) & 0x30) { SiS_Pr 1543 drivers/video/fbdev/sis/init.c SiS_GetMCLK(struct SiS_Private *SiS_Pr) SiS_Pr 1545 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 1548 drivers/video/fbdev/sis/init.c index = SiS_Get310DRAMType(SiS_Pr); SiS_Pr 1549 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1550 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 1553 drivers/video/fbdev/sis/init.c return(SiS_Pr->SiS_MCLKData_0[index].CLOCK); SiS_Pr 1555 drivers/video/fbdev/sis/init.c return(SiS_Pr->SiS_MCLKData_1[index - 4].CLOCK); SiS_Pr 1557 drivers/video/fbdev/sis/init.c return(SiS_Pr->SiS_MCLKData_0[index].CLOCK); SiS_Pr 1567 drivers/video/fbdev/sis/init.c SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 1569 drivers/video/fbdev/sis/init.c unsigned char SISIOMEMTYPE *memaddr = SiS_Pr->VideoMemoryAddress; SiS_Pr 1570 drivers/video/fbdev/sis/init.c unsigned int memsize = SiS_Pr->VideoMemorySize; SiS_Pr 1576 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType >= ModeEGA) { SiS_Pr 1583 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->SiS_ModeType < ModeCGA) { SiS_Pr 1596 drivers/video/fbdev/sis/init.c SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, SiS_Pr 1599 drivers/video/fbdev/sis/init.c unsigned char VGAINFO = SiS_Pr->SiS_VGAINFO; SiS_Pr 1606 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break; SiS_Pr 1607 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == 0xFF) return false; SiS_Pr 1624 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break; SiS_Pr 1625 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == 0xFF) return false; SiS_Pr 1637 drivers/video/fbdev/sis/init.c SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 1642 drivers/video/fbdev/sis/init.c index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_StTableIndex; SiS_Pr 1644 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType <= ModeEGA) index = 0x1B; SiS_Pr 1655 drivers/video/fbdev/sis/init.c SiS_GetRefCRTVCLK(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide) SiS_Pr 1657 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_RefIndex[Index].Ext_InfoFlag & HaveWideTiming) { SiS_Pr 1659 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRTVCLK_WIDE; SiS_Pr 1661 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRTVCLK_NORM; SiS_Pr 1664 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRTVCLK; SiS_Pr 1669 drivers/video/fbdev/sis/init.c SiS_GetRefCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide) SiS_Pr 1671 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_RefIndex[Index].Ext_InfoFlag & HaveWideTiming) { SiS_Pr 1673 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRT1CRTC_WIDE; SiS_Pr 1675 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRT1CRTC_NORM; SiS_Pr 1678 drivers/video/fbdev/sis/init.c return SiS_Pr->SiS_RefIndex[Index].Ext_CRT1CRTC; SiS_Pr 1687 drivers/video/fbdev/sis/init.c SiS_DoLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 1693 drivers/video/fbdev/sis/init.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x11); SiS_Pr 1694 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x11,0x80); SiS_Pr 1695 drivers/video/fbdev/sis/init.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x00); SiS_Pr 1696 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x00,0x55); SiS_Pr 1697 drivers/video/fbdev/sis/init.c temp2 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x00); SiS_Pr 1698 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x00,temp1); SiS_Pr 1699 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x11,temp); SiS_Pr 1700 drivers/video/fbdev/sis/init.c if((SiS_Pr->ChipType >= SIS_315H) || SiS_Pr 1701 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipType == SIS_300)) { SiS_Pr 1707 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x35,0x01); SiS_Pr 1714 drivers/video/fbdev/sis/init.c SiS_SetLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 1716 drivers/video/fbdev/sis/init.c if(SiS_DoLowModeTest(SiS_Pr, ModeNo)) { SiS_Pr 1717 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SetFlag |= LowModeTests; SiS_Pr 1726 drivers/video/fbdev/sis/init.c SiS_OpenCRTC(struct SiS_Private *SiS_Pr) SiS_Pr 1729 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x51,0x1f); SiS_Pr 1730 drivers/video/fbdev/sis/init.c if(IS_SIS651) SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x51,0x20); SiS_Pr 1731 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x56,0xe7); SiS_Pr 1733 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x61,0xf7); SiS_Pr 1734 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x51,0x1f); SiS_Pr 1735 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x56,0xe7); SiS_Pr 1736 drivers/video/fbdev/sis/init.c if(!SiS_Pr->SiS_ROMNew) { SiS_Pr 1737 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x3a,0xef); SiS_Pr 1743 drivers/video/fbdev/sis/init.c SiS_CloseCRTC(struct SiS_Private *SiS_Pr) SiS_Pr 1749 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 1752 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x51,0x1f,temp1); SiS_Pr 1753 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x56,0xe7,temp2); SiS_Pr 1759 drivers/video/fbdev/sis/init.c SiS_HandleCRT1(struct SiS_Private *SiS_Pr) SiS_Pr 1762 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,SiS_Pr->SiS_MyCR63,0xbf); SiS_Pr 1764 drivers/video/fbdev/sis/init.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x15) & 0x01)) { SiS_Pr 1765 drivers/video/fbdev/sis/init.c if((SiS_GetReg(SiS_Pr->SiS_P3c4,0x15) & 0x0a) || SiS_Pr 1766 drivers/video/fbdev/sis/init.c (SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) & 0x01)) { SiS_Pr 1767 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,SiS_Pr->SiS_MyCR63,0x40); SiS_Pr 1778 drivers/video/fbdev/sis/init.c SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 1787 drivers/video/fbdev/sis/init.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 1789 drivers/video/fbdev/sis/init.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 1791 drivers/video/fbdev/sis/init.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 1804 drivers/video/fbdev/sis/init.c SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 1809 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 1810 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->CInfoFlag; SiS_Pr 1811 drivers/video/fbdev/sis/init.c xres = SiS_Pr->CHDisplay; SiS_Pr 1813 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag; SiS_Pr 1814 drivers/video/fbdev/sis/init.c xres = SiS_Pr->SiS_RefIndex[RRTI].XRes; SiS_Pr 1817 drivers/video/fbdev/sis/init.c colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 1832 drivers/video/fbdev/sis/init.c SiS_SetSeqRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 1837 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x00,0x03); SiS_Pr 1840 drivers/video/fbdev/sis/init.c SRdata = SiS_Pr->SiS_StandTable[StandTableIndex].SR[0] | 0x20; SiS_Pr 1843 drivers/video/fbdev/sis/init.c if((SiS_Pr->SiS_VBType & VB_SISVB) || (SiS_Pr->SiS_IF_DEF_LVDS)) { SiS_Pr 1845 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) { SiS_Pr 1846 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) SRdata |= 0x01; SiS_Pr 1847 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) SRdata |= 0x01; SiS_Pr 1851 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x01,SRdata); SiS_Pr 1854 drivers/video/fbdev/sis/init.c SRdata = SiS_Pr->SiS_StandTable[StandTableIndex].SR[i - 1]; SiS_Pr 1855 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,i,SRdata); SiS_Pr 1864 drivers/video/fbdev/sis/init.c SiS_SetMiscRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 1868 drivers/video/fbdev/sis/init.c Miscdata = SiS_Pr->SiS_StandTable[StandTableIndex].MISC; SiS_Pr 1870 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 1871 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 1872 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 1878 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c2,Miscdata); SiS_Pr 1886 drivers/video/fbdev/sis/init.c SiS_SetCRTCRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 1892 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f); SiS_Pr 1895 drivers/video/fbdev/sis/init.c CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_Pr 1896 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata); SiS_Pr 1899 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1900 drivers/video/fbdev/sis/init.c SiS_OpenCRTC(SiS_Pr); SiS_Pr 1902 drivers/video/fbdev/sis/init.c CRTCdata = SiS_Pr->SiS_StandTable[StandTableIndex].CRTC[i]; SiS_Pr 1903 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,i,CRTCdata); SiS_Pr 1905 drivers/video/fbdev/sis/init.c } else if( ( (SiS_Pr->ChipType == SIS_630) || SiS_Pr 1906 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipType == SIS_730) ) && SiS_Pr 1907 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipRevision >= 0x30) ) { SiS_Pr 1908 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 1909 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) { SiS_Pr 1910 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x18,0xFE); SiS_Pr 1921 drivers/video/fbdev/sis/init.c SiS_SetATTRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 1927 drivers/video/fbdev/sis/init.c ARdata = SiS_Pr->SiS_StandTable[StandTableIndex].ATTR[i]; SiS_Pr 1933 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 1934 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) ARdata = 0; SiS_Pr 1936 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 1937 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1938 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 1939 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) ARdata = 0; SiS_Pr 1943 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1944 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToTV | SetCRT2ToLCD)) { SiS_Pr 1945 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) ARdata = 0; SiS_Pr 1947 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 1948 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1951 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & VB_SIS30xB) { SiS_Pr 1952 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) ARdata = 0; SiS_Pr 1958 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) ARdata = 0; SiS_Pr 1962 drivers/video/fbdev/sis/init.c SiS_GetRegByte(SiS_Pr->SiS_P3da); /* reset 3da */ SiS_Pr 1963 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c0,i); /* set index */ SiS_Pr 1964 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c0,ARdata); /* set data */ SiS_Pr 1967 drivers/video/fbdev/sis/init.c SiS_GetRegByte(SiS_Pr->SiS_P3da); /* reset 3da */ SiS_Pr 1968 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c0,0x14); /* set index */ SiS_Pr 1969 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c0,0x00); /* set data */ SiS_Pr 1971 drivers/video/fbdev/sis/init.c SiS_GetRegByte(SiS_Pr->SiS_P3da); SiS_Pr 1972 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c0,0x20); /* Enable Attribute */ SiS_Pr 1973 drivers/video/fbdev/sis/init.c SiS_GetRegByte(SiS_Pr->SiS_P3da); SiS_Pr 1981 drivers/video/fbdev/sis/init.c SiS_SetGRCRegs(struct SiS_Private *SiS_Pr, unsigned short StandTableIndex) SiS_Pr 1987 drivers/video/fbdev/sis/init.c GRdata = SiS_Pr->SiS_StandTable[StandTableIndex].GRC[i]; SiS_Pr 1988 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3ce,i,GRdata); SiS_Pr 1991 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 1993 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3ce,0x05,0xBF); SiS_Pr 2002 drivers/video/fbdev/sis/init.c SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 2007 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,i,0x00); SiS_Pr 2010 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2011 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x37,0xFE); SiS_Pr 2014 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x0e,0x20); SiS_Pr 2025 drivers/video/fbdev/sis/init.c SiS_ResetCRT1VCLK(struct SiS_Private *SiS_Pr) SiS_Pr 2027 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2028 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 2029 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_IF_DEF_LVDS == 0) return; SiS_Pr 2032 drivers/video/fbdev/sis/init.c if((SiS_Pr->SiS_IF_DEF_LVDS == 0) && SiS_Pr 2033 drivers/video/fbdev/sis/init.c (!(SiS_Pr->SiS_VBType & VB_SIS30xBLV)) ) { SiS_Pr 2038 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x31,0xcf,0x20); SiS_Pr 2039 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2B,SiS_Pr->SiS_VCLKData[1].SR2B); SiS_Pr 2040 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2C,SiS_Pr->SiS_VCLKData[1].SR2C); SiS_Pr 2041 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2D,0x80); SiS_Pr 2042 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x31,0xcf,0x10); SiS_Pr 2043 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2B,SiS_Pr->SiS_VCLKData[0].SR2B); SiS_Pr 2044 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2C,SiS_Pr->SiS_VCLKData[0].SR2C); SiS_Pr 2045 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2D,0x80); SiS_Pr 2053 drivers/video/fbdev/sis/init.c SiS_SetCRT1Sync(struct SiS_Private *SiS_Pr, unsigned short RRTI) SiS_Pr 2057 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2058 drivers/video/fbdev/sis/init.c sync = SiS_Pr->CInfoFlag >> 8; SiS_Pr 2060 drivers/video/fbdev/sis/init.c sync = SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag >> 8; SiS_Pr 2065 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c2,sync); SiS_Pr 2073 drivers/video/fbdev/sis/init.c SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2079 drivers/video/fbdev/sis/init.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2081 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2083 drivers/video/fbdev/sis/init.c crt1data = &SiS_Pr->CCRT1CRTC[0]; SiS_Pr 2087 drivers/video/fbdev/sis/init.c temp = SiS_GetRefCRT1CRTC(SiS_Pr, RRTI, SiS_Pr->SiS_UseWide); SiS_Pr 2090 drivers/video/fbdev/sis/init.c if((temp == 0x20) && (SiS_Pr->Alternate1600x1200)) temp = 0x57; SiS_Pr 2092 drivers/video/fbdev/sis/init.c crt1data = (unsigned char *)&SiS_Pr->SiS_CRT1Table[temp].CR[0]; SiS_Pr 2097 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f); SiS_Pr 2100 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); SiS_Pr 2103 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); SiS_Pr 2106 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,crt1data[i]); SiS_Pr 2109 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,j,crt1data[i]); SiS_Pr 2112 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x0E,crt1data[16] & 0xE0); SiS_Pr 2116 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,0x5F,temp); SiS_Pr 2118 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 2119 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x14,0x4F); SiS_Pr 2123 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) { SiS_Pr 2124 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x04,crt1data[4] - 1); SiS_Pr 2126 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x0c,0xfb); SiS_Pr 2128 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x05,0xe0,((temp - 1) & 0x1f)); SiS_Pr 2131 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0e,0x1f,(temp << 5)); SiS_Pr 2143 drivers/video/fbdev/sis/init.c SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2148 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2149 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->CInfoFlag; SiS_Pr 2151 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag; SiS_Pr 2154 drivers/video/fbdev/sis/init.c DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI); SiS_Pr 2157 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0xF0,temp); SiS_Pr 2159 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x13,DisplayUnit & 0xFF); SiS_Pr 2166 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) { SiS_Pr 2169 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x10,temp); SiS_Pr 2177 drivers/video/fbdev/sis/init.c SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2182 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2183 drivers/video/fbdev/sis/init.c clka = SiS_Pr->CSR2B; SiS_Pr 2184 drivers/video/fbdev/sis/init.c clkb = SiS_Pr->CSR2C; SiS_Pr 2186 drivers/video/fbdev/sis/init.c index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI); SiS_Pr 2187 drivers/video/fbdev/sis/init.c if((SiS_Pr->SiS_VBType & VB_SIS30xBLV) && SiS_Pr 2188 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 2190 drivers/video/fbdev/sis/init.c if((index == 0x21) && (SiS_Pr->Alternate1600x1200)) index = 0x72; SiS_Pr 2191 drivers/video/fbdev/sis/init.c clka = SiS_Pr->SiS_VBVCLKData[index].Part4_A; SiS_Pr 2192 drivers/video/fbdev/sis/init.c clkb = SiS_Pr->SiS_VBVCLKData[index].Part4_B; SiS_Pr 2194 drivers/video/fbdev/sis/init.c clka = SiS_Pr->SiS_VCLKData[index].SR2B; SiS_Pr 2195 drivers/video/fbdev/sis/init.c clkb = SiS_Pr->SiS_VCLKData[index].SR2C; SiS_Pr 2199 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x31,0xCF); SiS_Pr 2201 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2b,clka); SiS_Pr 2202 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2c,clkb); SiS_Pr 2204 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2206 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2D,0x01); SiS_Pr 2207 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) { SiS_Pr 2208 drivers/video/fbdev/sis/init.c unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2210 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2b,SiS_GetReg(SiS_Pr->SiS_P3c4,0x2b)); SiS_Pr 2211 drivers/video/fbdev/sis/init.c clkb = SiS_GetReg(SiS_Pr->SiS_P3c4,0x2c); SiS_Pr 2213 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2c,clkb); SiS_Pr 2218 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2D,0x80); SiS_Pr 2228 drivers/video/fbdev/sis/init.c SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *idx1, SiS_Pr 2236 drivers/video/fbdev/sis/init.c temp1 = temp2 = (SiS_GetReg(SiS_Pr->SiS_P3c4,0x18) & 0x62) >> 1; SiS_Pr 2238 drivers/video/fbdev/sis/init.c (*idx1) = (unsigned short)(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) >> 6) & 0x03; SiS_Pr 2239 drivers/video/fbdev/sis/init.c (*idx1) |= (unsigned short)(((SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) >> 4) & 0x0c)); SiS_Pr 2268 drivers/video/fbdev/sis/init.c SiS_DoCalcDelay(struct SiS_Private *SiS_Pr, unsigned short MCLK, unsigned short VCLK, SiS_Pr 2274 drivers/video/fbdev/sis/init.c SiS_GetFIFOThresholdIndex300(SiS_Pr, &idx1, &idx2); SiS_Pr 2288 drivers/video/fbdev/sis/init.c SiS_CalcDelay(struct SiS_Private *SiS_Pr, unsigned short VCLK, SiS_Pr 2293 drivers/video/fbdev/sis/init.c temp2 = SiS_DoCalcDelay(SiS_Pr, MCLK, VCLK, colordepth, 0); SiS_Pr 2294 drivers/video/fbdev/sis/init.c temp1 = SiS_DoCalcDelay(SiS_Pr, MCLK, VCLK, colordepth, 1); SiS_Pr 2302 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_300(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2312 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2313 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->CSRClock; SiS_Pr 2315 drivers/video/fbdev/sis/init.c index = SiS_GetRefCRTVCLK(SiS_Pr, RefreshRateTableIndex, SiS_Pr->SiS_UseWide); SiS_Pr 2316 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 2320 drivers/video/fbdev/sis/init.c colorth = colortharray[(SiS_Pr->SiS_ModeType - ModeEGA)]; SiS_Pr 2323 drivers/video/fbdev/sis/init.c index = SiS_GetReg(SiS_Pr->SiS_P3c4,0x3A) & 0x07; SiS_Pr 2324 drivers/video/fbdev/sis/init.c MCLK = SiS_Pr->SiS_MCLKData_0[index].CLOCK; SiS_Pr 2326 drivers/video/fbdev/sis/init.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35) & 0xc3; SiS_Pr 2327 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x16,0x3c,temp); SiS_Pr 2330 drivers/video/fbdev/sis/init.c ThresholdLow = SiS_CalcDelay(SiS_Pr, VCLK, colorth, MCLK) + 1; SiS_Pr 2332 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x16,0xfc); SiS_Pr 2334 drivers/video/fbdev/sis/init.c temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) >> 6; SiS_Pr 2336 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x16,0x3f,((temp - 1) << 6)); SiS_Pr 2343 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,temp); SiS_Pr 2347 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0f,0x9f,temp); SiS_Pr 2350 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x3B,0x09); SiS_Pr 2355 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x09,temp); SiS_Pr 2359 drivers/video/fbdev/sis/init.c SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index) SiS_Pr 2379 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2387 drivers/video/fbdev/sis/init.c SiS_CalcDelay2(struct SiS_Private *SiS_Pr, unsigned char key) SiS_Pr 2391 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2397 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) & 0x80) index += 12; SiS_Pr 2399 drivers/video/fbdev/sis/init.c return SiS_GetLatencyFactor630(SiS_Pr, index); SiS_Pr 2403 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_630(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2434 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2435 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->CSRClock; SiS_Pr 2437 drivers/video/fbdev/sis/init.c data = SiS_GetRefCRTVCLK(SiS_Pr, RefreshRateTableIndex, SiS_Pr->SiS_UseWide); SiS_Pr 2438 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->SiS_VCLKData[data].CLOCK; SiS_Pr 2442 drivers/video/fbdev/sis/init.c data = SiS_GetReg(SiS_Pr->SiS_P3c4,0x1A) & 0x07; SiS_Pr 2443 drivers/video/fbdev/sis/init.c MCLK16 = SiS_Pr->SiS_MCLKData_0[data].CLOCK * 16; SiS_Pr 2446 drivers/video/fbdev/sis/init.c colorth = colortharray[(SiS_Pr->SiS_ModeType - ModeEGA)]; SiS_Pr 2448 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2455 drivers/video/fbdev/sis/init.c templ = SiS_CalcDelay2(SiS_Pr, queuedata[i]) * VCLK * colorth; SiS_Pr 2475 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType != SIS_730) i = 9; SiS_Pr 2482 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,data); SiS_Pr 2485 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0F,0xDF,data); SiS_Pr 2488 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x3B,0x09); SiS_Pr 2493 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x09,0x80,data); SiS_Pr 2496 drivers/video/fbdev/sis/init.c templ = sisfb_read_nbridge_pci_dword(SiS_Pr, 0x50); SiS_Pr 2498 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2507 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipType == SIS_630) && SiS_Pr 2508 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipRevision >= 0x30) ) { SiS_Pr 2516 drivers/video/fbdev/sis/init.c sisfb_write_nbridge_pci_dword(SiS_Pr, 0x50, templ); SiS_Pr 2517 drivers/video/fbdev/sis/init.c templ = sisfb_read_nbridge_pci_dword(SiS_Pr, 0xA0); SiS_Pr 2520 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2533 drivers/video/fbdev/sis/init.c sisfb_write_nbridge_pci_dword(SiS_Pr, 0xA0, templ); SiS_Pr 2539 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 2544 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x3D,0xFE); SiS_Pr 2546 drivers/video/fbdev/sis/init.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2548 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,0xAE); SiS_Pr 2549 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x09,0xF0); SiS_Pr 2551 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= XGI_20) { SiS_Pr 2552 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,0x34); SiS_Pr 2553 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x3D,0x01); SiS_Pr 2554 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 2556 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,0x34); SiS_Pr 2557 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x3D,0x01); SiS_Pr 2561 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x08,0x34); SiS_Pr 2562 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x3D,0x01); SiS_Pr 2574 drivers/video/fbdev/sis/init.c SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2580 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2581 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->CSRClock; SiS_Pr 2583 drivers/video/fbdev/sis/init.c index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 2584 drivers/video/fbdev/sis/init.c VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 2588 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2591 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x07,0x7B,data); SiS_Pr 2595 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x32,0xF7,data); SiS_Pr 2597 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType < XGI_20) { SiS_Pr 2600 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x32,0xf3,data); SiS_Pr 2603 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1f,0xe7); SiS_Pr 2609 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) data &= ~0x04; SiS_Pr 2610 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x32,0xf3,data); SiS_Pr 2611 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType != XGI_20) { SiS_Pr 2612 drivers/video/fbdev/sis/init.c data = SiS_GetReg(SiS_Pr->SiS_P3c4,0x1f) & 0xe7; SiS_Pr 2614 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x1f,data); SiS_Pr 2620 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 2622 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x07,0xE8,0x10); SiS_Pr 2631 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_540) { SiS_Pr 2636 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2637 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x07,0xFC,data); SiS_Pr 2639 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType > SIS_315PRO) { SiS_Pr 2642 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x07,0xF8,data); SiS_Pr 2649 drivers/video/fbdev/sis/init.c SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 2654 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 2658 drivers/video/fbdev/sis/init.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2660 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2661 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->CInfoFlag; SiS_Pr 2663 drivers/video/fbdev/sis/init.c resindex = SiS_GetResInfo(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2665 drivers/video/fbdev/sis/init.c infoflag = SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag; SiS_Pr 2670 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1F,0x3F); SiS_Pr 2674 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType > ModeEGA) { SiS_Pr 2676 drivers/video/fbdev/sis/init.c data |= ((SiS_Pr->SiS_ModeType - ModeVGA) << 2); SiS_Pr 2680 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x06,0xC0,data); SiS_Pr 2682 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType != SIS_300) { SiS_Pr 2686 drivers/video/fbdev/sis/init.c int hrs = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x04) | SiS_Pr 2687 drivers/video/fbdev/sis/init.c ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x0b) & 0xc0) << 2)) - 3; SiS_Pr 2688 drivers/video/fbdev/sis/init.c int hto = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x00) | SiS_Pr 2689 drivers/video/fbdev/sis/init.c ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x0b) & 0x03) << 8)) + 5; SiS_Pr 2692 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x19,data); SiS_Pr 2693 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x1a,0xFC,((data >> 8) & 0x03)); SiS_Pr 2697 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x01,0x08); SiS_Pr 2702 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 2703 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0F,0xF7,data); SiS_Pr 2705 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= XGI_20) data |= 0x20; SiS_Pr 2706 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType == ModeEGA) { SiS_Pr 2711 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0F,0xB7,data); SiS_Pr 2715 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2716 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x31,0xfb); SiS_Pr 2719 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_315PRO) { SiS_Pr 2721 drivers/video/fbdev/sis/init.c data = SiS_Pr->SiS_SR15[(2 * 4) + SiS_Get310DRAMType(SiS_Pr)]; SiS_Pr 2722 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType == ModeText) { SiS_Pr 2725 drivers/video/fbdev/sis/init.c data2 = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI) >> 1; SiS_Pr 2727 drivers/video/fbdev/sis/init.c data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1; SiS_Pr 2734 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x17,data); SiS_Pr 2736 drivers/video/fbdev/sis/init.c } else if((SiS_Pr->ChipType == SIS_330) || (SiS_Pr->SiS_SysFlags & SF_760LFB)) { SiS_Pr 2738 drivers/video/fbdev/sis/init.c data = SiS_Get310DRAMType(SiS_Pr); SiS_Pr 2739 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_330) { SiS_Pr 2740 drivers/video/fbdev/sis/init.c data = SiS_Pr->SiS_SR15[(2 * 4) + data]; SiS_Pr 2742 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) data = ROMAddr[0xf6]; SiS_Pr 2743 drivers/video/fbdev/sis/init.c else if(SiS_Pr->SiS_UseROM) data = ROMAddr[0x100 + data]; SiS_Pr 2746 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType <= ModeEGA) { SiS_Pr 2749 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 2750 drivers/video/fbdev/sis/init.c data2 = SiS_Pr->CSRClock; SiS_Pr 2752 drivers/video/fbdev/sis/init.c data2 = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI); SiS_Pr 2753 drivers/video/fbdev/sis/init.c data2 = SiS_Pr->SiS_VCLKData[data2].CLOCK; SiS_Pr 2756 drivers/video/fbdev/sis/init.c data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1; SiS_Pr 2759 drivers/video/fbdev/sis/init.c data2 = ((unsigned int)(SiS_GetMCLK(SiS_Pr) * 1024)) / data2; SiS_Pr 2761 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == SIS_330) { SiS_Pr 2762 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType != Mode16Bpp) { SiS_Pr 2786 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x17,data); SiS_Pr 2794 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType != ModeText) { SiS_Pr 2796 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ModeType != ModeEGA) { SiS_Pr 2800 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x21,0x1F,data); SiS_Pr 2802 drivers/video/fbdev/sis/init.c SiS_SetVCLKState(SiS_Pr, ModeNo, RRTI, ModeIdIndex); SiS_Pr 2805 drivers/video/fbdev/sis/init.c if(((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->ChipType < SIS_661)) || SiS_Pr 2806 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipType == XGI_40)) { SiS_Pr 2807 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & 0x40) { SiS_Pr 2808 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x52,0x2c); SiS_Pr 2810 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x52,0x6c); SiS_Pr 2812 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType == XGI_20) { SiS_Pr 2813 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & 0x40) { SiS_Pr 2814 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x52,0x33); SiS_Pr 2816 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x52,0x73); SiS_Pr 2818 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x51,0x02); SiS_Pr 2825 drivers/video/fbdev/sis/init.c SiS_SetupDualChip(struct SiS_Private *SiS_Pr) SiS_Pr 2829 drivers/video/fbdev/sis/init.c SISIOADDRESS P2_3c2 = SiS_Pr->IOAddress2 + 0x12; SiS_Pr 2830 drivers/video/fbdev/sis/init.c SISIOADDRESS P2_3c4 = SiS_Pr->IOAddress2 + 0x14; SiS_Pr 2831 drivers/video/fbdev/sis/init.c SISIOADDRESS P2_3ce = SiS_Pr->IOAddress2 + 0x1e; SiS_Pr 2834 drivers/video/fbdev/sis/init.c if((SiS_Pr->ChipRevision != 0) || SiS_Pr 2835 drivers/video/fbdev/sis/init.c (!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x3a) & 0x04))) SiS_Pr 2839 drivers/video/fbdev/sis/init.c SiS_SetReg(P2_3c4,i,SiS_GetReg(SiS_Pr->SiS_P3c4,i)); SiS_Pr 2842 drivers/video/fbdev/sis/init.c SiS_SetReg(P2_3ce,i,SiS_GetReg(SiS_Pr->SiS_P3ce,i)); SiS_Pr 2845 drivers/video/fbdev/sis/init.c SiS_SetReg(P2_3c4,0x06,SiS_GetReg(SiS_Pr->SiS_P3c4,0x06)); /* SR06 */ SiS_Pr 2846 drivers/video/fbdev/sis/init.c SiS_SetReg(P2_3c4,0x21,SiS_GetReg(SiS_Pr->SiS_P3c4,0x21)); /* SR21 */ SiS_Pr 2847 drivers/video/fbdev/sis/init.c SiS_SetRegByte(P2_3c2,SiS_GetRegByte(SiS_Pr->SiS_P3cc)); /* MISC */ SiS_Pr 2858 drivers/video/fbdev/sis/init.c SiS_WriteDAC(struct SiS_Private *SiS_Pr, SISIOADDRESS DACData, unsigned short shiftflag, SiS_Pr 2874 drivers/video/fbdev/sis/init.c SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 2881 drivers/video/fbdev/sis/init.c data = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex) & DACInfoFlag; SiS_Pr 2893 drivers/video/fbdev/sis/init.c if( ( (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && /* 301B-DH LCD */ SiS_Pr 2894 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_VBType & VB_NoLCD) ) || SiS_Pr 2895 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) || /* LCDA */ SiS_Pr 2896 drivers/video/fbdev/sis/init.c (!(SiS_Pr->SiS_SetFlag & ProgrammingCRT2)) ) { /* Programming CRT1 */ SiS_Pr 2897 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c6,0xFF); SiS_Pr 2898 drivers/video/fbdev/sis/init.c DACAddr = SiS_Pr->SiS_P3c8; SiS_Pr 2899 drivers/video/fbdev/sis/init.c DACData = SiS_Pr->SiS_P3c9; SiS_Pr 2902 drivers/video/fbdev/sis/init.c DACAddr = SiS_Pr->SiS_Part5Port; SiS_Pr 2903 drivers/video/fbdev/sis/init.c DACData = SiS_Pr->SiS_Part5Port + 1; SiS_Pr 2931 drivers/video/fbdev/sis/init.c SiS_WriteDAC(SiS_Pr, DACData, sf, n, table[di], table[bx], table[si]); SiS_Pr 2936 drivers/video/fbdev/sis/init.c SiS_WriteDAC(SiS_Pr, DACData, sf, n, table[di], table[si], table[bx]); SiS_Pr 2950 drivers/video/fbdev/sis/init.c SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 2954 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_CRT1Mode = ModeNo; SiS_Pr 2956 drivers/video/fbdev/sis/init.c StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2958 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 2959 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SwitchCRT2)) { SiS_Pr 2960 drivers/video/fbdev/sis/init.c SiS_DisableBridge(SiS_Pr); SiS_Pr 2964 drivers/video/fbdev/sis/init.c SiS_ResetSegmentRegisters(SiS_Pr); SiS_Pr 2966 drivers/video/fbdev/sis/init.c SiS_SetSeqRegs(SiS_Pr, StandTableIndex); SiS_Pr 2967 drivers/video/fbdev/sis/init.c SiS_SetMiscRegs(SiS_Pr, StandTableIndex); SiS_Pr 2968 drivers/video/fbdev/sis/init.c SiS_SetCRTCRegs(SiS_Pr, StandTableIndex); SiS_Pr 2969 drivers/video/fbdev/sis/init.c SiS_SetATTRegs(SiS_Pr, StandTableIndex); SiS_Pr 2970 drivers/video/fbdev/sis/init.c SiS_SetGRCRegs(SiS_Pr, StandTableIndex); SiS_Pr 2971 drivers/video/fbdev/sis/init.c SiS_ClearExt1Regs(SiS_Pr, ModeNo); SiS_Pr 2972 drivers/video/fbdev/sis/init.c SiS_ResetCRT1VCLK(SiS_Pr); SiS_Pr 2974 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SelectCRT2Rate = 0; SiS_Pr 2975 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2); SiS_Pr 2977 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetSimuScanMode) { SiS_Pr 2978 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 2979 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 2983 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 2984 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 2987 drivers/video/fbdev/sis/init.c RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2989 drivers/video/fbdev/sis/init.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 2990 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_SetFlag &= ~ProgrammingCRT2; SiS_Pr 2994 drivers/video/fbdev/sis/init.c SiS_SetCRT1Sync(SiS_Pr, RefreshRateTableIndex); SiS_Pr 2995 drivers/video/fbdev/sis/init.c SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 2996 drivers/video/fbdev/sis/init.c SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 2997 drivers/video/fbdev/sis/init.c SiS_SetCRT1VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3000 drivers/video/fbdev/sis/init.c switch(SiS_Pr->ChipType) { SiS_Pr 3003 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_300(SiS_Pr, ModeNo, RefreshRateTableIndex); SiS_Pr 3008 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_630(SiS_Pr, ModeNo, RefreshRateTableIndex); SiS_Pr 3013 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_20) { SiS_Pr 3023 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2b,sr2b); SiS_Pr 3024 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x2c,sr2c); SiS_Pr 3025 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c2,(SiS_GetRegByte(SiS_Pr->SiS_P3cc) | 0x0c)); SiS_Pr 3028 drivers/video/fbdev/sis/init.c SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3033 drivers/video/fbdev/sis/init.c SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3036 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType == XGI_40) { SiS_Pr 3037 drivers/video/fbdev/sis/init.c SiS_SetupDualChip(SiS_Pr); SiS_Pr 3041 drivers/video/fbdev/sis/init.c SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3043 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_flag_clearbuffer) { SiS_Pr 3044 drivers/video/fbdev/sis/init.c SiS_ClearBuffer(SiS_Pr, ModeNo); SiS_Pr 3047 drivers/video/fbdev/sis/init.c if(!(SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SwitchCRT2 | SetCRT2ToLCDA))) { SiS_Pr 3048 drivers/video/fbdev/sis/init.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 3049 drivers/video/fbdev/sis/init.c SiS_DisplayOn(SiS_Pr); SiS_Pr 3058 drivers/video/fbdev/sis/init.c SiS_InitVB(struct SiS_Private *SiS_Pr) SiS_Pr 3060 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 3062 drivers/video/fbdev/sis/init.c SiS_Pr->Init_P4_0E = 0; SiS_Pr 3063 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 3064 drivers/video/fbdev/sis/init.c SiS_Pr->Init_P4_0E = ROMAddr[0x82]; SiS_Pr 3065 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= XGI_40) { SiS_Pr 3066 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_XGIROM) { SiS_Pr 3067 drivers/video/fbdev/sis/init.c SiS_Pr->Init_P4_0E = ROMAddr[0x80]; SiS_Pr 3073 drivers/video/fbdev/sis/init.c SiS_ResetVB(struct SiS_Private *SiS_Pr) SiS_Pr 3076 drivers/video/fbdev/sis/init.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 3080 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 3081 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_330) { SiS_Pr 3083 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) temp = ROMAddr[0x80] | 0x40; SiS_Pr 3084 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x02,temp); SiS_Pr 3085 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= SIS_661 && SiS_Pr->ChipType < XGI_20) { SiS_Pr 3087 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_ROMNew) temp = ROMAddr[0x80] | 0x40; SiS_Pr 3088 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x02,temp); SiS_Pr 3090 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType >= XGI_40) { SiS_Pr 3092 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_XGIROM) temp |= ROMAddr[0x7e]; SiS_Pr 3094 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x02,temp); SiS_Pr 3104 drivers/video/fbdev/sis/init.c SiS_StrangeStuff(struct SiS_Private *SiS_Pr) SiS_Pr 3112 drivers/video/fbdev/sis/init.c SiS_Pr->ChipType == SIS_340 || SiS_Pr 3113 drivers/video/fbdev/sis/init.c SiS_Pr->ChipType == XGI_40) { SiS_Pr 3114 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_VidCapt, 0x3f, 0x00); /* Fiddle with capture regs */ SiS_Pr 3115 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_VidCapt, 0x00, 0x00); SiS_Pr 3116 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_VidPlay, 0x00, 0x86); /* (BIOS does NOT unlock) */ SiS_Pr 3117 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_VidPlay, 0x30, 0xfe); /* Fiddle with video regs */ SiS_Pr 3118 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_VidPlay, 0x3f, 0xef); SiS_Pr 3129 drivers/video/fbdev/sis/init.c SiS_Handle760(struct SiS_Private *SiS_Pr) SiS_Pr 3135 drivers/video/fbdev/sis/init.c if( (SiS_Pr->ChipType != SIS_760) || SiS_Pr 3136 drivers/video/fbdev/sis/init.c ((SiS_GetReg(SiS_Pr->SiS_P3d4, 0x5c) & 0xf8) != 0x80) || SiS_Pr 3137 drivers/video/fbdev/sis/init.c (!(SiS_Pr->SiS_SysFlags & SF_760LFB)) || SiS_Pr 3138 drivers/video/fbdev/sis/init.c (!(SiS_Pr->SiS_SysFlags & SF_760UMA)) ) SiS_Pr 3141 drivers/video/fbdev/sis/init.c somebase = sisfb_read_mio_pci_word(SiS_Pr, 0x74); SiS_Pr 3148 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & 0x40) { SiS_Pr 3157 drivers/video/fbdev/sis/init.c sisfb_write_nbridge_pci_byte(SiS_Pr, 0x7e, temp1); SiS_Pr 3158 drivers/video/fbdev/sis/init.c sisfb_write_nbridge_pci_byte(SiS_Pr, 0x8d, temp2); SiS_Pr 3169 drivers/video/fbdev/sis/init.c SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 3171 drivers/video/fbdev/sis/init.c SISIOADDRESS BaseAddr = SiS_Pr->IOAddress; SiS_Pr 3176 drivers/video/fbdev/sis/init.c SiS_Pr->UseCustomMode = false; SiS_Pr 3177 drivers/video/fbdev/sis/init.c SiS_Pr->CRT1UsesCustomMode = false; SiS_Pr 3179 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_flag_clearbuffer = 0; SiS_Pr 3181 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3184 drivers/video/fbdev/sis/init.c if(!(ModeNo & 0x80)) SiS_Pr->SiS_flag_clearbuffer = 1; SiS_Pr 3192 drivers/video/fbdev/sis/init.c SiSInitPtr(SiS_Pr); SiS_Pr 3193 drivers/video/fbdev/sis/init.c SiSRegInit(SiS_Pr, BaseAddr); SiS_Pr 3194 drivers/video/fbdev/sis/init.c SiS_GetSysFlags(SiS_Pr); SiS_Pr 3196 drivers/video/fbdev/sis/init.c SiS_Pr->SiS_VGAINFO = 0x11; SiS_Pr 3198 drivers/video/fbdev/sis/init.c KeepLockReg = SiS_GetReg(SiS_Pr->SiS_P3c4,0x05); SiS_Pr 3199 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x05,0x86); SiS_Pr 3201 drivers/video/fbdev/sis/init.c SiSInitPCIetc(SiS_Pr); SiS_Pr 3202 drivers/video/fbdev/sis/init.c SiSSetLVDSetc(SiS_Pr); SiS_Pr 3203 drivers/video/fbdev/sis/init.c SiSDetermineROMUsage(SiS_Pr); SiS_Pr 3205 drivers/video/fbdev/sis/init.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 3207 drivers/video/fbdev/sis/init.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 3208 drivers/video/fbdev/sis/init.c if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; SiS_Pr 3213 drivers/video/fbdev/sis/init.c SiS_GetVBType(SiS_Pr); SiS_Pr 3216 drivers/video/fbdev/sis/init.c SiS_InitVB(SiS_Pr); SiS_Pr 3217 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 3218 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 3219 drivers/video/fbdev/sis/init.c SiS_ResetVB(SiS_Pr); SiS_Pr 3220 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x32,0x10); SiS_Pr 3221 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_Part2Port,0x00,0x0c); SiS_Pr 3222 drivers/video/fbdev/sis/init.c backupreg = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 3224 drivers/video/fbdev/sis/init.c backupreg = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); SiS_Pr 3229 drivers/video/fbdev/sis/init.c SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, (SiS_Pr->UseCustomMode) ? 0 : 1); SiS_Pr 3230 drivers/video/fbdev/sis/init.c SiS_SetYPbPr(SiS_Pr); SiS_Pr 3231 drivers/video/fbdev/sis/init.c SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3232 drivers/video/fbdev/sis/init.c SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3233 drivers/video/fbdev/sis/init.c SiS_SetLowModeTest(SiS_Pr, ModeNo); SiS_Pr 3236 drivers/video/fbdev/sis/init.c if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) { SiS_Pr 3240 drivers/video/fbdev/sis/init.c SiS_OpenCRTC(SiS_Pr); SiS_Pr 3242 drivers/video/fbdev/sis/init.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3243 drivers/video/fbdev/sis/init.c SiS_Pr->CRT1UsesCustomMode = true; SiS_Pr 3244 drivers/video/fbdev/sis/init.c SiS_Pr->CSRClock_CRT1 = SiS_Pr->CSRClock; SiS_Pr 3245 drivers/video/fbdev/sis/init.c SiS_Pr->CModeFlag_CRT1 = SiS_Pr->CModeFlag; SiS_Pr 3247 drivers/video/fbdev/sis/init.c SiS_Pr->CRT1UsesCustomMode = false; SiS_Pr 3251 drivers/video/fbdev/sis/init.c if( (SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SetCRT2ToLCDA)) || SiS_Pr 3252 drivers/video/fbdev/sis/init.c (!(SiS_Pr->SiS_VBInfo & SwitchCRT2)) ) { SiS_Pr 3253 drivers/video/fbdev/sis/init.c SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3257 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBInfo & (SetSimuScanMode | SwitchCRT2 | SetCRT2ToLCDA)) { SiS_Pr 3258 drivers/video/fbdev/sis/init.c if( (SiS_Pr->SiS_VBType & VB_SISVB) || SiS_Pr 3259 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_IF_DEF_LVDS == 1) || SiS_Pr 3260 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_IF_DEF_CH70xx != 0) || SiS_Pr 3261 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_IF_DEF_TRUMPION != 0) ) { SiS_Pr 3262 drivers/video/fbdev/sis/init.c SiS_SetCRT2Group(SiS_Pr, RealModeNo); SiS_Pr 3266 drivers/video/fbdev/sis/init.c SiS_HandleCRT1(SiS_Pr); SiS_Pr 3268 drivers/video/fbdev/sis/init.c SiS_StrangeStuff(SiS_Pr); SiS_Pr 3270 drivers/video/fbdev/sis/init.c SiS_DisplayOn(SiS_Pr); SiS_Pr 3271 drivers/video/fbdev/sis/init.c SiS_SetRegByte(SiS_Pr->SiS_P3c6,0xFF); SiS_Pr 3274 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 3275 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 3276 drivers/video/fbdev/sis/init.c if(!(SiS_IsDualEdge(SiS_Pr))) { SiS_Pr 3277 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x13,0xfb); SiS_Pr 3283 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 3284 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 3286 drivers/video/fbdev/sis/init.c if(!SiS_Pr->SiS_ROMNew) { SiS_Pr 3287 drivers/video/fbdev/sis/init.c if(SiS_IsVAMode(SiS_Pr)) { SiS_Pr 3288 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x35,0x01); SiS_Pr 3290 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x35,0xFE); SiS_Pr 3294 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x38,backupreg); SiS_Pr 3296 drivers/video/fbdev/sis/init.c if((IS_SIS650) && (SiS_GetReg(SiS_Pr->SiS_P3d4,0x30) & 0xfc)) { SiS_Pr 3298 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x51,0x80); SiS_Pr 3299 drivers/video/fbdev/sis/init.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x56,0x08); SiS_Pr 3303 drivers/video/fbdev/sis/init.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x30) & SetCRT2ToLCD) { SiS_Pr 3304 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x38,0xfc); SiS_Pr 3307 drivers/video/fbdev/sis/init.c } else if((SiS_Pr->ChipType == SIS_630) || SiS_Pr 3308 drivers/video/fbdev/sis/init.c (SiS_Pr->ChipType == SIS_730)) { SiS_Pr 3309 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x35,backupreg); SiS_Pr 3313 drivers/video/fbdev/sis/init.c SiS_CloseCRTC(SiS_Pr); SiS_Pr 3315 drivers/video/fbdev/sis/init.c SiS_Handle760(SiS_Pr); SiS_Pr 3318 drivers/video/fbdev/sis/init.c if(KeepLockReg != 0xA1) SiS_SetReg(SiS_Pr->SiS_P3c4,0x05,0x00); SiS_Pr 3330 drivers/video/fbdev/sis/init.c SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth) SiS_Pr 3334 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[0] = ((SiS_Pr->CHTotal >> 3) - 5) & 0xff; /* CR0 */ SiS_Pr 3335 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[1] = (SiS_Pr->CHDisplay >> 3) - 1; /* CR1 */ SiS_Pr 3336 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[2] = (SiS_Pr->CHBlankStart >> 3) - 1; /* CR2 */ SiS_Pr 3337 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[3] = (((SiS_Pr->CHBlankEnd >> 3) - 1) & 0x1F) | 0x80; /* CR3 */ SiS_Pr 3338 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[4] = (SiS_Pr->CHSyncStart >> 3) + 3; /* CR4 */ SiS_Pr 3339 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[5] = ((((SiS_Pr->CHBlankEnd >> 3) - 1) & 0x20) << 2) | /* CR5 */ SiS_Pr 3340 drivers/video/fbdev/sis/init.c (((SiS_Pr->CHSyncEnd >> 3) + 3) & 0x1F); SiS_Pr 3342 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[6] = (SiS_Pr->CVTotal - 2) & 0xFF; /* CR6 */ SiS_Pr 3343 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[7] = (((SiS_Pr->CVTotal - 2) & 0x100) >> 8) /* CR7 */ SiS_Pr 3344 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVDisplay - 1) & 0x100) >> 7) SiS_Pr 3345 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVSyncStart - x) & 0x100) >> 6) SiS_Pr 3346 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVBlankStart- 1) & 0x100) >> 5) SiS_Pr 3348 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVTotal - 2) & 0x200) >> 4) SiS_Pr 3349 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVDisplay - 1) & 0x200) >> 3) SiS_Pr 3350 drivers/video/fbdev/sis/init.c | (((SiS_Pr->CVSyncStart - x) & 0x200) >> 2); SiS_Pr 3352 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[16] = ((((SiS_Pr->CVBlankStart - 1) & 0x200) >> 4) >> 5); /* CR9 */ SiS_Pr 3355 drivers/video/fbdev/sis/init.c if(SiS_Pr->CHDisplay >= 1600) SiS_Pr->CCRT1CRTC[16] |= 0x60; /* SRE */ SiS_Pr 3356 drivers/video/fbdev/sis/init.c else if(SiS_Pr->CHDisplay >= 640) SiS_Pr->CCRT1CRTC[16] |= 0x40; SiS_Pr 3359 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[8] = (SiS_Pr->CVSyncStart - x) & 0xFF; /* CR10 */ SiS_Pr 3360 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[9] = ((SiS_Pr->CVSyncEnd - x) & 0x0F) | 0x80; /* CR11 */ SiS_Pr 3361 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[10] = (SiS_Pr->CVDisplay - 1) & 0xFF; /* CR12 */ SiS_Pr 3362 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[11] = (SiS_Pr->CVBlankStart - 1) & 0xFF; /* CR15 */ SiS_Pr 3363 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[12] = (SiS_Pr->CVBlankEnd - 1) & 0xFF; /* CR16 */ SiS_Pr 3365 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[13] = /* SRA */ SiS_Pr 3366 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVTotal -2), 10:10, 0:0) | SiS_Pr 3367 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVDisplay -1), 10:10, 1:1) | SiS_Pr 3368 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVBlankStart-1), 10:10, 2:2) | SiS_Pr 3369 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVSyncStart -x), 10:10, 3:3) | SiS_Pr 3370 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVBlankEnd -1), 8:8, 4:4) | SiS_Pr 3371 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CVSyncEnd ), 4:4, 5:5) ; SiS_Pr 3373 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[14] = /* SRB */ SiS_Pr 3374 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHTotal >> 3) - 5, 9:8, 1:0) | SiS_Pr 3375 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHDisplay >> 3) - 1, 9:8, 3:2) | SiS_Pr 3376 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHBlankStart >> 3) - 1, 9:8, 5:4) | SiS_Pr 3377 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHSyncStart >> 3) + 3, 9:8, 7:6) ; SiS_Pr 3380 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[15] = /* SRC */ SiS_Pr 3381 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHBlankEnd >> 3) - 1, 7:6, 1:0) | SiS_Pr 3382 drivers/video/fbdev/sis/init.c GETBITSTR((SiS_Pr->CHSyncEnd >> 3) + 3, 5:5, 2:2) ; SiS_Pr 3386 drivers/video/fbdev/sis/init.c SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 3390 drivers/video/fbdev/sis/init.c unsigned short VGAHDE = SiS_Pr->SiS_VGAHDE; SiS_Pr 3394 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) return; SiS_Pr 3396 drivers/video/fbdev/sis/init.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3400 drivers/video/fbdev/sis/init.c SiS_Pr->CHDisplay = VGAHDE; SiS_Pr 3401 drivers/video/fbdev/sis/init.c SiS_Pr->CHBlankStart = VGAHDE; SiS_Pr 3403 drivers/video/fbdev/sis/init.c SiS_Pr->CVDisplay = SiS_Pr->SiS_VGAVDE; SiS_Pr 3404 drivers/video/fbdev/sis/init.c SiS_Pr->CVBlankStart = SiS_Pr->SiS_VGAVDE; SiS_Pr 3406 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3408 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->SiS_VGAHT; SiS_Pr 3409 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3410 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelHT; SiS_Pr 3418 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelHT - SiS_Pr->PanelXRes; SiS_Pr 3419 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->SiS_VGAHDE; /* not /2 ! */ SiS_Pr 3420 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3421 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->PanelXRes; SiS_Pr 3427 drivers/video/fbdev/sis/init.c SiS_Pr->CHTotal = SiS_Pr->CHBlankEnd = tempbx; SiS_Pr 3429 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3431 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_VGAHDE == SiS_Pr->PanelXRes) { SiS_Pr 3432 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart = SiS_Pr->SiS_VGAHDE + ((SiS_Pr->PanelHRS + 1) & ~1); SiS_Pr 3433 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd = SiS_Pr->CHSyncStart + SiS_Pr->PanelHRE; SiS_Pr 3435 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart >>= 1; SiS_Pr 3436 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd >>= 1; SiS_Pr 3438 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3439 drivers/video/fbdev/sis/init.c tempax = (SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE) >> 1; SiS_Pr 3440 drivers/video/fbdev/sis/init.c tempbx = (SiS_Pr->PanelHRS + 1) & ~1; SiS_Pr 3445 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart = (VGAHDE + tempax + tempbx + 7) & ~7; SiS_Pr 3446 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->PanelHRE + 7; SiS_Pr 3448 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd = (SiS_Pr->CHSyncStart + tempax) & ~7; SiS_Pr 3450 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart = SiS_Pr->SiS_VGAHDE; SiS_Pr 3452 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart >>= 1; SiS_Pr 3453 drivers/video/fbdev/sis/init.c tempax = ((SiS_Pr->CHTotal - SiS_Pr->CHSyncStart) / 3) << 1; SiS_Pr 3454 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd = SiS_Pr->CHSyncStart + tempax; SiS_Pr 3456 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd = (SiS_Pr->CHSyncStart + (SiS_Pr->CHTotal / 10) + 7) & ~7; SiS_Pr 3457 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart += 8; SiS_Pr 3464 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3465 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelXRes; SiS_Pr 3469 drivers/video/fbdev/sis/init.c tempax += SiS_Pr->PanelHRS; SiS_Pr 3470 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncStart = tempax; SiS_Pr 3471 drivers/video/fbdev/sis/init.c tempax += SiS_Pr->PanelHRE; SiS_Pr 3472 drivers/video/fbdev/sis/init.c SiS_Pr->CHSyncEnd = tempax; SiS_Pr 3476 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->PanelVT - SiS_Pr->PanelYRes; SiS_Pr 3477 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->SiS_VGAVDE; SiS_Pr 3478 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3479 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->PanelYRes; SiS_Pr 3480 drivers/video/fbdev/sis/init.c } else if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3483 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 3485 drivers/video/fbdev/sis/init.c } else if((SiS_Pr->SiS_LCDResInfo == Panel_800x600) || SiS_Pr 3486 drivers/video/fbdev/sis/init.c (SiS_Pr->SiS_LCDResInfo == Panel_1024x600)) { SiS_Pr 3488 drivers/video/fbdev/sis/init.c tempbx = SiS_Pr->SiS_VGAVT; SiS_Pr 3492 drivers/video/fbdev/sis/init.c SiS_Pr->CVTotal = SiS_Pr->CVBlankEnd = tempbx + tempax; SiS_Pr 3494 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->SiS_VGAVDE; SiS_Pr 3495 drivers/video/fbdev/sis/init.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3496 drivers/video/fbdev/sis/init.c tempax += (SiS_Pr->PanelYRes - tempax) >> 1; SiS_Pr 3498 drivers/video/fbdev/sis/init.c tempax += SiS_Pr->PanelVRS; SiS_Pr 3499 drivers/video/fbdev/sis/init.c SiS_Pr->CVSyncStart = tempax; SiS_Pr 3500 drivers/video/fbdev/sis/init.c tempax += SiS_Pr->PanelVRE; SiS_Pr 3501 drivers/video/fbdev/sis/init.c SiS_Pr->CVSyncEnd = tempax; SiS_Pr 3502 drivers/video/fbdev/sis/init.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3503 drivers/video/fbdev/sis/init.c SiS_Pr->CVSyncStart--; SiS_Pr 3504 drivers/video/fbdev/sis/init.c SiS_Pr->CVSyncEnd--; SiS_Pr 3507 drivers/video/fbdev/sis/init.c SiS_CalcCRRegisters(SiS_Pr, 8); SiS_Pr 3508 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[15] &= ~0xF8; SiS_Pr 3509 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[15] |= (remaining << 4); SiS_Pr 3510 drivers/video/fbdev/sis/init.c SiS_Pr->CCRT1CRTC[16] &= ~0xE0; SiS_Pr 3512 drivers/video/fbdev/sis/init.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f); SiS_Pr 3515 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); SiS_Pr 3518 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); SiS_Pr 3521 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3d4,j,SiS_Pr->CCRT1CRTC[i]); SiS_Pr 3524 drivers/video/fbdev/sis/init.c SiS_SetReg(SiS_Pr->SiS_P3c4,j,SiS_Pr->CCRT1CRTC[i]); SiS_Pr 3527 drivers/video/fbdev/sis/init.c tempax = SiS_Pr->CCRT1CRTC[16] & 0xE0; SiS_Pr 3528 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1F,tempax); SiS_Pr 3530 drivers/video/fbdev/sis/init.c tempax = (SiS_Pr->CCRT1CRTC[16] & 0x01) << 5; SiS_Pr 3532 drivers/video/fbdev/sis/init.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,0x5F,tempax); SiS_Pr 3537 drivers/video/fbdev/sis/init.c SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, SiS_Pr 367 drivers/video/fbdev/sis/init301.c static void SiS_Chrontel701xOn(struct SiS_Private *SiS_Pr); SiS_Pr 368 drivers/video/fbdev/sis/init301.c static void SiS_Chrontel701xOff(struct SiS_Private *SiS_Pr); SiS_Pr 369 drivers/video/fbdev/sis/init301.c static void SiS_ChrontelInitTVVSync(struct SiS_Private *SiS_Pr); SiS_Pr 370 drivers/video/fbdev/sis/init301.c static void SiS_ChrontelDoSomething1(struct SiS_Private *SiS_Pr); SiS_Pr 374 drivers/video/fbdev/sis/init301.c static bool SiS_SetTrumpionBlock(struct SiS_Private *SiS_Pr, unsigned char *dataptr); SiS_Pr 377 drivers/video/fbdev/sis/init301.c static unsigned short SiS_InitDDCRegs(struct SiS_Private *SiS_Pr, unsigned int VBFlags, SiS_Pr 380 drivers/video/fbdev/sis/init301.c static unsigned short SiS_ProbeDDC(struct SiS_Private *SiS_Pr); SiS_Pr 381 drivers/video/fbdev/sis/init301.c static unsigned short SiS_ReadDDC(struct SiS_Private *SiS_Pr, unsigned short DDCdatatype, SiS_Pr 383 drivers/video/fbdev/sis/init301.c static void SiS_SetSwitchDDC2(struct SiS_Private *SiS_Pr); SiS_Pr 384 drivers/video/fbdev/sis/init301.c static unsigned short SiS_SetStart(struct SiS_Private *SiS_Pr); SiS_Pr 385 drivers/video/fbdev/sis/init301.c static unsigned short SiS_SetStop(struct SiS_Private *SiS_Pr); SiS_Pr 386 drivers/video/fbdev/sis/init301.c static unsigned short SiS_SetSCLKLow(struct SiS_Private *SiS_Pr); SiS_Pr 387 drivers/video/fbdev/sis/init301.c static unsigned short SiS_SetSCLKHigh(struct SiS_Private *SiS_Pr); SiS_Pr 388 drivers/video/fbdev/sis/init301.c static unsigned short SiS_ReadDDC2Data(struct SiS_Private *SiS_Pr); SiS_Pr 389 drivers/video/fbdev/sis/init301.c static unsigned short SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax); SiS_Pr 390 drivers/video/fbdev/sis/init301.c static unsigned short SiS_CheckACK(struct SiS_Private *SiS_Pr); SiS_Pr 391 drivers/video/fbdev/sis/init301.c static unsigned short SiS_WriteDABDDC(struct SiS_Private *SiS_Pr); SiS_Pr 392 drivers/video/fbdev/sis/init301.c static unsigned short SiS_PrepareReadDDC(struct SiS_Private *SiS_Pr); SiS_Pr 393 drivers/video/fbdev/sis/init301.c static unsigned short SiS_PrepareDDC(struct SiS_Private *SiS_Pr); SiS_Pr 394 drivers/video/fbdev/sis/init301.c static void SiS_SendACK(struct SiS_Private *SiS_Pr, unsigned short yesno); SiS_Pr 395 drivers/video/fbdev/sis/init301.c static unsigned short SiS_DoProbeDDC(struct SiS_Private *SiS_Pr); SiS_Pr 398 drivers/video/fbdev/sis/init301.c static void SiS_OEM300Setting(struct SiS_Private *SiS_Pr, SiS_Pr 400 drivers/video/fbdev/sis/init301.c static void SetOEMLCDData2(struct SiS_Private *SiS_Pr, SiS_Pr 404 drivers/video/fbdev/sis/init301.c static void SiS_OEM310Setting(struct SiS_Private *SiS_Pr, SiS_Pr 406 drivers/video/fbdev/sis/init301.c static void SiS_OEM661Setting(struct SiS_Private *SiS_Pr, SiS_Pr 411 drivers/video/fbdev/sis/init301.c static unsigned short SiS_GetBIOSLCDResInfo(struct SiS_Private *SiS_Pr); SiS_Pr 412 drivers/video/fbdev/sis/init301.c static void SiS_SetCH70xx(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val); SiS_Pr 419 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(struct SiS_Private *SiS_Pr) SiS_Pr 421 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == XGI_20) SiS_Pr 423 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->ChipType >= SIS_315H) SiS_Pr 424 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2f,0x01); SiS_Pr 426 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); SiS_Pr 431 drivers/video/fbdev/sis/init301.c SiS_LockCRT2(struct SiS_Private *SiS_Pr) SiS_Pr 433 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == XGI_20) SiS_Pr 435 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->ChipType >= SIS_315H) SiS_Pr 436 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2F,0xFE); SiS_Pr 438 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x24,0xFE); SiS_Pr 446 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(struct SiS_Private *SiS_Pr, unsigned short DataAND, unsigned short DataOR) SiS_Pr 448 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 452 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x11,DataAND,DataOR); SiS_Pr 461 drivers/video/fbdev/sis/init301.c GetLCDStructPtr661(struct SiS_Private *SiS_Pr) SiS_Pr 463 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 474 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_ROMNew) && SiS_Pr 475 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_SISLVDS) || (!SiS_Pr->PanelSelfDetected))) { SiS_Pr 477 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_661) reg = 0x3c; SiS_Pr 480 drivers/video/fbdev/sis/init301.c idx = (SiS_GetReg(SiS_Pr->SiS_P3d4,reg) & 0x1f) * 26; SiS_Pr 495 drivers/video/fbdev/sis/init301.c GetLCDStructPtr661_2(struct SiS_Private *SiS_Pr) SiS_Pr 497 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 507 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_ROMNew) && SiS_Pr 508 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_SISLVDS) || (!SiS_Pr->PanelSelfDetected))) { SiS_Pr 510 drivers/video/fbdev/sis/init301.c romptr += ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) * SiS_Pr->SiS661LCD2TableSize); SiS_Pr 522 drivers/video/fbdev/sis/init301.c SiS_AdjustCRT2Rate(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 527 drivers/video/fbdev/sis/init301.c modeid = SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID; SiS_Pr 529 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 531 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) { SiS_Pr 534 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 536 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 538 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISRAMDAC202) { SiS_Pr 544 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 547 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 548 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 549 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 555 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 559 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToYPbPr525750|SetCRT2ToAVIDEO|SetCRT2ToSVIDEO|SetCRT2ToSCART)) { SiS_Pr 562 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 564 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 565 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) { SiS_Pr 575 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 576 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 581 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 588 drivers/video/fbdev/sis/init301.c for(; SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID == modeid; (*i)--) { SiS_Pr 589 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->SiS_RefIndex[RRTI + (*i)].Ext_InfoFlag; SiS_Pr 598 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_RefIndex[RRTI + (*i)].ModeID != modeid) break; SiS_Pr 599 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->SiS_RefIndex[RRTI + (*i)].Ext_InfoFlag; SiS_Pr 610 drivers/video/fbdev/sis/init301.c SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 626 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 628 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 631 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 632 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 639 drivers/video/fbdev/sis/init301.c index = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x33) >> SiS_Pr->SiS_SelectCRT2Rate) & 0x0F; SiS_Pr 644 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & ProgrammingCRT2) { SiS_Pr 645 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 646 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 647 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_NoLCD) index = 0; SiS_Pr 648 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) index = backupindex = 0; SiS_Pr 650 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 651 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_NoLCD)) { SiS_Pr 652 drivers/video/fbdev/sis/init301.c temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; SiS_Pr 657 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) index = 0; SiS_Pr 658 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 659 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) index = 0; SiS_Pr 664 drivers/video/fbdev/sis/init301.c RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; SiS_Pr 665 drivers/video/fbdev/sis/init301.c ModeNo = SiS_Pr->SiS_RefIndex[RRTI].ModeID; SiS_Pr 667 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 668 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & DriverMode)) { SiS_Pr 669 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_VESAID == 0x105) || SiS_Pr 670 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_VESAID == 0x107) ) { SiS_Pr 678 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_RefIndex[RRTI + i].ModeID != ModeNo) break; SiS_Pr 679 drivers/video/fbdev/sis/init301.c temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; SiS_Pr 681 drivers/video/fbdev/sis/init301.c if(temp < SiS_Pr->SiS_ModeType) break; SiS_Pr 686 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC)) { SiS_Pr 687 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 688 drivers/video/fbdev/sis/init301.c temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; SiS_Pr 695 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_SetFlag & ProgrammingCRT2) && (!(SiS_Pr->SiS_VBInfo & DisableCRT2Display))) { SiS_Pr 697 drivers/video/fbdev/sis/init301.c if(!(SiS_AdjustCRT2Rate(SiS_Pr, ModeNo, ModeIdIndex, RRTI, &i))) { SiS_Pr 710 drivers/video/fbdev/sis/init301.c SiS_SaveCRT2Info(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 715 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3d4,0x34,ModeNo); SiS_Pr 716 drivers/video/fbdev/sis/init301.c temp1 = (SiS_Pr->SiS_VBInfo & SetInSlaveMode) >> 8; SiS_Pr 718 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x31,temp2,temp1); SiS_Pr 727 drivers/video/fbdev/sis/init301.c SiS_CR36BIOSWord23b(struct SiS_Private *SiS_Pr) SiS_Pr 729 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 732 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 734 drivers/video/fbdev/sis/init301.c temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); SiS_Pr 743 drivers/video/fbdev/sis/init301.c SiS_CR36BIOSWord23d(struct SiS_Private *SiS_Pr) SiS_Pr 745 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 748 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 750 drivers/video/fbdev/sis/init301.c temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); SiS_Pr 764 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime) SiS_Pr 767 drivers/video/fbdev/sis/init301.c SiS_GetReg(SiS_Pr->SiS_P3c4, 0x05); SiS_Pr 772 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(struct SiS_Private *SiS_Pr, unsigned short delay) SiS_Pr 774 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr, delay * 36); SiS_Pr 780 drivers/video/fbdev/sis/init301.c SiS_LongDelay(struct SiS_Private *SiS_Pr, unsigned short delay) SiS_Pr 783 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 6623); SiS_Pr 790 drivers/video/fbdev/sis/init301.c SiS_ShortDelay(struct SiS_Private *SiS_Pr, unsigned short delay) SiS_Pr 793 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 66); SiS_Pr 799 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(struct SiS_Private *SiS_Pr, unsigned short DelayTime) SiS_Pr 802 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 806 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 810 drivers/video/fbdev/sis/init301.c PanelID = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36); SiS_Pr 811 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 812 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) PanelID &= 0xf7; SiS_Pr 813 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x18) & 0x10)) PanelID = 0x12; SiS_Pr 821 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTbl[DelayIndex].timer[0]; SiS_Pr 823 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTbl[DelayIndex].timer[1]; SiS_Pr 825 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 832 drivers/video/fbdev/sis/init301.c SiS_ShortDelay(SiS_Pr, Delay); SiS_Pr 840 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_661) || SiS_Pr 841 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType <= SIS_315PRO) || SiS_Pr 842 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType == SIS_330) || SiS_Pr 843 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_ROMNew)) { SiS_Pr 846 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr, 0x1000); SiS_Pr 848 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr, 0x4000); SiS_Pr 851 drivers/video/fbdev/sis/init301.c } else if (SiS_Pr->SiS_IF_DEF_LVDS == 1) { /* 315 series, LVDS; Special */ SiS_Pr 853 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 854 drivers/video/fbdev/sis/init301.c PanelID = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36); SiS_Pr 855 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_CLEVO1400) { SiS_Pr 856 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x1b) & 0x10)) PanelID = 0x12; SiS_Pr 858 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) { SiS_Pr 868 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTblLVDS[DelayIndex].timer[0]; SiS_Pr 870 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTblLVDS[DelayIndex].timer[1]; SiS_Pr 872 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 882 drivers/video/fbdev/sis/init301.c SiS_ShortDelay(SiS_Pr, Delay); SiS_Pr 885 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { /* 315 series, all bridges */ SiS_Pr 887 drivers/video/fbdev/sis/init301.c DelayIndex = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4; SiS_Pr 889 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTbl[DelayIndex].timer[0]; SiS_Pr 891 drivers/video/fbdev/sis/init301.c Delay = SiS_Pr->SiS_PanelDelayTbl[DelayIndex].timer[1]; SiS_Pr 894 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr, Delay); SiS_Pr 905 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(struct SiS_Private *SiS_Pr, unsigned short DelayTime, unsigned short DelayLoop) SiS_Pr 909 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, DelayTime); SiS_Pr 919 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(struct SiS_Private *SiS_Pr) SiS_Pr 923 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x1f) & 0xc0) return; SiS_Pr 924 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3d4,0x17) & 0x80)) return; SiS_Pr 927 drivers/video/fbdev/sis/init301.c while((SiS_GetRegByte(SiS_Pr->SiS_P3da) & 0x08) && --watchdog); SiS_Pr 929 drivers/video/fbdev/sis/init301.c while((!(SiS_GetRegByte(SiS_Pr->SiS_P3da) & 0x08)) && --watchdog); SiS_Pr 934 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace2(struct SiS_Private *SiS_Pr, unsigned short reg) SiS_Pr 939 drivers/video/fbdev/sis/init301.c while((SiS_GetReg(SiS_Pr->SiS_Part1Port,reg) & 0x02) && --watchdog); SiS_Pr 941 drivers/video/fbdev/sis/init301.c while((!(SiS_GetReg(SiS_Pr->SiS_Part1Port,reg) & 0x02)) && --watchdog); SiS_Pr 946 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(struct SiS_Private *SiS_Pr) SiS_Pr 948 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 950 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 951 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x20)) return; SiS_Pr 953 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x80)) { SiS_Pr 954 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 956 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace2(SiS_Pr, 0x25); SiS_Pr 961 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x40)) { SiS_Pr 962 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 964 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace2(SiS_Pr, 0x30); SiS_Pr 971 drivers/video/fbdev/sis/init301.c SiS_VBWait(struct SiS_Private *SiS_Pr) SiS_Pr 978 drivers/video/fbdev/sis/init301.c tempal = SiS_GetRegByte(SiS_Pr->SiS_P3da); SiS_Pr 992 drivers/video/fbdev/sis/init301.c SiS_VBLongWait(struct SiS_Private *SiS_Pr) SiS_Pr 994 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 995 drivers/video/fbdev/sis/init301.c SiS_VBWait(SiS_Pr); SiS_Pr 997 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 1007 drivers/video/fbdev/sis/init301.c SiS_Is301B(struct SiS_Private *SiS_Pr) SiS_Pr 1009 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part4Port,0x01) >= 0xb0) return true; SiS_Pr 1015 drivers/video/fbdev/sis/init301.c SiS_CRT2IsLCD(struct SiS_Private *SiS_Pr) SiS_Pr 1017 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 1018 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x20) return true; SiS_Pr 1020 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x30) & 0x20) return true; SiS_Pr 1025 drivers/video/fbdev/sis/init301.c SiS_IsDualEdge(struct SiS_Private *SiS_Pr) SiS_Pr 1028 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1029 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType != SIS_650) || (SiS_GetReg(SiS_Pr->SiS_P3d4,0x5f) & 0xf0)) { SiS_Pr 1030 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x38) & EnableDualEdge) return true; SiS_Pr 1038 drivers/video/fbdev/sis/init301.c SiS_IsVAMode(struct SiS_Private *SiS_Pr) SiS_Pr 1043 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1044 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1053 drivers/video/fbdev/sis/init301.c SiS_IsVAorLCD(struct SiS_Private *SiS_Pr) SiS_Pr 1055 drivers/video/fbdev/sis/init301.c if(SiS_IsVAMode(SiS_Pr)) return true; SiS_Pr 1056 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) return true; SiS_Pr 1062 drivers/video/fbdev/sis/init301.c SiS_IsDualLink(struct SiS_Private *SiS_Pr) SiS_Pr 1065 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1066 drivers/video/fbdev/sis/init301.c if((SiS_CRT2IsLCD(SiS_Pr)) || SiS_Pr 1067 drivers/video/fbdev/sis/init301.c (SiS_IsVAMode(SiS_Pr))) { SiS_Pr 1068 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDDualLink) return true; SiS_Pr 1077 drivers/video/fbdev/sis/init301.c SiS_TVEnabled(struct SiS_Private *SiS_Pr) SiS_Pr 1079 drivers/video/fbdev/sis/init301.c if((SiS_GetReg(SiS_Pr->SiS_Part2Port,0x00) & 0x0f) != 0x0c) return true; SiS_Pr 1080 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISYPBPR) { SiS_Pr 1081 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part2Port,0x4d) & 0x10) return true; SiS_Pr 1089 drivers/video/fbdev/sis/init301.c SiS_LCDAEnabled(struct SiS_Private *SiS_Pr) SiS_Pr 1091 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x13) & 0x04) return true; SiS_Pr 1098 drivers/video/fbdev/sis/init301.c SiS_WeHaveBacklightCtrl(struct SiS_Private *SiS_Pr) SiS_Pr 1100 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->ChipType < SIS_661)) { SiS_Pr 1101 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x79) & 0x10) return true; SiS_Pr 1109 drivers/video/fbdev/sis/init301.c SiS_IsNotM650orLater(struct SiS_Private *SiS_Pr) SiS_Pr 1113 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_650) { SiS_Pr 1114 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x5f) & 0xf0; SiS_Pr 1118 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_661) return false; SiS_Pr 1125 drivers/video/fbdev/sis/init301.c SiS_IsYPbPr(struct SiS_Private *SiS_Pr) SiS_Pr 1127 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1129 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x38) & EnableCHYPbPr) return true; SiS_Pr 1137 drivers/video/fbdev/sis/init301.c SiS_IsChScart(struct SiS_Private *SiS_Pr) SiS_Pr 1139 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1141 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x38) & EnableCHScart) return true; SiS_Pr 1149 drivers/video/fbdev/sis/init301.c SiS_IsTVOrYPbPrOrScart(struct SiS_Private *SiS_Pr) SiS_Pr 1153 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1154 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 1156 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1160 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 1169 drivers/video/fbdev/sis/init301.c SiS_IsLCDOrLCDA(struct SiS_Private *SiS_Pr) SiS_Pr 1173 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1174 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 1176 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1179 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 1187 drivers/video/fbdev/sis/init301.c SiS_HaveBridge(struct SiS_Private *SiS_Pr) SiS_Pr 1191 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 1193 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1194 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x00); SiS_Pr 1201 drivers/video/fbdev/sis/init301.c SiS_BridgeIsEnabled(struct SiS_Private *SiS_Pr) SiS_Pr 1205 drivers/video/fbdev/sis/init301.c if(SiS_HaveBridge(SiS_Pr)) { SiS_Pr 1206 drivers/video/fbdev/sis/init301.c flag = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); SiS_Pr 1207 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 1219 drivers/video/fbdev/sis/init301.c SiS_BridgeInSlavemode(struct SiS_Private *SiS_Pr) SiS_Pr 1223 drivers/video/fbdev/sis/init301.c flag1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31); SiS_Pr 1235 drivers/video/fbdev/sis/init301.c SiS_SetChrontelGPIO(struct SiS_Private *SiS_Pr, unsigned short myvbinfo) SiS_Pr 1240 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_ChSW)) return; SiS_Pr 1242 drivers/video/fbdev/sis/init301.c acpibase = sisfb_read_lpc_pci_dword(SiS_Pr, 0x74); SiS_Pr 1258 drivers/video/fbdev/sis/init301.c SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 1264 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag = 0; SiS_Pr 1266 drivers/video/fbdev/sis/init301.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 1268 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_ModeType = modeflag & ModeTypeMask; SiS_Pr 1270 drivers/video/fbdev/sis/init301.c if((ModeNo > 0x13) && (!SiS_Pr->UseCustomMode)) { SiS_Pr 1271 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 1276 drivers/video/fbdev/sis/init301.c if(SiS_HaveBridge(SiS_Pr)) { SiS_Pr 1278 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 1280 drivers/video/fbdev/sis/init301.c tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8; SiS_Pr 1285 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1286 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLCDA) { SiS_Pr 1289 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x31,0xbf); SiS_Pr 1291 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & (DriverMode >> 8))) { SiS_Pr 1293 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x38,0xfc); SiS_Pr 1296 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseLCDA) { SiS_Pr 1297 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x5f) & 0xF0) { SiS_Pr 1298 drivers/video/fbdev/sis/init301.c if((ModeNo <= 0x13) || (!(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & (DriverMode >> 8)))) { SiS_Pr 1299 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x38,(EnableDualEdge | SetToLCDA)); SiS_Pr 1304 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1310 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { /* New CR layout */ SiS_Pr 1312 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x38) & 0x04) { SiS_Pr 1313 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35) & 0xe0; SiS_Pr 1315 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VBType & VB_SISYPBPR) { SiS_Pr 1321 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 1322 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1326 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1336 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SISVGA2)) { SiS_Pr 1340 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1350 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1351 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1363 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1376 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1396 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1401 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1409 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1426 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType <= ModeVGA) { SiS_Pr 1427 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_LVDS == 1) || SiS_Pr 1428 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) { SiS_Pr 1441 drivers/video/fbdev/sis/init301.c if(SiS_BridgeIsEnabled(SiS_Pr)) { SiS_Pr 1443 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 1467 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo = tempbx; SiS_Pr 1470 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_630) { SiS_Pr 1471 drivers/video/fbdev/sis/init301.c SiS_SetChrontelGPIO(SiS_Pr, SiS_Pr->SiS_VBInfo); SiS_Pr 1477 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo, SiS_Pr->SiS_SetFlag); SiS_Pr 1486 drivers/video/fbdev/sis/init301.c SiS_SetYPbPr(struct SiS_Private *SiS_Pr) SiS_Pr 1499 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_YPbPr = 0; SiS_Pr 1500 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) return; SiS_Pr 1502 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType) { SiS_Pr 1503 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 1504 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_YPbPr = YPbPrHiVision; SiS_Pr 1508 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1509 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISYPBPR) { SiS_Pr 1510 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1513 drivers/video/fbdev/sis/init301.c case 0x00: SiS_Pr->SiS_YPbPr = YPbPr525i; break; SiS_Pr 1514 drivers/video/fbdev/sis/init301.c case 0x01: SiS_Pr->SiS_YPbPr = YPbPr525p; break; SiS_Pr 1515 drivers/video/fbdev/sis/init301.c case 0x02: SiS_Pr->SiS_YPbPr = YPbPr750p; break; SiS_Pr 1516 drivers/video/fbdev/sis/init301.c case 0x03: SiS_Pr->SiS_YPbPr = YPbPrHiVision; break; SiS_Pr 1529 drivers/video/fbdev/sis/init301.c SiS_SetTVMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 1531 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 1533 drivers/video/fbdev/sis/init301.c unsigned char OutputSelect = *SiS_Pr->pSiS_OutputSelect; SiS_Pr 1535 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode = 0; SiS_Pr 1537 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) return; SiS_Pr 1538 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) return; SiS_Pr 1541 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 1544 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 1546 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetPALTV) SiS_Pr->SiS_TVMode |= TVSetPAL; SiS_Pr 1548 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1550 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType == SIS_630) || SiS_Pr 1551 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType == SIS_730)) { SiS_Pr 1554 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1556 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < XGI_20) { SiS_Pr 1558 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_330) romindex = 0x11b; SiS_Pr 1562 drivers/video/fbdev/sis/init301.c if(romindex && SiS_Pr->SiS_UseROM && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 1565 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,temp,0x3F); SiS_Pr 1568 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,temp); SiS_Pr 1569 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 1571 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPALM; SiS_Pr 1572 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~TVSetPAL; SiS_Pr 1574 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPALN; SiS_Pr 1578 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetNTSCJ; SiS_Pr 1583 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 1584 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_YPbPr == YPbPr750p) SiS_Pr->SiS_TVMode |= TVSetYPbPr750p; SiS_Pr 1585 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_YPbPr == YPbPr525p) SiS_Pr->SiS_TVMode |= TVSetYPbPr525p; SiS_Pr 1586 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_YPbPr == YPbPrHiVision) SiS_Pr->SiS_TVMode |= TVSetHiVision; SiS_Pr 1587 drivers/video/fbdev/sis/init301.c else SiS_Pr->SiS_TVMode |= TVSetYPbPr525i; SiS_Pr 1588 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetYPbPr750p | TVSetYPbPr525p | TVSetYPbPr525i)) { SiS_Pr 1589 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo &= ~SetCRT2ToHiVision; SiS_Pr 1590 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo |= SetCRT2ToYPbPr525750; SiS_Pr 1591 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetHiVision) { SiS_Pr 1592 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPAL; SiS_Pr 1595 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 1596 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHOverScan) { SiS_Pr 1597 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) { SiS_Pr 1598 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); SiS_Pr 1599 drivers/video/fbdev/sis/init301.c if((temp & TVOverScan) || (SiS_Pr->SiS_CHOverScan == 1)) { SiS_Pr 1600 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetCHOverScan; SiS_Pr 1602 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 1603 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x79); SiS_Pr 1604 drivers/video/fbdev/sis/init301.c if((temp & 0x80) || (SiS_Pr->SiS_CHOverScan == 1)) { SiS_Pr 1605 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetCHOverScan; SiS_Pr 1608 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) { SiS_Pr 1609 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetCHOverScan; SiS_Pr 1612 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 1613 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); SiS_Pr 1614 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 1615 drivers/video/fbdev/sis/init301.c if(temp & EnablePALM) SiS_Pr->SiS_TVMode |= TVSetPALM; SiS_Pr 1616 drivers/video/fbdev/sis/init301.c else if(temp & EnablePALN) SiS_Pr->SiS_TVMode |= TVSetPALN; SiS_Pr 1619 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetNTSCJ; SiS_Pr 1627 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); SiS_Pr 1629 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPAL; SiS_Pr 1631 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPALN; SiS_Pr 1633 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1634 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~TVSetPAL; SiS_Pr 1636 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPALM; SiS_Pr 1640 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetNTSCJ; SiS_Pr 1643 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 1644 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHOverScan) { SiS_Pr 1645 drivers/video/fbdev/sis/init301.c if((temp1 & 0x10) || (SiS_Pr->SiS_CHOverScan == 1)) { SiS_Pr 1646 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetCHOverScan; SiS_Pr 1650 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1651 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 1653 drivers/video/fbdev/sis/init301.c if(temp1 == 0x00) SiS_Pr->SiS_TVMode |= TVSetYPbPr525i; SiS_Pr 1654 drivers/video/fbdev/sis/init301.c else if(temp1 == 0x20) SiS_Pr->SiS_TVMode |= TVSetYPbPr525p; SiS_Pr 1655 drivers/video/fbdev/sis/init301.c else if(temp1 == 0x40) SiS_Pr->SiS_TVMode |= TVSetYPbPr750p; SiS_Pr 1656 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 1657 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= (TVSetHiVision | TVSetPAL); SiS_Pr 1659 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToYPbPr525750 | SetCRT2ToHiVision)) { SiS_Pr 1661 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVAspect169; SiS_Pr 1663 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x39); SiS_Pr 1665 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetYPbPr750p | TVSetHiVision)) { SiS_Pr 1666 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVAspect169; SiS_Pr 1668 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVAspect43LB; SiS_Pr 1671 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVAspect43; SiS_Pr 1678 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToSCART) SiS_Pr->SiS_TVMode |= TVSetPAL; SiS_Pr 1680 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1682 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 1683 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetPAL; SiS_Pr 1684 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~(TVSetPALM | TVSetPALN | TVSetNTSCJ); SiS_Pr 1685 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 1686 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetYPbPr525i | TVSetYPbPr525p | TVSetYPbPr750p)) { SiS_Pr 1687 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~(TVSetPAL | TVSetNTSCJ | TVSetPALM | TVSetPALN); SiS_Pr 1691 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 1692 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetNotSimuMode)) { SiS_Pr 1693 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetTVSimuMode; SiS_Pr 1697 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) { SiS_Pr 1699 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) { SiS_Pr 1700 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSet525p1024; SiS_Pr 1701 drivers/video/fbdev/sis/init301.c } else if(!(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p))) { SiS_Pr 1702 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVSetNTSC1024; SiS_Pr 1707 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode |= TVRPLLDIV2XO; SiS_Pr 1708 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && SiS_Pr 1709 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 1710 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~TVRPLLDIV2XO; SiS_Pr 1711 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p | TVSetYPbPr750p)) { SiS_Pr 1712 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~TVRPLLDIV2XO; SiS_Pr 1713 drivers/video/fbdev/sis/init301.c } else if(!(SiS_Pr->SiS_VBType & VB_SIS30xBLV)) { SiS_Pr 1714 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) { SiS_Pr 1715 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_TVMode &= ~TVRPLLDIV2XO; SiS_Pr 1721 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBInfo &= ~SetPALTV; SiS_Pr 1729 drivers/video/fbdev/sis/init301.c SiS_GetBIOSLCDResInfo(struct SiS_Private *SiS_Pr) SiS_Pr 1731 drivers/video/fbdev/sis/init301.c unsigned short temp = SiS_Pr->SiS_LCDResInfo; SiS_Pr 1742 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(struct SiS_Private *SiS_Pr) SiS_Pr 1748 drivers/video/fbdev/sis/init301.c if((ROMAddr = GetLCDStructPtr661(SiS_Pr))) { SiS_Pr 1749 drivers/video/fbdev/sis/init301.c if((temp = SISGETROMW(6)) != SiS_Pr->PanelHT) { SiS_Pr 1750 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NeedRomModeData = true; SiS_Pr 1751 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = temp; SiS_Pr 1753 drivers/video/fbdev/sis/init301.c if((temp = SISGETROMW(8)) != SiS_Pr->PanelVT) { SiS_Pr 1754 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NeedRomModeData = true; SiS_Pr 1755 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVT = temp; SiS_Pr 1757 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = SISGETROMW(10); SiS_Pr 1758 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRE = SISGETROMW(12); SiS_Pr 1759 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = SISGETROMW(14); SiS_Pr 1760 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = SISGETROMW(16); SiS_Pr 1761 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_CUSTOM_315; SiS_Pr 1762 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[VCLK_CUSTOM_315].CLOCK = SiS_Pr 1763 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[VCLK_CUSTOM_315].CLOCK = (unsigned short)((unsigned char)ROMAddr[18]); SiS_Pr 1764 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[VCLK_CUSTOM_315].SR2B = SiS_Pr 1765 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[VCLK_CUSTOM_315].Part4_A = ROMAddr[19]; SiS_Pr 1766 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[VCLK_CUSTOM_315].SR2C = SiS_Pr 1767 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[VCLK_CUSTOM_315].Part4_B = ROMAddr[20]; SiS_Pr 1774 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(struct SiS_Private *SiS_Pr, unsigned short resinfo, SiS_Pr 1780 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) || SiS_Pr 1781 drivers/video/fbdev/sis/init301.c (SiS_Pr->UsePanelScaler == -1)) { SiS_Pr 1782 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 1790 drivers/video/fbdev/sis/init301.c SiS_GetLCDResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 1795 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 1804 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = 0; SiS_Pr 1805 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDTypeInfo = 0; SiS_Pr 1806 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo = 0; SiS_Pr 1807 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 999; /* HSync start */ SiS_Pr 1808 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRE = 999; /* HSync end */ SiS_Pr 1809 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 999; /* VSync start */ SiS_Pr 1810 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = 999; /* VSync end */ SiS_Pr 1811 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NeedRomModeData = false; SiS_Pr 1814 drivers/video/fbdev/sis/init301.c SiS_Pr->Alternate1600x1200 = false; SiS_Pr 1816 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA))) return; SiS_Pr 1818 drivers/video/fbdev/sis/init301.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 1820 drivers/video/fbdev/sis/init301.c if((ModeNo > 0x13) && (!SiS_Pr->UseCustomMode)) { SiS_Pr 1821 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 1822 drivers/video/fbdev/sis/init301.c modexres = SiS_Pr->SiS_ModeResInfo[resinfo].HTotal; SiS_Pr 1823 drivers/video/fbdev/sis/init301.c modeyres = SiS_Pr->SiS_ModeResInfo[resinfo].VTotal; SiS_Pr 1826 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36); SiS_Pr 1831 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_661) || (SiS_Pr->SiS_ROMNew)) { SiS_Pr 1832 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDTypeInfo = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x39) & 0x7c) >> 2; SiS_Pr 1833 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->ChipType < SIS_315H) || (SiS_Pr->ChipType >= SIS_661)) { SiS_Pr 1834 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDTypeInfo = temp >> 4; SiS_Pr 1836 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDTypeInfo = (temp & 0x0F) - 1; SiS_Pr 1840 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 1842 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 1852 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_550) { SiS_Pr 1856 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1861 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { /* SiS LVDS */ SiS_Pr 1865 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 1872 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = temp; SiS_Pr 1875 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 1876 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1366) { SiS_Pr 1877 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = Panel_Barco1366; SiS_Pr 1878 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_CustomT == CUT_PANEL848) { SiS_Pr 1879 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = Panel_848x480; SiS_Pr 1880 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_CustomT == CUT_PANEL856) { SiS_Pr 1881 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = Panel_856x480; SiS_Pr 1886 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1887 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo < SiS_Pr->SiS_PanelMin301) SiS_Pr 1888 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = SiS_Pr->SiS_PanelMin301; SiS_Pr 1890 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo < SiS_Pr->SiS_PanelMinLVDS) SiS_Pr 1891 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo = SiS_Pr->SiS_PanelMinLVDS; SiS_Pr 1894 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); SiS_Pr 1895 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo = temp & ~0x000e; SiS_Pr 1899 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 1904 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~DontExpandLCD; SiS_Pr 1907 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 1910 drivers/video/fbdev/sis/init301.c panelcanscale = (bool)(SiS_Pr->SiS_LCDInfo & DontExpandLCD); SiS_Pr 1912 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UsePanelScaler) SiS_Pr->SiS_LCDInfo &= ~DontExpandLCD; SiS_Pr 1913 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->UsePanelScaler == 1) SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 1917 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 1918 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 1919 drivers/video/fbdev/sis/init301.c if(temp & 0x08) SiS_Pr->SiS_LCDInfo |= LCDPass11; SiS_Pr 1921 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISDUALLINK) { SiS_Pr 1922 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 1923 drivers/video/fbdev/sis/init301.c if(temp & 0x02) SiS_Pr->SiS_LCDInfo |= LCDDualLink; SiS_Pr 1924 drivers/video/fbdev/sis/init301.c } else if((myptr = GetLCDStructPtr661(SiS_Pr))) { SiS_Pr 1925 drivers/video/fbdev/sis/init301.c if(myptr[2] & 0x01) SiS_Pr->SiS_LCDInfo |= LCDDualLink; SiS_Pr 1928 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 1929 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 1930 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x39) & 0x01) SiS_Pr->SiS_LCDInfo |= LCDPass11; SiS_Pr 1932 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_ROMNew) && (!(SiS_Pr->PanelSelfDetected))) { SiS_Pr 1933 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~(LCDRGB18Bit); SiS_Pr 1934 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x35); SiS_Pr 1935 drivers/video/fbdev/sis/init301.c if(temp & 0x01) SiS_Pr->SiS_LCDInfo |= LCDRGB18Bit; SiS_Pr 1936 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISDUALLINK) { SiS_Pr 1937 drivers/video/fbdev/sis/init301.c if(temp & 0x02) SiS_Pr->SiS_LCDInfo |= LCDDualLink; SiS_Pr 1939 drivers/video/fbdev/sis/init301.c } else if(!(SiS_Pr->SiS_ROMNew)) { SiS_Pr 1940 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISDUALLINK) { SiS_Pr 1941 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_CLEVO1024) && SiS_Pr 1942 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1024x768)) { SiS_Pr 1943 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= LCDDualLink; SiS_Pr 1945 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) || SiS_Pr 1946 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) || SiS_Pr 1947 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) || SiS_Pr 1948 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1680x1050)) { SiS_Pr 1949 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= LCDDualLink; SiS_Pr 1957 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_LVDS == 1) || (SiS_Pr->SiS_VBType & VB_NoLCD)) { SiS_Pr 1959 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 1960 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 1961 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 1963 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 1966 drivers/video/fbdev/sis/init301.c if(panelcanscale) SiS_Pr->SiS_LCDInfo |= LCDPass11; SiS_Pr 1967 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CenterScreen == 1) SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 1971 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK65_300; SiS_Pr 1972 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315; SiS_Pr 1974 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 1977 drivers/video/fbdev/sis/init301.c case Panel_320x240_3: SiS_Pr->PanelXRes = 640; SiS_Pr->PanelYRes = 480; SiS_Pr 1978 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 24; SiS_Pr->PanelVRE = 3; SiS_Pr 1979 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK28; SiS_Pr 1980 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK28; SiS_Pr 1982 drivers/video/fbdev/sis/init301.c case Panel_640x480: SiS_Pr->PanelXRes = 640; SiS_Pr->PanelYRes = 480; SiS_Pr 1983 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = 3; SiS_Pr 1984 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK28; SiS_Pr 1985 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK28; SiS_Pr 1987 drivers/video/fbdev/sis/init301.c case Panel_800x600: SiS_Pr->PanelXRes = 800; SiS_Pr->PanelYRes = 600; SiS_Pr 1988 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1056; SiS_Pr->PanelVT = 628; SiS_Pr 1989 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 40; SiS_Pr->PanelHRE = 128; SiS_Pr 1990 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 1; SiS_Pr->PanelVRE = 4; SiS_Pr 1991 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK40; SiS_Pr 1992 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK40; SiS_Pr 1994 drivers/video/fbdev/sis/init301.c case Panel_1024x600: SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes = 600; SiS_Pr 1995 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1344; SiS_Pr->PanelVT = 800; SiS_Pr 1996 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 24; SiS_Pr->PanelHRE = 136; SiS_Pr 1997 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 2 /* 88 */ ; SiS_Pr->PanelVRE = 6; SiS_Pr 1998 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK65_300; SiS_Pr 1999 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK65_315; SiS_Pr 2001 drivers/video/fbdev/sis/init301.c case Panel_1024x768: SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes = 768; SiS_Pr 2002 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1344; SiS_Pr->PanelVT = 806; SiS_Pr 2003 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 24; SiS_Pr->PanelHRE = 136; SiS_Pr 2004 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 3; SiS_Pr->PanelVRE = 6; SiS_Pr 2005 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2006 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 23; SiS_Pr 2007 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = 5; SiS_Pr 2009 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK65_300; SiS_Pr 2010 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK65_315; SiS_Pr 2011 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2013 drivers/video/fbdev/sis/init301.c case Panel_1152x768: SiS_Pr->PanelXRes = 1152; SiS_Pr->PanelYRes = 768; SiS_Pr 2014 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1344; SiS_Pr->PanelVT = 806; SiS_Pr 2015 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 24; SiS_Pr->PanelHRE = 136; SiS_Pr 2016 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 3; SiS_Pr->PanelVRE = 6; SiS_Pr 2017 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2018 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 23; SiS_Pr 2019 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = 5; SiS_Pr 2021 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK65_300; SiS_Pr 2022 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK65_315; SiS_Pr 2024 drivers/video/fbdev/sis/init301.c case Panel_1152x864: SiS_Pr->PanelXRes = 1152; SiS_Pr->PanelYRes = 864; SiS_Pr 2026 drivers/video/fbdev/sis/init301.c case Panel_1280x720: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 720; SiS_Pr 2027 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1650; SiS_Pr->PanelVT = 750; SiS_Pr 2028 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 110; SiS_Pr->PanelHRE = 40; SiS_Pr 2029 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 5; SiS_Pr->PanelVRE = 5; SiS_Pr 2030 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_1280x720; SiS_Pr 2032 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2034 drivers/video/fbdev/sis/init301.c case Panel_1280x768: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 768; SiS_Pr 2035 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 2036 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1408; SiS_Pr->PanelVT = 806; SiS_Pr 2037 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK81_300; /* ? */ SiS_Pr 2038 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK81_315; /* ? */ SiS_Pr 2040 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1688; SiS_Pr->PanelVT = 802; SiS_Pr 2041 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 112; SiS_Pr 2042 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 3; SiS_Pr->PanelVRE = 6; SiS_Pr 2043 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK81_300; SiS_Pr 2044 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK81_315; SiS_Pr 2047 drivers/video/fbdev/sis/init301.c case Panel_1280x768_2: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 768; SiS_Pr 2048 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1660; SiS_Pr->PanelVT = 806; SiS_Pr 2049 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 112; SiS_Pr 2050 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 3; SiS_Pr->PanelVRE = 6; SiS_Pr 2051 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_1280x768_2; SiS_Pr 2052 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2054 drivers/video/fbdev/sis/init301.c case Panel_1280x800: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 800; SiS_Pr 2055 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1408; SiS_Pr->PanelVT = 816; SiS_Pr 2056 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 21; SiS_Pr->PanelHRE = 24; SiS_Pr 2057 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 4; SiS_Pr->PanelVRE = 3; SiS_Pr 2058 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_1280x800_315; SiS_Pr 2059 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2061 drivers/video/fbdev/sis/init301.c case Panel_1280x800_2: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 800; SiS_Pr 2062 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1552; SiS_Pr->PanelVT = 812; SiS_Pr 2063 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 112; SiS_Pr 2064 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 4; SiS_Pr->PanelVRE = 3; SiS_Pr 2065 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_1280x800_315_2; SiS_Pr 2066 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2068 drivers/video/fbdev/sis/init301.c case Panel_1280x854: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 854; SiS_Pr 2069 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1664; SiS_Pr->PanelVT = 861; SiS_Pr 2070 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 16; SiS_Pr->PanelHRE = 112; SiS_Pr 2071 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 1; SiS_Pr->PanelVRE = 3; SiS_Pr 2072 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_1280x854; SiS_Pr 2073 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2075 drivers/video/fbdev/sis/init301.c case Panel_1280x960: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 960; SiS_Pr 2076 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1800; SiS_Pr->PanelVT = 1000; SiS_Pr 2077 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK108_3_300; SiS_Pr 2078 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK108_3_315; SiS_Pr 2080 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK100_300; SiS_Pr 2081 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK100_315; SiS_Pr 2084 drivers/video/fbdev/sis/init301.c case Panel_1280x1024: SiS_Pr->PanelXRes = 1280; SiS_Pr->PanelYRes = 1024; SiS_Pr 2085 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1688; SiS_Pr->PanelVT = 1066; SiS_Pr 2086 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 112; SiS_Pr 2087 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 1; SiS_Pr->PanelVRE = 3; SiS_Pr 2088 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK108_3_300; SiS_Pr 2089 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315; SiS_Pr 2090 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2092 drivers/video/fbdev/sis/init301.c case Panel_1400x1050: SiS_Pr->PanelXRes = 1400; SiS_Pr->PanelYRes = 1050; SiS_Pr 2093 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1688; SiS_Pr->PanelVT = 1066; SiS_Pr 2094 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 112; SiS_Pr 2095 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 1; SiS_Pr->PanelVRE = 3; SiS_Pr 2096 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK108_2_315; SiS_Pr 2097 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2099 drivers/video/fbdev/sis/init301.c case Panel_1600x1200: SiS_Pr->PanelXRes = 1600; SiS_Pr->PanelYRes = 1200; SiS_Pr 2100 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 2160; SiS_Pr->PanelVT = 1250; SiS_Pr 2101 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 64; SiS_Pr->PanelHRE = 192; SiS_Pr 2102 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 1; SiS_Pr->PanelVRE = 3; SiS_Pr 2103 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK162_315; SiS_Pr 2104 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISTMDSLCDA) { SiS_Pr 2105 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 2106 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1760; SiS_Pr->PanelVT = 1235; SiS_Pr 2107 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 48; SiS_Pr->PanelHRE = 32; SiS_Pr 2108 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 2; SiS_Pr->PanelVRE = 4; SiS_Pr 2109 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK130_315; SiS_Pr 2110 drivers/video/fbdev/sis/init301.c SiS_Pr->Alternate1600x1200 = true; SiS_Pr 2112 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_LVDS) { SiS_Pr 2113 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 2048; SiS_Pr->PanelVT = 1320; SiS_Pr 2114 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = SiS_Pr->PanelHRE = 999; SiS_Pr 2115 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = SiS_Pr->PanelVRE = 999; SiS_Pr 2117 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2119 drivers/video/fbdev/sis/init301.c case Panel_1680x1050: SiS_Pr->PanelXRes = 1680; SiS_Pr->PanelYRes = 1050; SiS_Pr 2120 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1900; SiS_Pr->PanelVT = 1066; SiS_Pr 2121 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 26; SiS_Pr->PanelHRE = 76; SiS_Pr 2122 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 3; SiS_Pr->PanelVRE = 6; SiS_Pr 2123 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK121_315; SiS_Pr 2124 drivers/video/fbdev/sis/init301.c SiS_GetLCDInfoBIOS(SiS_Pr); SiS_Pr 2126 drivers/video/fbdev/sis/init301.c case Panel_Barco1366: SiS_Pr->PanelXRes = 1360; SiS_Pr->PanelYRes = 1024; SiS_Pr 2127 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1688; SiS_Pr->PanelVT = 1066; SiS_Pr 2129 drivers/video/fbdev/sis/init301.c case Panel_848x480: SiS_Pr->PanelXRes = 848; SiS_Pr->PanelYRes = 480; SiS_Pr 2130 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1088; SiS_Pr->PanelVT = 525; SiS_Pr 2132 drivers/video/fbdev/sis/init301.c case Panel_856x480: SiS_Pr->PanelXRes = 856; SiS_Pr->PanelYRes = 480; SiS_Pr 2133 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1088; SiS_Pr->PanelVT = 525; SiS_Pr 2135 drivers/video/fbdev/sis/init301.c case Panel_Custom: SiS_Pr->PanelXRes = SiS_Pr->CP_MaxX; SiS_Pr 2136 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelYRes = SiS_Pr->CP_MaxY; SiS_Pr 2137 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = SiS_Pr->CHTotal; SiS_Pr 2138 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVT = SiS_Pr->CVTotal; SiS_Pr 2139 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CP_PreferredIndex != -1) { SiS_Pr 2140 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelXRes = SiS_Pr->CP_HDisplay[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2141 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelYRes = SiS_Pr->CP_VDisplay[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2142 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = SiS_Pr->CP_HTotal[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2143 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVT = SiS_Pr->CP_VTotal[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2144 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = SiS_Pr->CP_HSyncStart[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2145 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRE = SiS_Pr->CP_HSyncEnd[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2146 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = SiS_Pr->CP_VSyncStart[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2147 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = SiS_Pr->CP_VSyncEnd[SiS_Pr->CP_PreferredIndex]; SiS_Pr 2148 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS -= SiS_Pr->PanelXRes; SiS_Pr 2149 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRE -= SiS_Pr->PanelHRS; SiS_Pr 2150 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS -= SiS_Pr->PanelYRes; SiS_Pr 2151 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE -= SiS_Pr->PanelVRS; SiS_Pr 2152 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CP_PrefClock) { SiS_Pr 2154 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx315 = VCLK_CUSTOM_315; SiS_Pr 2155 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVCLKIdx300 = VCLK_CUSTOM_300; SiS_Pr 2156 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) idx = VCLK_CUSTOM_300; SiS_Pr 2158 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[idx].CLOCK = SiS_Pr 2159 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[idx].CLOCK = SiS_Pr->CP_PrefClock; SiS_Pr 2160 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[idx].SR2B = SiS_Pr 2161 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[idx].Part4_A = SiS_Pr->CP_PrefSR2B; SiS_Pr 2162 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VCLKData[idx].SR2C = SiS_Pr 2163 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VBVCLKData[idx].Part4_B = SiS_Pr->CP_PrefSR2C; SiS_Pr 2167 drivers/video/fbdev/sis/init301.c default: SiS_Pr->PanelXRes = 1024; SiS_Pr->PanelYRes = 768; SiS_Pr 2168 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHT = 1344; SiS_Pr->PanelVT = 806; SiS_Pr 2173 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_FSTN) || SiS_Pr 2174 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_IF_DEF_DSTN) || SiS_Pr 2175 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1366) || SiS_Pr 2176 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1024) || SiS_Pr 2177 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL848) || SiS_Pr 2178 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) { SiS_Pr 2179 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRS = 999; SiS_Pr 2180 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelHRE = 999; SiS_Pr 2183 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_CustomT == CUT_BARCO1366) || SiS_Pr 2184 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1024) || SiS_Pr 2185 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL848) || SiS_Pr 2186 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) { SiS_Pr 2187 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRS = 999; SiS_Pr 2188 drivers/video/fbdev/sis/init301.c SiS_Pr->PanelVRE = 999; SiS_Pr 2192 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (!(SiS_Pr->SiS_VBType & VB_NoLCD))) { SiS_Pr 2194 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && (modeflag & NoSupportLCDScale)) { SiS_Pr 2196 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2199 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 2204 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2211 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2220 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2229 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2230 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelHT == 1650) { SiS_Pr 2231 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2241 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2243 drivers/video/fbdev/sis/init301.c case SIS_RI_1280x720: if(SiS_Pr->UsePanelScaler == -1) { SiS_Pr 2244 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2256 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2265 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2268 drivers/video/fbdev/sis/init301.c case SIS_RI_1280x768: if(SiS_Pr->UsePanelScaler == -1) { SiS_Pr 2269 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2281 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2285 drivers/video/fbdev/sis/init301.c case SIS_RI_1280x800: if(SiS_Pr->UsePanelScaler == -1) { SiS_Pr 2286 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2299 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2309 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2319 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2321 drivers/video/fbdev/sis/init301.c case SIS_RI_1280x720: if(SiS_Pr->UsePanelScaler == -1) { SiS_Pr 2322 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2325 drivers/video/fbdev/sis/init301.c case SIS_RI_1280x1024: SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 2337 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2347 drivers/video/fbdev/sis/init301.c SiS_CheckScaling(SiS_Pr, resinfo, nonscalingmodes); SiS_Pr 2354 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 2355 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_PANEL848 || SiS_Pr->SiS_CustomT == CUT_PANEL856) { SiS_Pr 2356 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo = 0x80 | 0x40 | 0x20; /* neg h/v sync, RGB24(D0 = 0) */ SiS_Pr 2360 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2361 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 2362 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 2365 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= (~DontExpandLCD); SiS_Pr 2369 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 2370 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_SetFlag & SetDOSMode) && ((ModeNo == 0x03) || (ModeNo == 0x10))) { SiS_Pr 2371 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= (~DontExpandLCD); SiS_Pr 2379 drivers/video/fbdev/sis/init301.c if(modexres == SiS_Pr->PanelXRes && modeyres == SiS_Pr->PanelYRes) { SiS_Pr 2380 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 2383 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION) { SiS_Pr 2384 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= (DontExpandLCD | LCDPass11); SiS_Pr 2387 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 2389 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= (DontExpandLCD | LCDPass11); SiS_Pr 2393 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CenterScreen == -1) SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 2396 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 2399 drivers/video/fbdev/sis/init301.c if((!SiS_Pr->CP_PrefClock) || SiS_Pr 2400 drivers/video/fbdev/sis/init301.c (modexres > SiS_Pr->PanelXRes) || (modeyres > SiS_Pr->PanelYRes)) { SiS_Pr 2401 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= LCDPass11; SiS_Pr 2406 drivers/video/fbdev/sis/init301.c if((SiS_Pr->UseCustomMode) || (SiS_Pr->SiS_CustomT == CUT_UNKNOWNLCD)) { SiS_Pr 2407 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= (DontExpandLCD | LCDPass11); SiS_Pr 2411 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 2412 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 2416 drivers/video/fbdev/sis/init301.c if(!((SiS_Pr->ChipType < SIS_315H) && (SiS_Pr->SiS_SetFlag & SetDOSMode))) { SiS_Pr 2418 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_LVDS == 1) || (SiS_Pr->SiS_VBType & VB_NoLCD)) { SiS_Pr 2419 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION == 0) { SiS_Pr 2421 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr 2422 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2425 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x600) { SiS_Pr 2426 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 2428 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2437 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION == 1) { SiS_Pr 2438 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2439 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 2440 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2441 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDResInfo == Panel_640x480) { SiS_Pr 2442 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2444 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 2445 drivers/video/fbdev/sis/init301.c if(resinfo == SIS_RI_512x384) SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2446 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDResInfo == Panel_800x600) { SiS_Pr 2447 drivers/video/fbdev/sis/init301.c if(resinfo == SIS_RI_400x300) SiS_Pr->SiS_SetFlag |= EnableLVDSDDA; SiS_Pr 2455 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 2456 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetNotSimuMode) { SiS_Pr 2457 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= LCDVESATiming; SiS_Pr 2460 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= LCDVESATiming; SiS_Pr 2465 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo, SiS_Pr->SiS_LCDResInfo, SiS_Pr->SiS_LCDTypeInfo); SiS_Pr 2474 drivers/video/fbdev/sis/init301.c SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 2482 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 2483 drivers/video/fbdev/sis/init301.c CRT2Index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 2484 drivers/video/fbdev/sis/init301.c VCLKIndexGEN = (SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)) >> 2) & 0x03; SiS_Pr 2487 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 2488 drivers/video/fbdev/sis/init301.c CRT2Index = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 2489 drivers/video/fbdev/sis/init301.c VCLKIndexGEN = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK; SiS_Pr 2490 drivers/video/fbdev/sis/init301.c VCLKIndexGENCRT = SiS_GetRefCRTVCLK(SiS_Pr, RefreshRateTableIndex, SiS_Pr 2491 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_SetFlag & ProgrammingCRT2) ? SiS_Pr->SiS_UseWideCRT2 : SiS_Pr->SiS_UseWide); SiS_Pr 2494 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { /* 30x/B/LV */ SiS_Pr 2496 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & ProgrammingCRT2) { SiS_Pr 2499 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { /* LCD */ SiS_Pr 2501 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2502 drivers/video/fbdev/sis/init301.c VCLKIndex = SiS_Pr->PanelVCLKIdx300; SiS_Pr 2503 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 2507 drivers/video/fbdev/sis/init301.c VCLKIndex = SiS_Pr->PanelVCLKIdx315; SiS_Pr 2508 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 2525 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType <= SIS_315PRO) { SiS_Pr 2526 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC == 1) VCLKIndex = 0x42; SiS_Pr 2528 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC == 1) VCLKIndex = 0x00; SiS_Pr 2531 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType <= SIS_315PRO) { SiS_Pr 2539 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { /* TV */ SiS_Pr 2541 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 2542 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVRPLLDIV2XO) VCLKIndex = HiTVVCLKDIV2; SiS_Pr 2544 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) VCLKIndex = HiTVSimuVCLK; SiS_Pr 2545 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) VCLKIndex = YPbPr750pVCLK; SiS_Pr 2546 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) VCLKIndex = TVVCLKDIV2; SiS_Pr 2547 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVRPLLDIV2XO) VCLKIndex = TVVCLKDIV2; SiS_Pr 2550 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) VCLKIndex += TVCLKBASE_300; SiS_Pr 2556 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2558 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->ChipType == SIS_630) && SiS_Pr 2559 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision >= 0x30)) { SiS_Pr 2571 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2573 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->ChipType != SIS_630) && SiS_Pr 2574 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType != SIS_300) ) { SiS_Pr 2585 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & ProgrammingCRT2) { SiS_Pr 2587 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_CH70xx != 0) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV) ) { SiS_Pr 2591 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_Pr 2592 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 2594 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 2595 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) tempbx = 8; SiS_Pr 2597 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 2599 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_Pr 2600 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetPALN) { SiS_Pr 2602 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_Pr 2606 drivers/video/fbdev/sis/init301.c case 0: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKUNTSC; break; SiS_Pr 2607 drivers/video/fbdev/sis/init301.c case 1: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKONTSC; break; SiS_Pr 2608 drivers/video/fbdev/sis/init301.c case 2: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKUPAL; break; SiS_Pr 2609 drivers/video/fbdev/sis/init301.c case 3: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKOPAL; break; SiS_Pr 2610 drivers/video/fbdev/sis/init301.c case 4: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKUPALM; break; SiS_Pr 2611 drivers/video/fbdev/sis/init301.c case 5: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKOPALM; break; SiS_Pr 2612 drivers/video/fbdev/sis/init301.c case 6: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKUPALN; break; SiS_Pr 2613 drivers/video/fbdev/sis/init301.c case 7: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKOPALN; break; SiS_Pr 2614 drivers/video/fbdev/sis/init301.c case 8: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKSOPAL; break; SiS_Pr 2615 drivers/video/fbdev/sis/init301.c default: CHTVVCLKPtr = SiS_Pr->SiS_CHTVVCLKOPAL; break; SiS_Pr 2619 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 2621 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2622 drivers/video/fbdev/sis/init301.c VCLKIndex = SiS_Pr->PanelVCLKIdx300; SiS_Pr 2624 drivers/video/fbdev/sis/init301.c VCLKIndex = SiS_Pr->PanelVCLKIdx315; SiS_Pr 2629 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1366) VCLKIndex = 0x44; SiS_Pr 2632 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_PANEL848 || SiS_Pr->SiS_CustomT == CUT_PANEL856) { SiS_Pr 2633 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2646 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2648 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->ChipType == SIS_630) && SiS_Pr 2649 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision >= 0x30) ) { SiS_Pr 2659 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2661 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->ChipType != SIS_630) && SiS_Pr 2662 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType != SIS_300) ) { SiS_Pr 2666 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 2686 drivers/video/fbdev/sis/init301.c SiS_SetCRT2ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 2694 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 2698 drivers/video/fbdev/sis/init301.c modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 2700 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 2702 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xAF,0x40); SiS_Pr 2703 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2E,0xF7); SiS_Pr 2707 drivers/video/fbdev/sis/init301.c for(i=0,j=4; i<3; i++,j++) SiS_SetReg(SiS_Pr->SiS_Part1Port,j,0); SiS_Pr 2708 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2709 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x02,0x7F); SiS_Pr 2712 drivers/video/fbdev/sis/init301.c tempcl = SiS_Pr->SiS_ModeType; SiS_Pr 2714 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2719 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_NoLCD) { SiS_Pr 2720 drivers/video/fbdev/sis/init301.c tempbl = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32); SiS_Pr 2723 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToTV) || (SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC)) { SiS_Pr 2727 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,tempbl); SiS_Pr 2737 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0xA0; SiS_Pr 2754 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50; SiS_Pr 2760 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; SiS_Pr 2762 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2763 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); SiS_Pr 2766 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 2767 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); SiS_Pr 2768 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 2770 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); SiS_Pr 2772 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); SiS_Pr 2778 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 2781 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 2784 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC)) { SiS_Pr 2786 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) { SiS_Pr 2791 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 2793 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; SiS_Pr 2796 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); SiS_Pr 2801 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x08; SiS_Pr 2802 drivers/video/fbdev/sis/init301.c else if(!(SiS_IsDualEdge(SiS_Pr))) tempah |= 0x08; SiS_Pr 2803 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah); SiS_Pr 2808 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_ModeType == ModeVGA) && (!(SiS_Pr->SiS_VBInfo & SetInSlaveMode))) { SiS_Pr 2813 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 2814 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80; SiS_Pr 2817 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 2818 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & (TVSetYPbPr750p | TVSetYPbPr525p))) { SiS_Pr 2819 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 2825 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah); SiS_Pr 2828 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 2829 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0; SiS_Pr 2832 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40; SiS_Pr 2834 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 2835 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVRPLLDIV2XO) { SiS_Pr 2840 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah); SiS_Pr 2844 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2849 drivers/video/fbdev/sis/init301.c if((modeflag & CRT2Mode) && (SiS_Pr->SiS_ModeType > ModeVGA)) { SiS_Pr 2850 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DriverMode) { SiS_Pr 2855 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) tempah |= 0x02; SiS_Pr 2857 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah ^= 0x01; SiS_Pr 2859 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1; SiS_Pr 2861 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah); SiS_Pr 2868 drivers/video/fbdev/sis/init301.c if( (!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) && (SiS_Pr->SiS_ModeType > ModeVGA) ) { SiS_Pr 2873 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; SiS_Pr 2875 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); SiS_Pr 2884 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 2886 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 2905 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 2907 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) { SiS_Pr 2911 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); SiS_Pr 2923 drivers/video/fbdev/sis/init301.c if((IS_SIS740) || (SiS_Pr->ChipType >= SIS_661) || (SiS_Pr->SiS_ROMNew)) { SiS_Pr 2926 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & DisableCRT2Display) || SiS_Pr 2927 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_ROMNew) && (!(ROMAddr[0x5b] & 0x04)))) { SiS_Pr 2931 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah); SiS_Pr 2932 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x21,0x3f,tempbl); SiS_Pr 2933 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 2935 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2c,0xcf); /* For 301 */ SiS_Pr 2936 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x21,0x3f); SiS_Pr 2937 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 2938 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2c,0x30); /* For 30xLV */ SiS_Pr 2939 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x21,0xc0); SiS_Pr 2940 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_NoLCD) { /* For 301B-DH */ SiS_Pr 2943 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVBlue == 0) { SiS_Pr 2945 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVBlue == -1) { SiS_Pr 2951 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); SiS_Pr 2952 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x21,tempbl2,tempah2); SiS_Pr 2956 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 2958 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) { SiS_Pr 2962 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); SiS_Pr 2963 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x21,tempbl2,tempah2); SiS_Pr 2968 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00; SiS_Pr 2969 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah); SiS_Pr 2973 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 2975 drivers/video/fbdev/sis/init301.c if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80; SiS_Pr 2977 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah); SiS_Pr 2982 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 2985 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x21,0x3f); SiS_Pr 2987 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & DisableCRT2Display) || SiS_Pr 2988 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_NoLCD) && SiS_Pr 2989 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD))) { SiS_Pr 2990 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x23,0x7F); SiS_Pr 2992 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x23,0x80); SiS_Pr 2998 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 2999 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x0D,0x80); SiS_Pr 3000 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xCLV) { SiS_Pr 3001 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x3A,0xC0); SiS_Pr 3008 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 3010 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 3014 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 3016 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) tempbl = 0xff; SiS_Pr 3018 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); SiS_Pr 3020 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) { SiS_Pr 3021 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x13,0xfb); SiS_Pr 3024 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2c,0x30); SiS_Pr 3026 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType == SIS_550) { SiS_Pr 3028 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x13,0xfb); SiS_Pr 3029 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2c,0x30); SiS_Pr 3045 drivers/video/fbdev/sis/init301.c SiS_GetResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 3048 drivers/video/fbdev/sis/init301.c return ((unsigned short)SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo); SiS_Pr 3050 drivers/video/fbdev/sis/init301.c return ((unsigned short)SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO); SiS_Pr 3054 drivers/video/fbdev/sis/init301.c SiS_GetCRT2ResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 3058 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3059 drivers/video/fbdev/sis/init301.c xres = SiS_Pr->CHDisplay; SiS_Pr 3060 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CModeFlag & HalfDCLK) xres <<= 1; SiS_Pr 3061 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHDE = SiS_Pr->SiS_HDE = xres; SiS_Pr 3063 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVDE = SiS_Pr->SiS_VDE = SiS_Pr->CVDisplay; SiS_Pr 3067 drivers/video/fbdev/sis/init301.c resindex = SiS_GetResInfo(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 3070 drivers/video/fbdev/sis/init301.c xres = SiS_Pr->SiS_StResInfo[resindex].HTotal; SiS_Pr 3071 drivers/video/fbdev/sis/init301.c yres = SiS_Pr->SiS_StResInfo[resindex].VTotal; SiS_Pr 3073 drivers/video/fbdev/sis/init301.c xres = SiS_Pr->SiS_ModeResInfo[resindex].HTotal; SiS_Pr 3074 drivers/video/fbdev/sis/init301.c yres = SiS_Pr->SiS_ModeResInfo[resindex].VTotal; SiS_Pr 3075 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 3078 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->SiS_IF_DEF_DSTN && !SiS_Pr->SiS_IF_DEF_FSTN) { SiS_Pr 3080 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->SiS_IF_DEF_LVDS == 1)) { SiS_Pr 3081 drivers/video/fbdev/sis/init301.c if((ModeNo != 0x03) && (SiS_Pr->SiS_SetFlag & SetDOSMode)) { SiS_Pr 3084 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3d4,0x3a) & 0x01) { SiS_Pr 3094 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (!(SiS_Pr->SiS_VBType & VB_NoLCD))) { SiS_Pr 3096 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 3097 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 3099 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) { SiS_Pr 3100 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 3108 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 3113 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) { SiS_Pr 3118 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) { SiS_Pr 3127 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 3128 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToHiVision)) { SiS_Pr 3133 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & SetDOSMode) { SiS_Pr 3135 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 3136 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x17) & 0x80) yres = 480; SiS_Pr 3138 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x80) yres = 480; SiS_Pr 3140 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_DSTN || SiS_Pr->SiS_IF_DEF_FSTN) yres = 480; SiS_Pr 3144 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHDE = SiS_Pr->SiS_HDE = xres; SiS_Pr 3145 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVDE = SiS_Pr->SiS_VDE = yres; SiS_Pr 3153 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3160 drivers/video/fbdev/sis/init301.c tempal = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 3162 drivers/video/fbdev/sis/init301.c tempal = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 3163 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 3166 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (SiS_Pr->SiS_IF_DEF_LVDS == 0)) { SiS_Pr 3168 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { /* LCD */ SiS_Pr 3170 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDResInfo; SiS_Pr 3171 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32; SiS_Pr 3174 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1680x1050) { SiS_Pr 3177 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_LCDResInfo == Panel_1280x800) || SiS_Pr 3178 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1280x800_2) || SiS_Pr 3179 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1280x854)) { SiS_Pr 3183 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3189 drivers/video/fbdev/sis/init301.c tempal = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC_NS; SiS_Pr 3194 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) { SiS_Pr 3195 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) { SiS_Pr 3196 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 3198 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; SiS_Pr 3206 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 3209 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 3211 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14; SiS_Pr 3213 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 3214 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7; SiS_Pr 3215 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6; SiS_Pr 3217 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; SiS_Pr 3219 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3; SiS_Pr 3221 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; SiS_Pr 3229 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTVNoHiVision) { SiS_Pr 3233 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetPAL | TVSetPALN)) tempal = 9; SiS_Pr 3239 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 3240 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempal = 8; SiS_Pr 3249 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 3250 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempal = 8; SiS_Pr 3254 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 3255 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempal = 9; SiS_Pr 3268 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_CH70xx) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 3271 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 3273 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 3274 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) tempbx = 99; SiS_Pr 3276 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94; SiS_Pr 3277 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96; SiS_Pr 3280 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++; SiS_Pr 3285 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 3303 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 3310 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_Pr 3313 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30; SiS_Pr 3316 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1024) { SiS_Pr 3318 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_Pr 3319 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_CustomT == CUT_PANEL848 || SiS_Pr->SiS_CustomT == CUT_PANEL856) { SiS_Pr 3321 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_Pr 3333 drivers/video/fbdev/sis/init301.c SiS_GetRAMDAC2DATA(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3339 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = 1; SiS_Pr 3340 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = 1; SiS_Pr 3344 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 3345 drivers/video/fbdev/sis/init301.c index = SiS_GetModePtr(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 3347 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_StandTable[index].CRTC[0]; SiS_Pr 3348 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6]; SiS_Pr 3349 drivers/video/fbdev/sis/init301.c temp1 = SiS_Pr->SiS_StandTable[index].CRTC[7]; SiS_Pr 3355 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 3356 drivers/video/fbdev/sis/init301.c index = SiS_GetRefCRT1CRTC(SiS_Pr, RefreshRateTableIndex, SiS_Pr->SiS_UseWideCRT2); SiS_Pr 3358 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_CRT1Table[index].CR[0]; SiS_Pr 3359 drivers/video/fbdev/sis/init301.c tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8); SiS_Pr 3361 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6]; SiS_Pr 3362 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; SiS_Pr 3366 drivers/video/fbdev/sis/init301.c temp1 = SiS_Pr->SiS_CRT1Table[index].CR[7]; SiS_Pr 3381 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_Pr 3382 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx; SiS_Pr 3386 drivers/video/fbdev/sis/init301.c SiS_CalcPanelLinkTiming(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 3391 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3392 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr 3393 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3394 drivers/video/fbdev/sis/init301.c ResIndex = SiS_Pr->CHTotal; SiS_Pr 3395 drivers/video/fbdev/sis/init301.c if(SiS_Pr->CModeFlag & HalfDCLK) ResIndex <<= 1; SiS_Pr 3396 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = ResIndex; SiS_Pr 3397 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = SiS_Pr->CVTotal; SiS_Pr 3400 drivers/video/fbdev/sis/init301.c ResIndex = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 3402 drivers/video/fbdev/sis/init301.c ResIndex = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC_NS; SiS_Pr 3405 drivers/video/fbdev/sis/init301.c if(SiS_Pr->Alternate1600x1200) ResIndex = 0x20; /* 1600x1200 LCDA */ SiS_Pr 3406 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_IF_DEF_LVDS == 1) ResIndex = 0x21; /* 1600x1200 LVDS */ SiS_Pr 3408 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_NoScaleData[ResIndex].VGAHT; SiS_Pr 3409 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_NoScaleData[ResIndex].VGAVT; SiS_Pr 3410 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = SiS_Pr->SiS_NoScaleData[ResIndex].LCDHT; SiS_Pr 3411 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = SiS_Pr->SiS_NoScaleData[ResIndex].LCDVT; SiS_Pr 3414 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = SiS_Pr->PanelHT; SiS_Pr 3415 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = SiS_Pr->PanelVT; SiS_Pr 3419 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = SiS_Pr->PanelXRes; SiS_Pr 3420 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = SiS_Pr->PanelYRes; SiS_Pr 3421 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = SiS_Pr->PanelHT; SiS_Pr 3422 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = SiS_Pr->PanelVT; SiS_Pr 3423 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->PanelHT - (SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE); SiS_Pr 3424 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->PanelVT - (SiS_Pr->PanelYRes - SiS_Pr->SiS_VGAVDE); SiS_Pr 3429 drivers/video/fbdev/sis/init301.c SiS_GetCRT2DataLVDS(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3435 drivers/video/fbdev/sis/init301.c SiS_GetCRT2ResInfo(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3437 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 3438 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = 1; SiS_Pr 3439 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = 1; SiS_Pr 3440 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NewFlickerMode = 0; SiS_Pr 3441 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS = 50; SiS_Pr 3442 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY1COE = 0; SiS_Pr 3443 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY2COE = 0; SiS_Pr 3444 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY3COE = 0; SiS_Pr 3445 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY4COE = 0; SiS_Pr 3446 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = 0; SiS_Pr 3449 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 3452 drivers/video/fbdev/sis/init301.c SiS_CalcPanelLinkTiming(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3453 drivers/video/fbdev/sis/init301.c SiS_CalcLCDACRT1Timing(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 3459 drivers/video/fbdev/sis/init301.c backup = SiS_Pr->SiS_IF_DEF_LVDS; SiS_Pr 3460 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_NoLCD) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) { SiS_Pr 3461 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_IF_DEF_LVDS = 1; SiS_Pr 3464 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, SiS_Pr 3467 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_IF_DEF_LVDS = backup; SiS_Pr 3470 drivers/video/fbdev/sis/init301.c case 10: LVDSData = SiS_Pr->SiS_LVDS320x240Data_1; break; SiS_Pr 3471 drivers/video/fbdev/sis/init301.c case 14: LVDSData = SiS_Pr->SiS_LVDS320x240Data_2; break; SiS_Pr 3472 drivers/video/fbdev/sis/init301.c case 12: LVDSData = SiS_Pr->SiS_LVDS640x480Data_1; break; SiS_Pr 3473 drivers/video/fbdev/sis/init301.c case 16: LVDSData = SiS_Pr->SiS_LVDS800x600Data_1; break; SiS_Pr 3474 drivers/video/fbdev/sis/init301.c case 18: LVDSData = SiS_Pr->SiS_LVDS1024x600Data_1; break; SiS_Pr 3475 drivers/video/fbdev/sis/init301.c case 20: LVDSData = SiS_Pr->SiS_LVDS1024x768Data_1; break; SiS_Pr 3477 drivers/video/fbdev/sis/init301.c case 80: LVDSData = SiS_Pr->SiS_LVDSBARCO1366Data_1; break; SiS_Pr 3478 drivers/video/fbdev/sis/init301.c case 81: LVDSData = SiS_Pr->SiS_LVDSBARCO1366Data_2; break; SiS_Pr 3479 drivers/video/fbdev/sis/init301.c case 82: LVDSData = SiS_Pr->SiS_LVDSBARCO1024Data_1; break; SiS_Pr 3480 drivers/video/fbdev/sis/init301.c case 84: LVDSData = SiS_Pr->SiS_LVDS848x480Data_1; break; SiS_Pr 3481 drivers/video/fbdev/sis/init301.c case 85: LVDSData = SiS_Pr->SiS_LVDS848x480Data_2; break; SiS_Pr 3483 drivers/video/fbdev/sis/init301.c case 90: LVDSData = SiS_Pr->SiS_CHTVUNTSCData; break; SiS_Pr 3484 drivers/video/fbdev/sis/init301.c case 91: LVDSData = SiS_Pr->SiS_CHTVONTSCData; break; SiS_Pr 3485 drivers/video/fbdev/sis/init301.c case 92: LVDSData = SiS_Pr->SiS_CHTVUPALData; break; SiS_Pr 3486 drivers/video/fbdev/sis/init301.c case 93: LVDSData = SiS_Pr->SiS_CHTVOPALData; break; SiS_Pr 3487 drivers/video/fbdev/sis/init301.c case 94: LVDSData = SiS_Pr->SiS_CHTVUPALMData; break; SiS_Pr 3488 drivers/video/fbdev/sis/init301.c case 95: LVDSData = SiS_Pr->SiS_CHTVOPALMData; break; SiS_Pr 3489 drivers/video/fbdev/sis/init301.c case 96: LVDSData = SiS_Pr->SiS_CHTVUPALNData; break; SiS_Pr 3490 drivers/video/fbdev/sis/init301.c case 97: LVDSData = SiS_Pr->SiS_CHTVOPALNData; break; SiS_Pr 3491 drivers/video/fbdev/sis/init301.c case 99: LVDSData = SiS_Pr->SiS_CHTVSOPALData; break; SiS_Pr 3495 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = (LVDSData+ResIndex)->VGAHT; SiS_Pr 3496 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = (LVDSData+ResIndex)->VGAVT; SiS_Pr 3497 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = (LVDSData+ResIndex)->LCDHT; SiS_Pr 3498 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = (LVDSData+ResIndex)->LCDVT; SiS_Pr 3500 drivers/video/fbdev/sis/init301.c SiS_CalcPanelLinkTiming(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3503 drivers/video/fbdev/sis/init301.c if( (!(SiS_Pr->SiS_VBType & VB_SISVB)) && SiS_Pr 3504 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && SiS_Pr 3505 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_LCDInfo & LCDPass11)) ) { SiS_Pr 3506 drivers/video/fbdev/sis/init301.c if( (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) || SiS_Pr 3507 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_SetFlag & SetDOSMode) ) { SiS_Pr 3508 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = SiS_Pr->PanelXRes; SiS_Pr 3509 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = SiS_Pr->PanelYRes; SiS_Pr 3511 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1366) { SiS_Pr 3513 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = 1280; SiS_Pr 3514 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = 1024; SiS_Pr 3524 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Data301(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3537 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 3538 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 3539 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 3540 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 3543 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 3544 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 3546 drivers/video/fbdev/sis/init301.c resinfo661 = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].ROMMODEIDX661; SiS_Pr 3547 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && SiS_Pr 3548 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_SetFlag & LCDVESATiming) && SiS_Pr 3550 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_NeedRomModeData) ) { SiS_Pr 3551 drivers/video/fbdev/sis/init301.c if((ROMAddr = GetLCDStructPtr661(SiS_Pr))) { SiS_Pr 3554 drivers/video/fbdev/sis/init301.c ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 3561 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NewFlickerMode = 0; SiS_Pr 3562 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS = 50; SiS_Pr 3563 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY1COE = 0; SiS_Pr 3564 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY2COE = 0; SiS_Pr 3565 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY3COE = 0; SiS_Pr 3566 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY4COE = 0; SiS_Pr 3567 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = 0; SiS_Pr 3569 drivers/video/fbdev/sis/init301.c SiS_GetCRT2ResInfo(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 3571 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) { SiS_Pr 3573 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3575 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = 1; SiS_Pr 3576 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = 1; SiS_Pr 3577 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = SiS_Pr->SiS_VGAHDE; SiS_Pr 3578 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = SiS_Pr->SiS_VGAVDE; SiS_Pr 3580 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->CHTotal; SiS_Pr 3582 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_Pr 3583 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = SiS_Pr->CVTotal; SiS_Pr 3587 drivers/video/fbdev/sis/init301.c SiS_GetRAMDAC2DATA(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3591 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 3593 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex, SiS_Pr 3597 drivers/video/fbdev/sis/init301.c case 2: TVPtr = SiS_Pr->SiS_ExtHiTVData; break; SiS_Pr 3598 drivers/video/fbdev/sis/init301.c case 3: TVPtr = SiS_Pr->SiS_ExtPALData; break; SiS_Pr 3599 drivers/video/fbdev/sis/init301.c case 4: TVPtr = SiS_Pr->SiS_ExtNTSCData; break; SiS_Pr 3600 drivers/video/fbdev/sis/init301.c case 5: TVPtr = SiS_Pr->SiS_Ext525iData; break; SiS_Pr 3601 drivers/video/fbdev/sis/init301.c case 6: TVPtr = SiS_Pr->SiS_Ext525pData; break; SiS_Pr 3602 drivers/video/fbdev/sis/init301.c case 7: TVPtr = SiS_Pr->SiS_Ext750pData; break; SiS_Pr 3603 drivers/video/fbdev/sis/init301.c case 8: TVPtr = SiS_Pr->SiS_StPALData; break; SiS_Pr 3604 drivers/video/fbdev/sis/init301.c case 9: TVPtr = SiS_Pr->SiS_StNTSCData; break; SiS_Pr 3605 drivers/video/fbdev/sis/init301.c case 10: TVPtr = SiS_Pr->SiS_St525iData; break; SiS_Pr 3606 drivers/video/fbdev/sis/init301.c case 11: TVPtr = SiS_Pr->SiS_St525pData; break; SiS_Pr 3607 drivers/video/fbdev/sis/init301.c case 12: TVPtr = SiS_Pr->SiS_St750pData; break; SiS_Pr 3608 drivers/video/fbdev/sis/init301.c case 13: TVPtr = SiS_Pr->SiS_St1HiTVData; break; SiS_Pr 3609 drivers/video/fbdev/sis/init301.c case 14: TVPtr = SiS_Pr->SiS_St2HiTVData; break; SiS_Pr 3610 drivers/video/fbdev/sis/init301.c default: TVPtr = SiS_Pr->SiS_StPALData; break; SiS_Pr 3613 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = (TVPtr+ResIndex)->RVBHCMAX; SiS_Pr 3614 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = (TVPtr+ResIndex)->RVBHCFACT; SiS_Pr 3615 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = (TVPtr+ResIndex)->VGAHT; SiS_Pr 3616 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = (TVPtr+ResIndex)->VGAVT; SiS_Pr 3617 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = (TVPtr+ResIndex)->TVHDE; SiS_Pr 3618 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = (TVPtr+ResIndex)->TVVDE; SiS_Pr 3619 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = (TVPtr+ResIndex)->RVBHRS2 & 0x0fff; SiS_Pr 3621 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS = (TVPtr+ResIndex)->HALFRVBHRS; SiS_Pr 3622 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_RVBHRS2) { SiS_Pr 3623 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = ((SiS_Pr->SiS_RVBHRS2 + 3) >> 1) - 3; SiS_Pr 3625 drivers/video/fbdev/sis/init301.c if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax; SiS_Pr 3626 drivers/video/fbdev/sis/init301.c else SiS_Pr->SiS_RVBHRS2 += tempax; SiS_Pr 3629 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS = (TVPtr+ResIndex)->RVBHRS; SiS_Pr 3631 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NewFlickerMode = ((TVPtr+ResIndex)->FlickerMode) << 7; SiS_Pr 3633 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 3639 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_NewFlickerMode = 0x40; SiS_Pr 3642 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 350) SiS_Pr->SiS_TVMode |= TVSetTVSimuMode; SiS_Pr 3644 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = ExtHiTVHT; SiS_Pr 3645 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = ExtHiTVVT; SiS_Pr 3646 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 3647 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) { SiS_Pr 3648 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = StHiTVHT; SiS_Pr 3649 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = StHiTVVT; SiS_Pr 3653 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 3655 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) { SiS_Pr 3656 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = 1650; SiS_Pr 3657 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = 750; SiS_Pr 3658 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) { SiS_Pr 3659 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = NTSCHT; SiS_Pr 3660 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSet525p1024) SiS_Pr->SiS_HT = NTSC2HT; SiS_Pr 3661 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = NTSCVT; SiS_Pr 3663 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = NTSCHT; SiS_Pr 3664 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSC1024) SiS_Pr->SiS_HT = NTSC2HT; SiS_Pr 3665 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = NTSCVT; SiS_Pr 3670 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY1COE = (TVPtr+ResIndex)->RY1COE; SiS_Pr 3671 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY2COE = (TVPtr+ResIndex)->RY2COE; SiS_Pr 3672 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY3COE = (TVPtr+ResIndex)->RY3COE; SiS_Pr 3673 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY4COE = (TVPtr+ResIndex)->RY4COE; SiS_Pr 3676 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY1COE = 0x00; SiS_Pr 3677 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY2COE = 0xf4; SiS_Pr 3678 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY3COE = 0x10; SiS_Pr 3679 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RY4COE = 0x38; SiS_Pr 3682 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) { SiS_Pr 3683 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = NTSCHT; SiS_Pr 3684 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSC1024) SiS_Pr->SiS_HT = NTSC2HT; SiS_Pr 3685 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = NTSCVT; SiS_Pr 3687 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = PALHT; SiS_Pr 3688 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = PALVT; SiS_Pr 3693 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 3695 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = 1; SiS_Pr 3696 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = 1; SiS_Pr 3698 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 3700 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = SiS_Pr->SiS_VGAHDE; SiS_Pr 3701 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = SiS_Pr->SiS_VGAVDE; SiS_Pr 3703 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->CHTotal; SiS_Pr 3705 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_Pr 3706 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = SiS_Pr->CVTotal; SiS_Pr 3712 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 3714 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->PanelHT; SiS_Pr 3715 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->PanelVT; SiS_Pr 3716 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = SiS_Pr->PanelHT; SiS_Pr 3717 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = SiS_Pr->PanelVT; SiS_Pr 3720 drivers/video/fbdev/sis/init301.c } else if( (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) && (romptr) && (ROMAddr) ) { SiS_Pr 3723 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = ROMAddr[romptr]; SiS_Pr 3724 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = ROMAddr[romptr+1]; SiS_Pr 3725 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = ROMAddr[romptr+2] | ((ROMAddr[romptr+3] & 0x0f) << 8); SiS_Pr 3726 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = (ROMAddr[romptr+4] << 4) | ((ROMAddr[romptr+3] & 0xf0) >> 4); SiS_Pr 3727 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = ROMAddr[romptr+5] | ((ROMAddr[romptr+6] & 0x0f) << 8); SiS_Pr 3728 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = (ROMAddr[romptr+7] << 4) | ((ROMAddr[romptr+6] & 0xf0) >> 4); SiS_Pr 3729 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = ROMAddr[romptr+8] | ((ROMAddr[romptr+9] & 0x0f) << 8); SiS_Pr 3730 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_RVBHRS2) && (modeflag & HalfDCLK)) { SiS_Pr 3731 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = ((SiS_Pr->SiS_RVBHRS2 + 3) >> 1) - 3; SiS_Pr 3733 drivers/video/fbdev/sis/init301.c if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; SiS_Pr 3734 drivers/video/fbdev/sis/init301.c else SiS_Pr->SiS_RVBHRS2 += tempax; SiS_Pr 3736 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHT) gotit = true; SiS_Pr 3738 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo |= DontExpandLCD; SiS_Pr 3739 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDInfo &= ~LCDPass11; SiS_Pr 3740 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = 1; SiS_Pr 3741 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = 1; SiS_Pr 3742 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = SiS_Pr->PanelHT; SiS_Pr 3743 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = SiS_Pr->PanelVT; SiS_Pr 3744 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = SiS_Pr->PanelHT; SiS_Pr 3745 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = SiS_Pr->PanelVT; SiS_Pr 3746 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHRS2 = 0; SiS_Pr 3755 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex, SiS_Pr 3759 drivers/video/fbdev/sis/init301.c case Panel_1024x768 : LCDPtr = SiS_Pr->SiS_ExtLCD1024x768Data; break; SiS_Pr 3760 drivers/video/fbdev/sis/init301.c case Panel_1024x768 + 32: LCDPtr = SiS_Pr->SiS_St2LCD1024x768Data; break; SiS_Pr 3762 drivers/video/fbdev/sis/init301.c case Panel_1280x720 + 32: LCDPtr = SiS_Pr->SiS_LCD1280x720Data; break; SiS_Pr 3763 drivers/video/fbdev/sis/init301.c case Panel_1280x768_2 : LCDPtr = SiS_Pr->SiS_ExtLCD1280x768_2Data; break; SiS_Pr 3764 drivers/video/fbdev/sis/init301.c case Panel_1280x768_2+ 32: LCDPtr = SiS_Pr->SiS_StLCD1280x768_2Data; break; SiS_Pr 3766 drivers/video/fbdev/sis/init301.c case Panel_1280x800 + 32: LCDPtr = SiS_Pr->SiS_LCD1280x800Data; break; SiS_Pr 3768 drivers/video/fbdev/sis/init301.c case Panel_1280x800_2+ 32: LCDPtr = SiS_Pr->SiS_LCD1280x800_2Data; break; SiS_Pr 3770 drivers/video/fbdev/sis/init301.c case Panel_1280x854 + 32: LCDPtr = SiS_Pr->SiS_LCD1280x854Data; break; SiS_Pr 3772 drivers/video/fbdev/sis/init301.c case Panel_1280x960 + 32: LCDPtr = SiS_Pr->SiS_LCD1280x960Data; break; SiS_Pr 3773 drivers/video/fbdev/sis/init301.c case Panel_1280x1024 : LCDPtr = SiS_Pr->SiS_ExtLCD1280x1024Data; break; SiS_Pr 3774 drivers/video/fbdev/sis/init301.c case Panel_1280x1024 + 32: LCDPtr = SiS_Pr->SiS_St2LCD1280x1024Data; break; SiS_Pr 3775 drivers/video/fbdev/sis/init301.c case Panel_1400x1050 : LCDPtr = SiS_Pr->SiS_ExtLCD1400x1050Data; break; SiS_Pr 3776 drivers/video/fbdev/sis/init301.c case Panel_1400x1050 + 32: LCDPtr = SiS_Pr->SiS_StLCD1400x1050Data; break; SiS_Pr 3777 drivers/video/fbdev/sis/init301.c case Panel_1600x1200 : LCDPtr = SiS_Pr->SiS_ExtLCD1600x1200Data; break; SiS_Pr 3778 drivers/video/fbdev/sis/init301.c case Panel_1600x1200 + 32: LCDPtr = SiS_Pr->SiS_StLCD1600x1200Data; break; SiS_Pr 3780 drivers/video/fbdev/sis/init301.c case Panel_1680x1050 + 32: LCDPtr = SiS_Pr->SiS_LCD1680x1050Data; break; SiS_Pr 3781 drivers/video/fbdev/sis/init301.c case 100 : LCDPtr = SiS_Pr->SiS_NoScaleData; break; SiS_Pr 3784 drivers/video/fbdev/sis/init301.c case 201 : LCDPtr = SiS_Pr->SiS_St2LCD1280x1024Data; break; SiS_Pr 3786 drivers/video/fbdev/sis/init301.c default : LCDPtr = SiS_Pr->SiS_ExtLCD1024x768Data; break; SiS_Pr 3789 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCMAX = (LCDPtr+ResIndex)->RVBHCMAX; SiS_Pr 3790 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_RVBHCFACT = (LCDPtr+ResIndex)->RVBHCFACT; SiS_Pr 3791 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAHT = (LCDPtr+ResIndex)->VGAHT; SiS_Pr 3792 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VGAVT = (LCDPtr+ResIndex)->VGAVT; SiS_Pr 3793 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HT = (LCDPtr+ResIndex)->LCDHT; SiS_Pr 3794 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VT = (LCDPtr+ResIndex)->LCDVT; SiS_Pr 3798 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->PanelXRes; SiS_Pr 3799 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelYRes; SiS_Pr 3801 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 3803 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) { SiS_Pr 3804 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3805 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; SiS_Pr 3806 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; SiS_Pr 3809 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527; SiS_Pr 3810 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620; SiS_Pr 3811 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775; SiS_Pr 3812 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775; SiS_Pr 3813 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; SiS_Pr 3814 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; SiS_Pr 3818 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700; SiS_Pr 3819 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800; SiS_Pr 3820 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960; SiS_Pr 3823 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768; SiS_Pr 3824 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800; SiS_Pr 3825 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864; SiS_Pr 3828 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) { SiS_Pr 3829 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875; SiS_Pr 3830 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000; SiS_Pr 3835 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3836 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAHDE; SiS_Pr 3837 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE; SiS_Pr 3840 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_HDE = tempax; SiS_Pr 3841 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_VDE = tempbx; SiS_Pr 3847 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Data(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3851 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 3853 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 3854 drivers/video/fbdev/sis/init301.c SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3856 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_NoLCD) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) { SiS_Pr 3858 drivers/video/fbdev/sis/init301.c SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3860 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Data301(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3866 drivers/video/fbdev/sis/init301.c SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 3876 drivers/video/fbdev/sis/init301.c SiS_GetLVDSDesPtr(struct SiS_Private *SiS_Pr) SiS_Pr 3881 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 3883 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3884 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDTypeInfo == 4) { SiS_Pr 3885 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1366) { SiS_Pr 3886 drivers/video/fbdev/sis/init301.c PanelDesPtr = SiS_Pr->SiS_PanelType04_1a; SiS_Pr 3887 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3888 drivers/video/fbdev/sis/init301.c PanelDesPtr = SiS_Pr->SiS_PanelType04_2a; SiS_Pr 3890 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_CustomT == CUT_BARCO1024) { SiS_Pr 3891 drivers/video/fbdev/sis/init301.c PanelDesPtr = SiS_Pr->SiS_PanelType04_1b; SiS_Pr 3892 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3893 drivers/video/fbdev/sis/init301.c PanelDesPtr = SiS_Pr->SiS_PanelType04_2b; SiS_Pr 3904 drivers/video/fbdev/sis/init301.c SiS_GetLVDSDesData(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 3910 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = 0; SiS_Pr 3911 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = 0; SiS_Pr 3914 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 3917 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION) { SiS_Pr 3918 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 3919 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) { SiS_Pr 3920 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 3927 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 3928 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_640x480 && SiS_Pr->SiS_LCDTypeInfo == 3) { SiS_Pr 3929 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = 8; SiS_Pr 3930 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE >= 480) SiS_Pr->SiS_LCDVDES = 512; SiS_Pr 3931 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE >= 400) SiS_Pr->SiS_LCDVDES = 436; SiS_Pr 3932 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE >= 350) SiS_Pr->SiS_LCDVDES = 440; SiS_Pr 3939 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->UseCustomMode) || SiS_Pr 3940 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_Custom) || SiS_Pr 3941 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL848) || SiS_Pr 3942 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL856) || SiS_Pr 3943 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDInfo & LCDPass11) ) { SiS_Pr 3947 drivers/video/fbdev/sis/init301.c if(ModeNo <= 0x13) ResIndex = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 3948 drivers/video/fbdev/sis/init301.c else ResIndex = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 3950 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SIS30xBLV) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 3953 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 3955 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE != SiS_Pr->PanelXRes) { SiS_Pr 3956 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->SiS_HT - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE) / 2); SiS_Pr 3958 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE != SiS_Pr->PanelYRes) { SiS_Pr 3959 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VGAVDE) / 2); SiS_Pr 3962 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) { SiS_Pr 3963 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_CustomT) { SiS_Pr 3967 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 3968 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 3972 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 3974 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT != CUT_COMPAQ1280) { SiS_Pr 3975 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 3981 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 3989 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_CH70xx != 0) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 3991 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_TVMode & TVSetPAL) && (!(SiS_Pr->SiS_TVMode & TVSetPALM))) { SiS_Pr 3992 drivers/video/fbdev/sis/init301.c if(ResIndex <= 3) SiS_Pr->SiS_LCDHDES = 256; SiS_Pr 3995 drivers/video/fbdev/sis/init301.c } else if((PanelDesPtr = SiS_GetLVDSDesPtr(SiS_Pr))) { SiS_Pr 3997 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = (PanelDesPtr+ResIndex)->LCDHDES; SiS_Pr 3998 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = (PanelDesPtr+ResIndex)->LCDVDES; SiS_Pr 4000 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 4002 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE != SiS_Pr->PanelXRes) { SiS_Pr 4003 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->SiS_HT - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE) / 2); SiS_Pr 4005 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE != SiS_Pr->PanelYRes) { SiS_Pr 4006 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VGAVDE) / 2); SiS_Pr 4008 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4009 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4011 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 4015 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT; SiS_Pr 4018 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4026 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4028 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 4030 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) { SiS_Pr 4031 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4033 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->PanelHT + 3; SiS_Pr 4034 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT; SiS_Pr 4035 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 400) SiS_Pr->SiS_LCDVDES -= 2; SiS_Pr 4036 drivers/video/fbdev/sis/init301.c else SiS_Pr->SiS_LCDVDES -= 4; SiS_Pr 4040 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) { SiS_Pr 4041 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4043 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->PanelHT - 1; SiS_Pr 4044 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE <= 400) SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 8; SiS_Pr 4045 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE <= 350) SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 12; SiS_Pr 4050 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VGAHDE == SiS_Pr->PanelXRes) && SiS_Pr 4051 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) ) { SiS_Pr 4052 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4054 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->PanelHT - 1; SiS_Pr 4059 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDTypeInfo) { SiS_Pr 4061 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->SiS_LCDVDES = 0; SiS_Pr 4064 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = 8; SiS_Pr 4065 drivers/video/fbdev/sis/init301.c if (SiS_Pr->SiS_VGAVDE >= 480) SiS_Pr->SiS_LCDVDES = 512; SiS_Pr 4066 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE >= 400) SiS_Pr->SiS_LCDVDES = 436; SiS_Pr 4067 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VGAVDE >= 350) SiS_Pr->SiS_LCDVDES = 440; SiS_Pr 4073 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 4076 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == SiS_Pr->PanelYRes) { SiS_Pr 4077 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = SiS_Pr->PanelVT - 1; SiS_Pr 4083 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDVDES = 524; SiS_Pr 4090 drivers/video/fbdev/sis/init301.c if((ModeNo <= 0x13) && (SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { SiS_Pr 4091 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 4092 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SIS30xBLV) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 4093 drivers/video/fbdev/sis/init301.c if(!(modeflag & HalfDCLK)) SiS_Pr->SiS_LCDHDES = 632; SiS_Pr 4094 drivers/video/fbdev/sis/init301.c } else if(!(SiS_Pr->SiS_SetFlag & SetDOSMode)) { SiS_Pr 4095 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo != Panel_1280x1024) { SiS_Pr 4096 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo >= Panel_1024x768) { SiS_Pr 4097 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4098 drivers/video/fbdev/sis/init301.c if(!(modeflag & HalfDCLK)) SiS_Pr->SiS_LCDHDES = 320; SiS_Pr 4101 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) SiS_Pr->SiS_LCDHDES = 480; SiS_Pr 4102 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) SiS_Pr->SiS_LCDHDES = 804; SiS_Pr 4103 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) SiS_Pr->SiS_LCDHDES = 704; SiS_Pr 4105 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = 320; SiS_Pr 4106 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) SiS_Pr->SiS_LCDHDES = 632; SiS_Pr 4107 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) SiS_Pr->SiS_LCDHDES = 542; SiS_Pr 4124 drivers/video/fbdev/sis/init301.c SiS_HandlePWD(struct SiS_Private *SiS_Pr) SiS_Pr 4128 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 4129 drivers/video/fbdev/sis/init301.c unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); SiS_Pr 4130 drivers/video/fbdev/sis/init301.c unsigned char drivermode = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & 0x40; SiS_Pr 4133 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VBType & VB_SISPWD) && SiS_Pr 4135 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_PWDOffset) ) { SiS_Pr 4136 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2b,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 0]); SiS_Pr 4137 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2c,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 1]); SiS_Pr 4138 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2d,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 2]); SiS_Pr 4139 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2e,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 3]); SiS_Pr 4140 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2f,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 4]); SiS_Pr 4146 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x27,0x7f,temp); SiS_Pr 4158 drivers/video/fbdev/sis/init301.c SiS_DisableBridge(struct SiS_Private *SiS_Pr) SiS_Pr 4165 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 4167 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { /* ===== For 30xB/C/LV ===== */ SiS_Pr 4169 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4173 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4174 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4175 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xFE); SiS_Pr 4177 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x08); SiS_Pr 4179 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4181 drivers/video/fbdev/sis/init301.c if(SiS_Is301B(SiS_Pr)) { SiS_Pr 4182 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1f,0x3f); SiS_Pr 4183 drivers/video/fbdev/sis/init301.c SiS_ShortDelay(SiS_Pr,1); SiS_Pr 4185 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x00,0xDF); SiS_Pr 4186 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4187 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); SiS_Pr 4188 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1E,0xDF); SiS_Pr 4189 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 4190 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 4191 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x01,0x80); SiS_Pr 4192 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x02,0x40); SiS_Pr 4194 drivers/video/fbdev/sis/init301.c if( (!(SiS_CRT2IsLCD(SiS_Pr))) || SiS_Pr 4195 drivers/video/fbdev/sis/init301.c (!(SiS_CR36BIOSWord23d(SiS_Pr))) ) { SiS_Pr 4196 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4197 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4198 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xFD); SiS_Pr 4200 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x04); SiS_Pr 4211 drivers/video/fbdev/sis/init301.c bool custom1 = (SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) || SiS_Pr 4212 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_CLEVO1400); SiS_Pr 4214 drivers/video/fbdev/sis/init301.c modenum = SiS_GetReg(SiS_Pr->SiS_P3d4,0x34) & 0x7f; SiS_Pr 4216 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4219 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4220 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT != CUT_CLEVO1400) { SiS_Pr 4221 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x0c); SiS_Pr 4226 drivers/video/fbdev/sis/init301.c didpwd = SiS_HandlePWD(SiS_Pr); SiS_Pr 4229 drivers/video/fbdev/sis/init301.c (SiS_IsVAMode(SiS_Pr)) || SiS_Pr 4230 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) ) { SiS_Pr 4232 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xfe); SiS_Pr 4233 drivers/video/fbdev/sis/init301.c if(custom1) SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4235 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xfc); SiS_Pr 4240 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,0xff00); SiS_Pr 4241 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,0xe000); SiS_Pr 4242 drivers/video/fbdev/sis/init301.c SiS_SetRegByte(SiS_Pr->SiS_P3c6,0x00); SiS_Pr 4243 drivers/video/fbdev/sis/init301.c pushax = SiS_GetReg(SiS_Pr->SiS_P3c4,0x06); SiS_Pr 4245 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x06,0xE3); SiS_Pr 4247 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4252 drivers/video/fbdev/sis/init301.c if(!(SiS_IsNotM650orLater(SiS_Pr))) { SiS_Pr 4255 drivers/video/fbdev/sis/init301.c if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7; SiS_Pr 4256 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah); SiS_Pr 4260 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4261 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,~0x10); SiS_Pr 4265 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) { SiS_Pr 4267 drivers/video/fbdev/sis/init301.c if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf; SiS_Pr 4269 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah); SiS_Pr 4271 drivers/video/fbdev/sis/init301.c if((SiS_IsVAMode(SiS_Pr)) || SiS_Pr 4272 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_SISLVDS) && (modenum <= 0x13))) { SiS_Pr 4274 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4275 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4276 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4278 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); SiS_Pr 4279 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1E,0xDF); SiS_Pr 4283 drivers/video/fbdev/sis/init301.c if((!(SiS_IsVAMode(SiS_Pr))) || SiS_Pr 4284 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_SISLVDS) && (modenum <= 0x13))) { SiS_Pr 4286 drivers/video/fbdev/sis/init301.c if(!(SiS_IsDualEdge(SiS_Pr))) { SiS_Pr 4287 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x00,0xdf); SiS_Pr 4288 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4290 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x00,0x80); SiS_Pr 4292 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4293 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4296 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); SiS_Pr 4297 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); SiS_Pr 4298 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x00,0x10); SiS_Pr 4299 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1E,0xDF); SiS_Pr 4300 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,temp); SiS_Pr 4304 drivers/video/fbdev/sis/init301.c if(SiS_IsNotM650orLater(SiS_Pr)) { SiS_Pr 4305 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0x7f); SiS_Pr 4308 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4310 drivers/video/fbdev/sis/init301.c if( (!(SiS_IsVAMode(SiS_Pr))) && SiS_Pr 4311 drivers/video/fbdev/sis/init301.c (!(SiS_CRT2IsLCD(SiS_Pr))) && SiS_Pr 4312 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) ) { SiS_Pr 4314 drivers/video/fbdev/sis/init301.c if(custom1) SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4316 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xFD); SiS_Pr 4318 drivers/video/fbdev/sis/init301.c if(custom1) SiS_PanelDelay(SiS_Pr, 4); SiS_Pr 4322 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x06,pushax); SiS_Pr 4323 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4324 drivers/video/fbdev/sis/init301.c if(SiS_IsVAorLCD(SiS_Pr)) { SiS_Pr 4325 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 20); SiS_Pr 4338 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4340 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4341 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x08); SiS_Pr 4342 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4347 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x00,0xDF); /* disable VB */ SiS_Pr 4348 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4350 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 4351 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x00,0x80); SiS_Pr 4354 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); /* disable lock mode */ SiS_Pr 4356 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 4357 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); SiS_Pr 4358 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x00,0x10); SiS_Pr 4359 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); SiS_Pr 4360 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,temp); SiS_Pr 4363 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1E,0xDF); /* disable CRT2 */ SiS_Pr 4364 drivers/video/fbdev/sis/init301.c if( (!(SiS_CRT2IsLCD(SiS_Pr))) || SiS_Pr 4365 drivers/video/fbdev/sis/init301.c (!(SiS_CR36BIOSWord23d(SiS_Pr))) ) { SiS_Pr 4366 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4367 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x04); SiS_Pr 4376 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4380 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) { SiS_Pr 4381 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x0E,0x09); SiS_Pr 4384 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 4385 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x11) & 0x08)) { SiS_Pr 4386 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4388 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4389 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x08); SiS_Pr 4390 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4393 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x11) & 0x08)) { SiS_Pr 4394 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x40)) { SiS_Pr 4395 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4396 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4397 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x06) & 0x1c)) { SiS_Pr 4398 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4400 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x08); SiS_Pr 4401 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4407 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4409 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); SiS_Pr 4411 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1E,0xDF); SiS_Pr 4412 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 4413 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x01,0x80); SiS_Pr 4414 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x02,0x40); SiS_Pr 4416 drivers/video/fbdev/sis/init301.c if( (!(SiS_CRT2IsLCD(SiS_Pr))) || SiS_Pr 4417 drivers/video/fbdev/sis/init301.c (!(SiS_CR36BIOSWord23d(SiS_Pr))) ) { SiS_Pr 4418 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4419 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x04); SiS_Pr 4428 drivers/video/fbdev/sis/init301.c if(!(SiS_IsNotM650orLater(SiS_Pr))) { SiS_Pr 4430 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,~0x18); SiS_Pr 4434 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 4436 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 4437 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x61); SiS_Pr 4439 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xac); SiS_Pr 4440 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,0x00); SiS_Pr 4443 drivers/video/fbdev/sis/init301.c if( (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4444 drivers/video/fbdev/sis/init301.c (SiS_IsTVOrYPbPrOrScart(SiS_Pr)) ) { SiS_Pr 4445 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x3e); SiS_Pr 4449 drivers/video/fbdev/sis/init301.c if( (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4450 drivers/video/fbdev/sis/init301.c (SiS_IsVAMode(SiS_Pr)) ) { SiS_Pr 4451 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOff(SiS_Pr); SiS_Pr 4452 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xOff(SiS_Pr); SiS_Pr 4455 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType != SIS_740) { SiS_Pr 4456 drivers/video/fbdev/sis/init301.c if( (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4457 drivers/video/fbdev/sis/init301.c (SiS_IsTVOrYPbPrOrScart(SiS_Pr)) ) { SiS_Pr 4458 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x01); SiS_Pr 4464 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 4465 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x08); SiS_Pr 4466 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 3); SiS_Pr 4469 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_CH70xx == 0) || SiS_Pr 4470 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4471 drivers/video/fbdev/sis/init301.c (!(SiS_IsTVOrYPbPrOrScart(SiS_Pr))) ) { SiS_Pr 4472 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4475 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_CH70xx == 0) || SiS_Pr 4476 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4477 drivers/video/fbdev/sis/init301.c (!(SiS_IsVAMode(SiS_Pr))) ) { SiS_Pr 4478 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x00,0x80); SiS_Pr 4481 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 4482 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0x7f); SiS_Pr 4485 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x32,0xDF); SiS_Pr 4487 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_CH70xx == 0) || SiS_Pr 4488 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4489 drivers/video/fbdev/sis/init301.c (!(SiS_IsVAMode(SiS_Pr))) ) { SiS_Pr 4490 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x1E,0xDF); SiS_Pr 4493 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 4494 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4495 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1e,0xdf); SiS_Pr 4496 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_550) { SiS_Pr 4497 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1e,0xbf); SiS_Pr 4498 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1e,0xef); SiS_Pr 4502 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 4503 drivers/video/fbdev/sis/init301.c if(SiS_IsLCDOrLCDA(SiS_Pr)) { SiS_Pr 4504 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1e,0xdf); SiS_Pr 4506 drivers/video/fbdev/sis/init301.c } else if(SiS_IsVAMode(SiS_Pr)) { SiS_Pr 4507 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x1e,0xdf); SiS_Pr 4511 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 4512 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) { SiS_Pr 4515 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x13,0xfb); SiS_Pr 4519 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 4521 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_550) { SiS_Pr 4522 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x01,0x80); /* DirectDVD PAL?*/ SiS_Pr 4523 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x02,0x40); /* VB clock / 4 ? */ SiS_Pr 4524 drivers/video/fbdev/sis/init301.c } else if( (SiS_Pr->SiS_IF_DEF_CH70xx == 0) || SiS_Pr 4525 drivers/video/fbdev/sis/init301.c (!(SiS_IsDualEdge(SiS_Pr))) || SiS_Pr 4526 drivers/video/fbdev/sis/init301.c (!(SiS_IsVAMode(SiS_Pr))) ) { SiS_Pr 4527 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0xf7); SiS_Pr 4530 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 4531 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4532 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 4533 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4534 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x04); SiS_Pr 4557 drivers/video/fbdev/sis/init301.c SiS_EnableBridge(struct SiS_Private *SiS_Pr) SiS_Pr 4565 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 4567 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { /* ====== For 301B et al ====== */ SiS_Pr 4569 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4573 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4574 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4575 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x02); SiS_Pr 4576 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_NoLCD) { SiS_Pr 4577 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x00); SiS_Pr 4579 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & (VB_SISLVDS | VB_NoLCD)) { SiS_Pr 4580 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23d(SiS_Pr))) { SiS_Pr 4581 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 0); SiS_Pr 4586 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_NoLCD) && SiS_Pr 4587 drivers/video/fbdev/sis/init301.c (SiS_CRT2IsLCD(SiS_Pr))) { SiS_Pr 4589 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); /* Enable CRT2 */ SiS_Pr 4590 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 4591 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 4592 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x02,0xBF); SiS_Pr 4593 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 4594 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x01,0x1F); SiS_Pr 4596 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x01,0x1F,0x40); SiS_Pr 4598 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x40)) { SiS_Pr 4599 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) & 0x10)) { SiS_Pr 4600 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4601 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4603 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4604 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x00); SiS_Pr 4610 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; /* lock mode */ SiS_Pr 4611 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 4612 drivers/video/fbdev/sis/init301.c tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 4615 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); SiS_Pr 4616 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); SiS_Pr 4617 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x00,0x1F,0x20); /* enable VB processor */ SiS_Pr 4618 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,0xC0); SiS_Pr 4619 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 4620 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4621 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4622 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) & 0x10)) { SiS_Pr 4623 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 4624 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4626 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x01); SiS_Pr 4646 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4647 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1f,0xef); SiS_Pr 4649 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4650 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x0c); SiS_Pr 4655 drivers/video/fbdev/sis/init301.c if(!(SiS_IsNotM650orLater(SiS_Pr))) { SiS_Pr 4658 drivers/video/fbdev/sis/init301.c if(SiS_LCDAEnabled(SiS_Pr)) { SiS_Pr 4659 drivers/video/fbdev/sis/init301.c if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18; SiS_Pr 4662 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah); SiS_Pr 4666 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4668 drivers/video/fbdev/sis/init301.c SiS_SetRegByte(SiS_Pr->SiS_P3c6,0x00); SiS_Pr 4669 drivers/video/fbdev/sis/init301.c SiS_DisplayOff(SiS_Pr); SiS_Pr 4670 drivers/video/fbdev/sis/init301.c pushax = SiS_GetReg(SiS_Pr->SiS_P3c4,0x06); SiS_Pr 4672 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3c4,0x06,0xE3); SiS_Pr 4675 drivers/video/fbdev/sis/init301.c didpwd = SiS_HandlePWD(SiS_Pr); SiS_Pr 4677 drivers/video/fbdev/sis/init301.c if(SiS_IsVAorLCD(SiS_Pr)) { SiS_Pr 4679 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part4Port,0x26) & 0x02)) { SiS_Pr 4680 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 2); SiS_Pr 4681 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x02); SiS_Pr 4682 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 2); SiS_Pr 4683 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4684 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 17664); SiS_Pr 4688 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 2); SiS_Pr 4689 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4690 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 17664); SiS_Pr 4695 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & 0x40)) { SiS_Pr 4696 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 10); SiS_Pr 4702 drivers/video/fbdev/sis/init301.c if(!(SiS_IsVAMode(SiS_Pr))) { SiS_Pr 4704 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; SiS_Pr 4705 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 4706 drivers/video/fbdev/sis/init301.c tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 4708 drivers/video/fbdev/sis/init301.c if(!(SiS_LCDAEnabled(SiS_Pr))) temp |= 0x20; SiS_Pr 4711 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); SiS_Pr 4713 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); /* enable CRT2 */ SiS_Pr 4715 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0x7f); SiS_Pr 4716 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2e,0x80); SiS_Pr 4718 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4719 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4724 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1e,0x20); SiS_Pr 4728 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x00,0x1f,0x20); SiS_Pr 4729 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2e,0x80); SiS_Pr 4731 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISPOWER) { SiS_Pr 4732 drivers/video/fbdev/sis/init301.c if( (SiS_LCDAEnabled(SiS_Pr)) || SiS_Pr 4733 drivers/video/fbdev/sis/init301.c (SiS_CRT2IsLCD(SiS_Pr)) ) { SiS_Pr 4735 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x2a,0x7f); SiS_Pr 4737 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x7f); SiS_Pr 4742 drivers/video/fbdev/sis/init301.c if(SiS_IsDualEdge(SiS_Pr)) { SiS_Pr 4744 drivers/video/fbdev/sis/init301.c if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40; SiS_Pr 4746 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah); SiS_Pr 4748 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 4750 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 2); SiS_Pr 4752 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1f,0x10); SiS_Pr 4753 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2e,0x80); SiS_Pr 4755 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT != CUT_CLEVO1400) { SiS_Pr 4757 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4758 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x0c); SiS_Pr 4759 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 2048); SiS_Pr 4762 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x27,0x0c); SiS_Pr 4764 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4766 drivers/video/fbdev/sis/init301.c cr36 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36); SiS_Pr 4768 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 4769 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 4770 drivers/video/fbdev/sis/init301.c unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); SiS_Pr 4772 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x30,0x20); /* Reset */ SiS_Pr 4773 drivers/video/fbdev/sis/init301.c SiS_Pr->EMI_30 = 0; SiS_Pr 4774 drivers/video/fbdev/sis/init301.c SiS_Pr->EMI_31 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 0]; SiS_Pr 4775 drivers/video/fbdev/sis/init301.c SiS_Pr->EMI_32 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 1]; SiS_Pr 4776 drivers/video/fbdev/sis/init301.c SiS_Pr->EMI_33 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 2]; SiS_Pr 4777 drivers/video/fbdev/sis/init301.c if(ROMAddr[romptr + 1] & 0x10) SiS_Pr->EMI_30 = 0x40; SiS_Pr 4779 drivers/video/fbdev/sis/init301.c SiS_Pr->HaveEMI = SiS_Pr->HaveEMILCD = SiS_Pr->OverruleEMI = true; SiS_Pr 4794 drivers/video/fbdev/sis/init301.c if(SiS_Pr->HaveEMI) { SiS_Pr 4795 drivers/video/fbdev/sis/init301.c r30 = SiS_Pr->EMI_30; r31 = SiS_Pr->EMI_31; SiS_Pr 4796 drivers/video/fbdev/sis/init301.c r32 = SiS_Pr->EMI_32; r33 = SiS_Pr->EMI_33; SiS_Pr 4808 drivers/video/fbdev/sis/init301.c if((!SiS_Pr->HaveEMI) || (!SiS_Pr->HaveEMILCD)) { SiS_Pr 4812 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_CLEVO1024) r30 &= ~0x40; SiS_Pr 4813 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->HaveEMI) { SiS_Pr 4821 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) r30 |= 0x40; SiS_Pr 4822 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->HaveEMI) { SiS_Pr 4824 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) { SiS_Pr 4831 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->HaveEMI) { SiS_Pr 4833 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAL1400_2) { SiS_Pr 4840 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->HaveEMI) { SiS_Pr 4847 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->OverruleEMI) { SiS_Pr 4849 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAL1400_2) { SiS_Pr 4856 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) { SiS_Pr 4863 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSA2H_2) { SiS_Pr 4874 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->OverruleEMI && (!r30) && (!r31) && (!r32) && (!r33))) { SiS_Pr 4875 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x30,0x20); /* Reset */ SiS_Pr 4876 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 2048); SiS_Pr 4878 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x31,r31); SiS_Pr 4879 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x32,r32); SiS_Pr 4880 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x33,r33); SiS_Pr 4883 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x34,0x10); SiS_Pr 4886 drivers/video/fbdev/sis/init301.c if( (SiS_LCDAEnabled(SiS_Pr)) || SiS_Pr 4887 drivers/video/fbdev/sis/init301.c (SiS_CRT2IsLCD(SiS_Pr)) ) { SiS_Pr 4890 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 5); SiS_Pr 4892 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 5); SiS_Pr 4895 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4896 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4897 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSA2H_2) { SiS_Pr 4898 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 1280); SiS_Pr 4900 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x30,0x40); /* Enable */ SiS_Pr 4908 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 4909 drivers/video/fbdev/sis/init301.c if(SiS_IsVAorLCD(SiS_Pr)) { SiS_Pr 4910 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 10); SiS_Pr 4912 drivers/video/fbdev/sis/init301.c SiS_PanelDelayLoop(SiS_Pr, 3, 10); SiS_Pr 4914 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4915 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 4916 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 2048); SiS_Pr 4917 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 4920 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x01); SiS_Pr 4922 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x03); SiS_Pr 4927 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x06,pushax); SiS_Pr 4928 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 4929 drivers/video/fbdev/sis/init301.c SiS_SetRegByte(SiS_Pr->SiS_P3c6,0xff); SiS_Pr 4933 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 4934 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x00,0x7f); SiS_Pr 4943 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4944 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4945 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x00); SiS_Pr 4946 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 0); SiS_Pr 4950 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3c4,0x32) & 0xDF; /* lock mode */ SiS_Pr 4951 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 4952 drivers/video/fbdev/sis/init301.c tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); SiS_Pr 4955 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x32,temp); SiS_Pr 4957 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); /* enable CRT2 */ SiS_Pr 4959 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 4960 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x2E); SiS_Pr 4962 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2E,0x80); /* BVBDOENABLE=1 */ SiS_Pr 4966 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x00,0x1F,0x20); /* enable VB processor */ SiS_Pr 4968 drivers/video/fbdev/sis/init301.c SiS_VBLongWait(SiS_Pr); SiS_Pr 4969 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 4970 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 4971 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x00,0x7f); SiS_Pr 4973 drivers/video/fbdev/sis/init301.c SiS_VBLongWait(SiS_Pr); SiS_Pr 4975 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4976 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4977 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4978 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x00); SiS_Pr 4986 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 4990 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 4991 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 4992 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4993 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4994 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 4996 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x00); SiS_Pr 4997 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23d(SiS_Pr))) { SiS_Pr 4998 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 0); SiS_Pr 5002 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); SiS_Pr 5003 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 5004 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 5005 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x02,0xBF); SiS_Pr 5006 drivers/video/fbdev/sis/init301.c if(SiS_BridgeInSlavemode(SiS_Pr)) { SiS_Pr 5007 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x01,0x1F); SiS_Pr 5009 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x01,0x1F,0x40); SiS_Pr 5012 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) { SiS_Pr 5013 drivers/video/fbdev/sis/init301.c if(!(SiS_CRT2IsLCD(SiS_Pr))) { SiS_Pr 5014 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 5015 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x0E,0x0B); SiS_Pr 5019 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 5020 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x13) & 0x40)) { SiS_Pr 5021 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) & 0x10)) { SiS_Pr 5022 drivers/video/fbdev/sis/init301.c if(!(SiS_CR36BIOSWord23b(SiS_Pr))) { SiS_Pr 5023 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 5024 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 5026 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 5027 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x00); SiS_Pr 5038 drivers/video/fbdev/sis/init301.c if(!(SiS_IsNotM650orLater(SiS_Pr))) { SiS_Pr 5040 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x4c,0x18); SiS_Pr 5044 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 5045 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 5046 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFB,0x00); SiS_Pr 5047 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 0); SiS_Pr 5051 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); SiS_Pr 5052 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 5054 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0xf7); SiS_Pr 5056 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 5057 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 5059 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOff(SiS_Pr); SiS_Pr 5062 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType != SIS_550) { SiS_Pr 5063 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2e,0x7f); SiS_Pr 5066 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 5067 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 5068 drivers/video/fbdev/sis/init301.c if(SiS_IsLCDOrLCDA(SiS_Pr)) { SiS_Pr 5069 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1E,0x20); SiS_Pr 5074 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x2E); SiS_Pr 5076 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2E,0x80); SiS_Pr 5079 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 5081 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOn(SiS_Pr); SiS_Pr 5085 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 5086 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 5087 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1E,0x20); SiS_Pr 5088 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_550) { SiS_Pr 5089 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1E,0x40); SiS_Pr 5090 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1E,0x10); SiS_Pr 5093 drivers/video/fbdev/sis/init301.c } else if(SiS_IsVAMode(SiS_Pr)) { SiS_Pr 5094 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType != SIS_740) { SiS_Pr 5095 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1E,0x20); SiS_Pr 5099 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 5100 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x00,0x7f); SiS_Pr 5103 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 5104 drivers/video/fbdev/sis/init301.c if(SiS_IsTVOrYPbPrOrScart(SiS_Pr)) { SiS_Pr 5105 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xOn(SiS_Pr); SiS_Pr 5107 drivers/video/fbdev/sis/init301.c if( (SiS_IsVAMode(SiS_Pr)) || SiS_Pr 5108 drivers/video/fbdev/sis/init301.c (SiS_IsLCDOrLCDA(SiS_Pr)) ) { SiS_Pr 5109 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething1(SiS_Pr); SiS_Pr 5113 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 5114 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 5115 drivers/video/fbdev/sis/init301.c if( (SiS_IsVAMode(SiS_Pr)) || SiS_Pr 5116 drivers/video/fbdev/sis/init301.c (SiS_IsLCDOrLCDA(SiS_Pr)) ) { SiS_Pr 5117 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOn(SiS_Pr); SiS_Pr 5118 drivers/video/fbdev/sis/init301.c SiS_ChrontelInitTVVSync(SiS_Pr); SiS_Pr 5121 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_CH70xx == 0) { SiS_Pr 5122 drivers/video/fbdev/sis/init301.c if(!(SiS_WeHaveBacklightCtrl(SiS_Pr))) { SiS_Pr 5123 drivers/video/fbdev/sis/init301.c if(SiS_CRT2IsLCD(SiS_Pr)) { SiS_Pr 5124 drivers/video/fbdev/sis/init301.c SiS_PanelDelay(SiS_Pr, 1); SiS_Pr 5125 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xF7,0x00); SiS_Pr 5144 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 5150 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) return; SiS_Pr 5152 drivers/video/fbdev/sis/init301.c offset = SiS_GetOffset(SiS_Pr,ModeNo,ModeIdIndex,RRTI); SiS_Pr 5154 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x07,(offset & 0xFF)); SiS_Pr 5155 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x09,(offset >> 8)); SiS_Pr 5159 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,temp); SiS_Pr 5164 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Sync(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short RefreshRateTableIndex) SiS_Pr 5170 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 5171 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->CInfoFlag; SiS_Pr 5173 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_InfoFlag; SiS_Pr 5176 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { /* LVDS */ SiS_Pr 5178 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 5180 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && (SiS_Pr->SiS_LCDInfo & LCDSync)) { SiS_Pr 5181 drivers/video/fbdev/sis/init301.c tempah = SiS_Pr->SiS_LCDInfo; SiS_Pr 5185 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; SiS_Pr 5186 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 5187 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || SiS_Pr 5188 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1024)) { SiS_Pr 5191 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_FSTN) || SiS_Pr 5192 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_IF_DEF_DSTN) || SiS_Pr 5193 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_IF_DEF_TRUMPION) || SiS_Pr 5194 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL848) || SiS_Pr 5195 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) { SiS_Pr 5198 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_FSTN) || SiS_Pr 5199 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_IF_DEF_DSTN) ) { SiS_Pr 5203 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 5204 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 5207 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah); SiS_Pr 5210 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,0xe0); SiS_Pr 5213 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); SiS_Pr 5216 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 5218 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 5222 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { /* 630 - 301B(-DH) */ SiS_Pr 5226 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 5227 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDSync) { SiS_Pr 5228 drivers/video/fbdev/sis/init301.c tempah = SiS_Pr->SiS_LCDInfo; SiS_Pr 5234 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; SiS_Pr 5236 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); SiS_Pr 5237 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && (!(SiS_Pr->SiS_VBType & VB_NoLCD))) { SiS_Pr 5238 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1a,0xf0,tempbl); SiS_Pr 5244 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; SiS_Pr 5245 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); SiS_Pr 5255 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { /* 315 - LVDS */ SiS_Pr 5258 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_COMPAQ1280) && SiS_Pr 5259 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1280x1024)) { SiS_Pr 5261 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDSync) { SiS_Pr 5262 drivers/video/fbdev/sis/init301.c tempbl = ((SiS_Pr->SiS_LCDInfo & 0xc0) >> 6); SiS_Pr 5264 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_CustomT == CUT_CLEVO1400) && SiS_Pr 5265 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1400x1050)) { SiS_Pr 5269 drivers/video/fbdev/sis/init301.c tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); SiS_Pr 5272 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempbl |= 0x04; SiS_Pr 5276 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; SiS_Pr 5277 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) tempah |= 0xc0; SiS_Pr 5278 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); SiS_Pr 5279 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 5280 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 5281 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1a,0xf0,tempbl); SiS_Pr 5288 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 5290 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SIS30xC) && (SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC)) { SiS_Pr 5292 drivers/video/fbdev/sis/init301.c tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); SiS_Pr 5295 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5296 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5297 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDSync) { SiS_Pr 5298 drivers/video/fbdev/sis/init301.c tempah = SiS_Pr->SiS_LCDInfo; SiS_Pr 5306 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; SiS_Pr 5307 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_NoLCD) { SiS_Pr 5309 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah |= 0xc0; SiS_Pr 5311 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SIS30xC) && (SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC)) { SiS_Pr 5314 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah); SiS_Pr 5316 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); SiS_Pr 5317 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 5318 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 5319 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1a,0xf0,tempbl); SiS_Pr 5333 drivers/video/fbdev/sis/init301.c SiS_SetCRT2FIFO_300(struct SiS_Private *SiS_Pr,unsigned short ModeNo) SiS_Pr 5335 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 5344 drivers/video/fbdev/sis/init301.c SelectRate_backup = SiS_Pr->SiS_SelectCRT2Rate; SiS_Pr 5346 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->CRT1UsesCustomMode) { SiS_Pr 5348 drivers/video/fbdev/sis/init301.c CRT1ModeNo = SiS_Pr->SiS_CRT1Mode; /* get CRT1 ModeNo */ SiS_Pr 5349 drivers/video/fbdev/sis/init301.c SiS_SearchModeID(SiS_Pr, &CRT1ModeNo, &modeidindex); SiS_Pr 5350 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2); SiS_Pr 5351 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SelectCRT2Rate = 0; SiS_Pr 5352 drivers/video/fbdev/sis/init301.c refreshratetableindex = SiS_GetRatePtr(SiS_Pr, CRT1ModeNo, modeidindex); SiS_Pr 5356 drivers/video/fbdev/sis/init301.c index = SiS_GetRefCRTVCLK(SiS_Pr, refreshratetableindex, SiS_Pr->SiS_UseWide); SiS_Pr 5357 drivers/video/fbdev/sis/init301.c VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 5360 drivers/video/fbdev/sis/init301.c colorth = SiS_GetColorDepth(SiS_Pr,CRT1ModeNo,modeidindex) >> 1; SiS_Pr 5369 drivers/video/fbdev/sis/init301.c VCLK = SiS_Pr->CSRClock_CRT1; SiS_Pr 5372 drivers/video/fbdev/sis/init301.c colorth = colortharray[((SiS_Pr->CModeFlag_CRT1 & ModeTypeMask) - 2)]; SiS_Pr 5378 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 5379 drivers/video/fbdev/sis/init301.c index = SiS_GetReg(SiS_Pr->SiS_P3c4,0x3A); SiS_Pr 5381 drivers/video/fbdev/sis/init301.c index = SiS_GetReg(SiS_Pr->SiS_P3c4,0x1A); SiS_Pr 5384 drivers/video/fbdev/sis/init301.c MCLK = SiS_Pr->SiS_MCLKData_0[index].CLOCK; SiS_Pr 5386 drivers/video/fbdev/sis/init301.c temp = ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) >> 6) & 0x03) << 1; SiS_Pr 5396 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 5398 drivers/video/fbdev/sis/init301.c SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl); SiS_Pr 5403 drivers/video/fbdev/sis/init301.c pci50 = sisfb_read_nbridge_pci_dword(SiS_Pr, 0x50); SiS_Pr 5404 drivers/video/fbdev/sis/init301.c pciA0 = sisfb_read_nbridge_pci_dword(SiS_Pr, 0xa0); SiS_Pr 5406 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_730) { SiS_Pr 5424 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) & 0x80) index += 12; SiS_Pr 5428 drivers/video/fbdev/sis/init301.c data = SiS_GetLatencyFactor630(SiS_Pr, index) + 15; SiS_Pr 5429 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) & 0x80)) data += 5; SiS_Pr 5435 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 5436 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SelectCRT2Rate = SelectRate_backup; SiS_Pr 5438 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 5441 drivers/video/fbdev/sis/init301.c SiS_SearchModeID(SiS_Pr, &CRT2ModeNo, &modeidindex); SiS_Pr 5443 drivers/video/fbdev/sis/init301.c refreshratetableindex = SiS_GetRatePtr(SiS_Pr, CRT2ModeNo, modeidindex); SiS_Pr 5446 drivers/video/fbdev/sis/init301.c index = SiS_GetVCLK2Ptr(SiS_Pr, CRT2ModeNo, modeidindex, refreshratetableindex); SiS_Pr 5447 drivers/video/fbdev/sis/init301.c VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 5449 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || (SiS_Pr->SiS_CustomT == CUT_BARCO1024)) { SiS_Pr 5450 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 5461 drivers/video/fbdev/sis/init301.c VCLK = SiS_Pr->CSRClock; SiS_Pr 5466 drivers/video/fbdev/sis/init301.c colorth = SiS_GetColorDepth(SiS_Pr,CRT2ModeNo,modeidindex) >> 1; SiS_Pr 5477 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 5479 drivers/video/fbdev/sis/init301.c if((data <= 0x0f) || (SiS_Pr->SiS_LCDResInfo == Panel_1280x1024)) SiS_Pr 5483 drivers/video/fbdev/sis/init301.c if(( (SiS_Pr->ChipType == SIS_630) || SiS_Pr 5484 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType == SIS_730) ) && SiS_Pr 5485 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision >= 0x30)) SiS_Pr 5488 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x01,0xe0,temp); SiS_Pr 5490 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType == SIS_630) && SiS_Pr 5491 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision >= 0x30)) { SiS_Pr 5494 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x02,0xe0,data); SiS_Pr 5498 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 5499 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SelectCRT2Rate = SelectRate_backup; SiS_Pr 5508 drivers/video/fbdev/sis/init301.c SiS_SetCRT2FIFO_310(struct SiS_Private *SiS_Pr) SiS_Pr 5510 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,0x3B); SiS_Pr 5511 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->ChipType == SIS_760) && SiS_Pr 5512 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_SysFlags & SF_760LFB) && SiS_Pr 5513 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_ModeType == Mode32Bpp) && SiS_Pr 5514 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VGAHDE >= 1280) && SiS_Pr 5515 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VGAVDE >= 1024) ) { SiS_Pr 5516 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2f,0x03); SiS_Pr 5517 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,0x3b); SiS_Pr 5518 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4d,0xc0); SiS_Pr 5519 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2f,0x01); SiS_Pr 5520 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4d,0xc0); SiS_Pr 5521 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x02,0x6e); SiS_Pr 5523 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x02,~0x3f,0x04); SiS_Pr 5530 drivers/video/fbdev/sis/init301.c SiS_GetVGAHT2(struct SiS_Private *SiS_Pr) SiS_Pr 5534 drivers/video/fbdev/sis/init301.c tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX; SiS_Pr 5535 drivers/video/fbdev/sis/init301.c tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT; SiS_Pr 5536 drivers/video/fbdev/sis/init301.c tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; SiS_Pr 5542 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_301(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex, SiS_Pr 5556 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 5557 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 5558 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 5559 drivers/video/fbdev/sis/init301.c xres = SiS_Pr->CHDisplay; SiS_Pr 5561 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 5562 drivers/video/fbdev/sis/init301.c xres = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].XRes; SiS_Pr 5567 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 5569 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x31,0x04); SiS_Pr 5573 drivers/video/fbdev/sis/init301.c SiS_Pr->CHTotal = 8224; /* Max HT, 0x2020, results in 0x3ff in registers */ SiS_Pr 5575 drivers/video/fbdev/sis/init301.c SiS_Pr->CHDisplay = SiS_Pr->SiS_VGAHDE; SiS_Pr 5576 drivers/video/fbdev/sis/init301.c if(modeflag & HalfDCLK) SiS_Pr->CHDisplay >>= 1; SiS_Pr 5578 drivers/video/fbdev/sis/init301.c SiS_Pr->CHBlankStart = SiS_Pr->CHDisplay; SiS_Pr 5579 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 5580 drivers/video/fbdev/sis/init301.c SiS_Pr->CHBlankStart += 16; SiS_Pr 5583 drivers/video/fbdev/sis/init301.c SiS_Pr->CHBlankEnd = 32; SiS_Pr 5584 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 5585 drivers/video/fbdev/sis/init301.c if(xres == 1600) SiS_Pr->CHBlankEnd += 80; SiS_Pr 5588 drivers/video/fbdev/sis/init301.c temp = SiS_Pr->SiS_VGAHT - 96; SiS_Pr 5590 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr 5591 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x04); SiS_Pr 5592 drivers/video/fbdev/sis/init301.c temp |= ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x0b) & 0xc0) << 2); SiS_Pr 5596 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_RVBHRS2) temp = SiS_Pr->SiS_RVBHRS2; SiS_Pr 5598 drivers/video/fbdev/sis/init301.c SiS_Pr->CHSyncStart = temp; SiS_Pr 5600 drivers/video/fbdev/sis/init301.c SiS_Pr->CHSyncEnd = 0xffe8; /* results in 0x2000 in registers */ SiS_Pr 5602 drivers/video/fbdev/sis/init301.c SiS_Pr->CVTotal = 2049; /* Max VT, 0x0801, results in 0x7ff in registers */ SiS_Pr 5604 drivers/video/fbdev/sis/init301.c VGAVDE = SiS_Pr->SiS_VGAVDE; SiS_Pr 5612 drivers/video/fbdev/sis/init301.c SiS_Pr->CVDisplay = VGAVDE; SiS_Pr 5614 drivers/video/fbdev/sis/init301.c SiS_Pr->CVBlankStart = SiS_Pr->CVDisplay; SiS_Pr 5616 drivers/video/fbdev/sis/init301.c SiS_Pr->CVBlankEnd = 1; SiS_Pr 5617 drivers/video/fbdev/sis/init301.c if(ModeNo == 0x3c) SiS_Pr->CVBlankEnd = 226; SiS_Pr 5619 drivers/video/fbdev/sis/init301.c temp = (SiS_Pr->SiS_VGAVT - VGAVDE) >> 1; SiS_Pr 5620 drivers/video/fbdev/sis/init301.c SiS_Pr->CVSyncStart = VGAVDE + temp; SiS_Pr 5623 drivers/video/fbdev/sis/init301.c SiS_Pr->CVSyncEnd = SiS_Pr->CVSyncStart + temp; SiS_Pr 5625 drivers/video/fbdev/sis/init301.c SiS_CalcCRRegisters(SiS_Pr, 0); SiS_Pr 5626 drivers/video/fbdev/sis/init301.c SiS_Pr->CCRT1CRTC[16] &= ~0xE0; SiS_Pr 5629 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[i]); SiS_Pr 5632 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); SiS_Pr 5635 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); SiS_Pr 5638 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,CRTranslation[i],SiS_Pr->CCRT1CRTC[j]); SiS_Pr 5641 drivers/video/fbdev/sis/init301.c temp = SiS_Pr->CCRT1CRTC[16] & 0xE0; SiS_Pr 5642 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,CRTranslation[0x0E],0x1F,temp); SiS_Pr 5644 drivers/video/fbdev/sis/init301.c temp = (SiS_Pr->CCRT1CRTC[16] & 0x01) << 5; SiS_Pr 5646 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,CRTranslation[0x09],0x5F,temp); SiS_Pr 5649 drivers/video/fbdev/sis/init301.c temp |= (SiS_GetReg(SiS_Pr->SiS_P3c4,0x01) & 0x01); SiS_Pr 5651 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,temp); /* SR01: HalfDCLK[3], 8/9 div dotclock[0] */ SiS_Pr 5653 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,0x00); /* CR14: (text mode: underline location) */ SiS_Pr 5654 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x12,0x00); /* CR17: n/a */ SiS_Pr 5657 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) { SiS_Pr 5658 drivers/video/fbdev/sis/init301.c temp = (SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x01) << 7; SiS_Pr 5660 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1A,temp); /* SR0E, dither[7] */ SiS_Pr 5662 drivers/video/fbdev/sis/init301.c temp = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); SiS_Pr 5663 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,temp); /* ? */ SiS_Pr 5671 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 5686 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 5687 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 5689 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 5691 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 5692 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 5694 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 5695 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 5697 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 5702 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_LVDS == 1) || (SiS_Pr->SiS_VBType & VB_NoLCD)) { SiS_Pr 5707 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (!(SiS_Pr->SiS_VBType & VB_NoLCD))) { SiS_Pr 5711 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (islvds) && (!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA))) { SiS_Pr 5712 drivers/video/fbdev/sis/init301.c if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) { SiS_Pr 5718 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 5720 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2D,0x10); SiS_Pr 5723 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xfb,0x04); SiS_Pr 5724 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2D,0x03); SiS_Pr 5725 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 5726 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2D,0x10); SiS_Pr 5730 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xfb,0x04); SiS_Pr 5731 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2D,0x00); SiS_Pr 5732 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 5733 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x2D,0x0f); SiS_Pr 5734 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xC) { SiS_Pr 5735 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDResInfo == Panel_1024x768) || SiS_Pr 5736 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1280x1024)) { SiS_Pr 5737 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2D,0x20); SiS_Pr 5747 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_LCDHDES; SiS_Pr 5749 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5750 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->SiS_IF_DEF_FSTN && !SiS_Pr->SiS_IF_DEF_DSTN) { SiS_Pr 5751 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDResInfo == Panel_640x480) && SiS_Pr 5752 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_VBInfo & SetInSlaveMode))) { SiS_Pr 5760 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1A,temp); /* BPLHDESKEW[2:0] */ SiS_Pr 5762 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,temp); /* BPLHDESKEW[10:3] */ SiS_Pr 5764 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HDE; SiS_Pr 5765 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5766 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5767 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelXRes; SiS_Pr 5769 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDResInfo == Panel_320x240_1) || SiS_Pr 5770 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_320x240_2) || SiS_Pr 5771 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_320x240_3)) { SiS_Pr 5777 drivers/video/fbdev/sis/init301.c if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT; SiS_Pr 5782 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x17,temp); /* BPLHDEE */ SiS_Pr 5784 drivers/video/fbdev/sis/init301.c tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; SiS_Pr 5786 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5787 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5788 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; SiS_Pr 5793 drivers/video/fbdev/sis/init301.c if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; SiS_Pr 5796 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5797 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION) { SiS_Pr 5798 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 5819 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x14,temp); /* BPLHRS */ SiS_Pr 5821 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5823 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5825 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelHRE != 999) { SiS_Pr 5826 drivers/video/fbdev/sis/init301.c temp = tempcx + SiS_Pr->PanelHRE; SiS_Pr 5827 drivers/video/fbdev/sis/init301.c if(temp >= SiS_Pr->SiS_HT) temp -= SiS_Pr->SiS_HT; SiS_Pr 5837 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x15,temp); /* BPLHRE */ SiS_Pr 5841 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAVDE; SiS_Pr 5842 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5843 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5844 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->PanelYRes; SiS_Pr 5848 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDVDES + tempax; SiS_Pr 5849 drivers/video/fbdev/sis/init301.c if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; SiS_Pr 5853 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; SiS_Pr 5854 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 5855 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5856 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5857 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; SiS_Pr 5864 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) && SiS_Pr 5865 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_LCDInfo & LCDPass11)) && SiS_Pr 5866 drivers/video/fbdev/sis/init301.c (SiS_Pr->PanelVRS != 999) ) { SiS_Pr 5867 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->PanelVRS; SiS_Pr 5872 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) tempbx++; SiS_Pr 5876 drivers/video/fbdev/sis/init301.c if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; SiS_Pr 5879 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION) { SiS_Pr 5880 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 5884 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,temp); /* BPLVRS */ SiS_Pr 5889 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5890 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 5891 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; SiS_Pr 5897 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0xF0,temp); /* BPLVRE */ SiS_Pr 5900 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_FSTN || SiS_Pr->SiS_IF_DEF_DSTN) { SiS_Pr 5901 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_HDE != 640) { SiS_Pr 5902 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE != SiS_Pr->SiS_VDE) temp |= 0x40; SiS_Pr 5904 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VGAVDE != SiS_Pr->SiS_VDE) temp |= 0x40; SiS_Pr 5905 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & EnableLVDSDDA) temp |= 0x40; SiS_Pr 5907 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) || SiS_Pr 5908 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision >= 0x30)) { SiS_Pr 5910 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_CH70xx == 1) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 5911 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x03) temp |= 0x80; SiS_Pr 5914 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) { SiS_Pr 5915 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 5916 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x06) & 0x10) temp |= 0x80; SiS_Pr 5918 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x01) temp |= 0x80; SiS_Pr 5922 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); SiS_Pr 5926 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ SiS_Pr 5928 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 5929 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 5931 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE - 1; SiS_Pr 5932 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAVDE; SiS_Pr 5935 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 5940 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 5942 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 5948 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 5949 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 5959 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1D,temp); SiS_Pr 5960 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx); SiS_Pr 5961 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); SiS_Pr 5965 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 5968 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_VGAVDE << 6; SiS_Pr 5969 drivers/video/fbdev/sis/init301.c temp = (tempeax % (unsigned int)SiS_Pr->SiS_VDE); SiS_Pr 5970 drivers/video/fbdev/sis/init301.c tempeax = tempeax / (unsigned int)SiS_Pr->SiS_VDE; SiS_Pr 5973 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & EnableLVDSDDA) tempeax = 0x3F; SiS_Pr 5976 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1E,temp); /* BPLVCFACT */ SiS_Pr 5983 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_VGAVDE << 18; SiS_Pr 5984 drivers/video/fbdev/sis/init301.c tempebx = SiS_Pr->SiS_VDE; SiS_Pr 5991 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x37,temp); SiS_Pr 5993 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x36,temp); SiS_Pr 5995 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VDE == SiS_Pr->SiS_VGAVDE) temp |= 0x04; SiS_Pr 5996 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x35,temp); SiS_Pr 5998 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISPART4SCALER) { SiS_Pr 6000 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x3c,temp); SiS_Pr 6002 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x3b,temp); SiS_Pr 6004 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0x3f,temp); SiS_Pr 6006 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VDE != SiS_Pr->SiS_VGAVDE) temp |= 0x08; SiS_Pr 6007 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x30,0xf3,temp); SiS_Pr 6015 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_VGAHDE; /* 1f = ( (VGAHDE * 65536) / ( (VGAHDE * 65536) / HDE ) ) - 1*/ SiS_Pr 6020 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_HDE == tempeax) { SiS_Pr 6023 drivers/video/fbdev/sis/init301.c tempecx = tempebx / SiS_Pr->SiS_HDE; SiS_Pr 6024 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 6025 drivers/video/fbdev/sis/init301.c if(tempebx % SiS_Pr->SiS_HDE) tempecx++; SiS_Pr 6029 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 6032 drivers/video/fbdev/sis/init301.c tempeax = ((SiS_Pr->SiS_VGAHT << 16) / tempecx) - 1; SiS_Pr 6036 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1F,temp); SiS_Pr 6038 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 6039 drivers/video/fbdev/sis/init301.c tempeax = (SiS_Pr->SiS_VGAVDE << 18) / tempvcfact; SiS_Pr 6042 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_VGAVDE << 6; SiS_Pr 6048 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--; SiS_Pr 6049 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & EnableLVDSDDA) { SiS_Pr 6050 drivers/video/fbdev/sis/init301.c if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1; SiS_Pr 6051 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1; SiS_Pr 6056 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x20,temp); SiS_Pr 6057 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx); SiS_Pr 6064 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x22,temp); SiS_Pr 6066 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x23,temp); SiS_Pr 6069 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 6070 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 6071 drivers/video/fbdev/sis/init301.c if((islvds) || (SiS_Pr->SiS_VBInfo & VB_SISLVDS)) { SiS_Pr 6072 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1e,0x20); SiS_Pr 6076 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 6077 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1e,0x03); SiS_Pr 6079 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1e,0x23); SiS_Pr 6087 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_TRUMPION) { SiS_Pr 6088 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 6095 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 6098 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDTypeInfo == 0x0e) j += 7; SiS_Pr 6102 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x02,0xbf); SiS_Pr 6104 drivers/video/fbdev/sis/init301.c SiS_SetTrumpionBlock(SiS_Pr, trumpdata); SiS_Pr 6106 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 6109 drivers/video/fbdev/sis/init301.c SiS_SetTrumpionBlock(SiS_Pr, &TrumpMode13[0]); SiS_Pr 6113 drivers/video/fbdev/sis/init301.c SiS_SetTrumpionBlock(SiS_Pr, &TrumpMode10_1[0]); SiS_Pr 6114 drivers/video/fbdev/sis/init301.c SiS_SetTrumpionBlock(SiS_Pr, &TrumpMode10_2[0]); SiS_Pr 6118 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x02,0x40); SiS_Pr 6123 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_FSTN || SiS_Pr->SiS_IF_DEF_DSTN) { SiS_Pr 6124 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x25,0x00); SiS_Pr 6125 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x26,0x00); SiS_Pr 6126 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x27,0x00); SiS_Pr 6127 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x28,0x87); SiS_Pr 6128 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x29,0x5A); SiS_Pr 6129 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2A,0x4B); SiS_Pr 6130 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x44,~0x07,0x03); SiS_Pr 6131 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */ SiS_Pr 6132 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_320x240_1 || SiS_Pr 6133 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_2 || SiS_Pr 6134 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_Pr 6136 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff); SiS_Pr 6138 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,~0x078,temp); SiS_Pr 6140 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff); SiS_Pr 6141 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3A,0x00); /* Bflml = 0 */ SiS_Pr 6142 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x3C,~0x007); SiS_Pr 6144 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VDE; SiS_Pr 6145 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_320x240_1 || SiS_Pr 6146 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_2 || SiS_Pr 6147 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_Pr 6149 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff); SiS_Pr 6151 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x3C,~0x038,temp); SiS_Pr 6153 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_HDE; SiS_Pr 6154 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_320x240_1 || SiS_Pr 6155 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_2 || SiS_Pr 6156 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempeax >>= 1; SiS_Pr 6162 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x45,temp); SiS_Pr 6163 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3F,0x00); /* BDxWadrst0 */ SiS_Pr 6164 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3E,0x00); SiS_Pr 6165 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3D,0x10); SiS_Pr 6166 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x3C,~0x040); SiS_Pr 6168 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_HDE; SiS_Pr 6169 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_320x240_1 || SiS_Pr 6170 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_2 || SiS_Pr 6171 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_Pr 6175 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x43,temp); SiS_Pr 6177 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port, 0x44, 0x07, temp); SiS_Pr 6179 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */ SiS_Pr 6180 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_320x240_1 || SiS_Pr 6181 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_2 || SiS_Pr 6182 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_Pr 6185 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x42,temp); SiS_Pr 6187 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x41,temp); SiS_Pr 6189 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x40,temp); SiS_Pr 6191 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port, 0x3C, 0x7F, temp); SiS_Pr 6193 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2F,0x03); SiS_Pr 6194 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x03,0x50); SiS_Pr 6195 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x04,0x00); SiS_Pr 6196 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2F,0x01); SiS_Pr 6197 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x19,0x38); SiS_Pr 6199 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_FSTN) { SiS_Pr 6200 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2b,0x02); SiS_Pr 6201 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2c,0x00); SiS_Pr 6202 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2d,0x00); SiS_Pr 6203 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x35,0x0c); SiS_Pr 6204 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x36,0x00); SiS_Pr 6205 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x37,0x00); SiS_Pr 6206 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,0x80); SiS_Pr 6207 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,0xA0); SiS_Pr 6208 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3a,0x00); SiS_Pr 6209 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3b,0xf0); SiS_Pr 6210 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3c,0x00); SiS_Pr 6211 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3d,0x10); SiS_Pr 6212 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3e,0x00); SiS_Pr 6213 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3f,0x00); SiS_Pr 6214 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x40,0x10); SiS_Pr 6215 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x41,0x25); SiS_Pr 6216 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x42,0x80); SiS_Pr 6217 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x43,0x14); SiS_Pr 6218 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x44,0x03); SiS_Pr 6219 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x45,0x0a); SiS_Pr 6227 drivers/video/fbdev/sis/init301.c SiS_SetGroup1(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 6231 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 6239 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 6240 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 6245 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 6246 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 6247 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 6249 drivers/video/fbdev/sis/init301.c CRT1Index = SiS_GetRefCRT1CRTC(SiS_Pr, RefreshRateTableIndex, SiS_Pr->SiS_UseWideCRT2); SiS_Pr 6250 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 6251 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 6254 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 6256 drivers/video/fbdev/sis/init301.c if( ! ((SiS_Pr->ChipType >= SIS_315H) && SiS_Pr 6257 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_IF_DEF_LVDS == 1) && SiS_Pr 6258 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_VBInfo & SetInSlaveMode)) ) { SiS_Pr 6260 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H ) { SiS_Pr 6262 drivers/video/fbdev/sis/init301.c SiS_SetCRT2FIFO_300(SiS_Pr, ModeNo); SiS_Pr 6266 drivers/video/fbdev/sis/init301.c SiS_SetCRT2FIFO_310(SiS_Pr); SiS_Pr 6272 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H ) { SiS_Pr 6276 drivers/video/fbdev/sis/init301.c temp = (SiS_Pr->SiS_VGAHT - 1) & 0x0FF; /* BTVGA2HT 0x08,0x09 */ SiS_Pr 6277 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,temp); /* CRT2 Horizontal Total */ SiS_Pr 6279 drivers/video/fbdev/sis/init301.c temp = (((SiS_Pr->SiS_VGAHT - 1) & 0xFF00) >> 8) << 4; SiS_Pr 6280 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x09,0x0f,temp); /* CRT2 Horizontal Total Overflow [7:4] */ SiS_Pr 6282 drivers/video/fbdev/sis/init301.c temp = (SiS_Pr->SiS_VGAHDE + 12) & 0x0FF; /* BTVGA2HDEE 0x0A,0x0C */ SiS_Pr 6283 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,temp); /* CRT2 Horizontal Display Enable End */ SiS_Pr 6285 drivers/video/fbdev/sis/init301.c pushbx = SiS_Pr->SiS_VGAHDE + 12; /* bx BTVGA2HRS 0x0B,0x0C */ SiS_Pr 6286 drivers/video/fbdev/sis/init301.c tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; SiS_Pr 6299 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ SiS_Pr 6301 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6304 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAHDE >> 1; SiS_Pr 6305 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; SiS_Pr 6306 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 6307 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT - tempax; SiS_Pr 6312 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ SiS_Pr 6314 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x09,0x0F,temp); /* CRT2 Horizontal Total Overflow [7:4] */ SiS_Pr 6316 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ SiS_Pr 6317 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAHDE; SiS_Pr 6326 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */ SiS_Pr 6335 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6336 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 6337 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) || SiS_Pr 6338 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1280x1024)) { SiS_Pr 6352 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6354 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 6355 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncStart + bridgeadd; SiS_Pr 6356 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->CHSyncEnd + bridgeadd; SiS_Pr 6357 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAHT; SiS_Pr 6363 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) { SiS_Pr 6365 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 6366 drivers/video/fbdev/sis/init301.c cr4 = SiS_Pr->CCRT1CRTC[4]; SiS_Pr 6367 drivers/video/fbdev/sis/init301.c cr14 = SiS_Pr->CCRT1CRTC[14]; SiS_Pr 6368 drivers/video/fbdev/sis/init301.c cr5 = SiS_Pr->CCRT1CRTC[5]; SiS_Pr 6369 drivers/video/fbdev/sis/init301.c cr15 = SiS_Pr->CCRT1CRTC[15]; SiS_Pr 6371 drivers/video/fbdev/sis/init301.c cr4 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[4]; SiS_Pr 6372 drivers/video/fbdev/sis/init301.c cr14 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[14]; SiS_Pr 6373 drivers/video/fbdev/sis/init301.c cr5 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[5]; SiS_Pr 6374 drivers/video/fbdev/sis/init301.c cr15 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[15]; SiS_Pr 6382 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAHT; SiS_Pr 6388 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetNTSC1024 | TVSet525p1024)) { SiS_Pr 6395 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */ SiS_Pr 6397 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ SiS_Pr 6400 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0C,temp); /* Overflow */ SiS_Pr 6404 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAVT - 1; SiS_Pr 6407 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 6408 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 6409 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 6410 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 6411 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToSVIDEO | SetCRT2ToAVIDEO)) { SiS_Pr 6418 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 6422 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0E,temp); /* CRT2 Vertical Total */ SiS_Pr 6424 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAVDE - 1; SiS_Pr 6425 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */ SiS_Pr 6428 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x12,temp); /* Overflow */ SiS_Pr 6430 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->ChipType < SIS_661)) { SiS_Pr 6442 drivers/video/fbdev/sis/init301.c tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x11 */ SiS_Pr 6443 drivers/video/fbdev/sis/init301.c tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */ SiS_Pr 6446 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6447 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 6448 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CVSyncStart; SiS_Pr 6449 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->CVSyncEnd; SiS_Pr 6451 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) { SiS_Pr 6453 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 6454 drivers/video/fbdev/sis/init301.c cr8 = SiS_Pr->CCRT1CRTC[8]; SiS_Pr 6455 drivers/video/fbdev/sis/init301.c cr7 = SiS_Pr->CCRT1CRTC[7]; SiS_Pr 6456 drivers/video/fbdev/sis/init301.c cr13 = SiS_Pr->CCRT1CRTC[13]; SiS_Pr 6457 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->CCRT1CRTC[9]; SiS_Pr 6459 drivers/video/fbdev/sis/init301.c cr8 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[8]; SiS_Pr 6460 drivers/video/fbdev/sis/init301.c cr7 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[7]; SiS_Pr 6461 drivers/video/fbdev/sis/init301.c cr13 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[13]; SiS_Pr 6462 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; SiS_Pr 6470 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */ SiS_Pr 6473 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x11,temp); /* CRT2 Vert. Retrace End; Overflow */ SiS_Pr 6477 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 6481 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6483 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 6485 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) temp = 0x2c; SiS_Pr 6486 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) temp = 0x20; SiS_Pr 6488 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 6489 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) temp = 0x20; SiS_Pr 6491 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x960) temp = 0x24; SiS_Pr 6492 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_Custom) temp = 0x2c; SiS_Pr 6493 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp = 0x08; SiS_Pr 6494 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 6495 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) temp = 0x2c; SiS_Pr 6498 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 6500 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTVNoYPbPrHiVision) SiS_Pr 6502 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) SiS_Pr 6504 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) SiS_Pr 6510 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 6511 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PDC != -1) temp = SiS_Pr->PDC; SiS_Pr 6516 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 6517 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_640x480) temp = 0x04; SiS_Pr 6519 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 6524 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 6525 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PDC != -1) temp = SiS_Pr->PDC; SiS_Pr 6531 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); /* Panel Link Delay Compensation; (Software Command Reset; Power Saving) */ SiS_Pr 6539 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 6541 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 6543 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) temp = 0x03; SiS_Pr 6546 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp = 0x0a; SiS_Pr 6548 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_650) { SiS_Pr 6549 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 6550 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempbl = 0x0F; SiS_Pr 6554 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_DSTN || SiS_Pr->SiS_IF_DEF_FSTN) { SiS_Pr 6557 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 6562 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,tempbl,temp); /* Panel Link Delay Compensation */ SiS_Pr 6570 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax); SiS_Pr 6578 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 6579 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_NoLCD) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) { SiS_Pr 6581 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 6582 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 6583 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_301(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 6586 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 6587 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 6589 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 6590 drivers/video/fbdev/sis/init301.c if((!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) || (SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 6591 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(SiS_Pr, ModeNo,ModeIdIndex,RefreshRateTableIndex); SiS_Pr 6594 drivers/video/fbdev/sis/init301.c SiS_SetGroup1_LVDS(SiS_Pr, ModeNo,ModeIdIndex,RefreshRateTableIndex); SiS_Pr 6606 drivers/video/fbdev/sis/init301.c SiS_GetGroup2CLVXPtr(struct SiS_Private *SiS_Pr, int tabletype) SiS_Pr 6611 drivers/video/fbdev/sis/init301.c a = SiS_Pr->SiS_VGAHDE; SiS_Pr 6612 drivers/video/fbdev/sis/init301.c b = SiS_Pr->SiS_HDE; SiS_Pr 6614 drivers/video/fbdev/sis/init301.c a = SiS_Pr->SiS_VGAVDE; SiS_Pr 6615 drivers/video/fbdev/sis/init301.c b = SiS_Pr->SiS_VDE; SiS_Pr 6623 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 6628 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 6629 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525i) tableptr = SiS_Part2CLVX_3; SiS_Pr 6630 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tableptr = SiS_Part2CLVX_3; SiS_Pr 6632 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 6646 drivers/video/fbdev/sis/init301.c SiS_SetGroup2_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 6653 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SISTAP4SCALER)) return; SiS_Pr 6655 drivers/video/fbdev/sis/init301.c tableptr = SiS_GetGroup2CLVXPtr(SiS_Pr, 0); SiS_Pr 6657 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port, i, tableptr[j]); SiS_Pr 6659 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 6660 drivers/video/fbdev/sis/init301.c tableptr = SiS_GetGroup2CLVXPtr(SiS_Pr, 1); SiS_Pr 6662 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port, i, tableptr[j]); SiS_Pr 6666 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) temp |= 0x04; SiS_Pr 6667 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x4e,0xeb,temp); SiS_Pr 6671 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Part2Ptr(struct SiS_Private *SiS_Pr,unsigned short ModeNo,unsigned short ModeIdIndex, SiS_Pr 6676 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) return false; SiS_Pr 6679 drivers/video/fbdev/sis/init301.c (*ResIndex) = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 6681 drivers/video/fbdev/sis/init301.c (*ResIndex) = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 6686 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 6687 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) { SiS_Pr 6692 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSA2H_2) { SiS_Pr 6693 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 6694 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) (*CRT2Index) = 206; SiS_Pr 6703 drivers/video/fbdev/sis/init301.c SiS_Group2LCDSpecial(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short crt2crtc) SiS_Pr 6711 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 6712 drivers/video/fbdev/sis/init301.c if( ( ( (SiS_Pr->ChipType == SIS_630) || SiS_Pr 6713 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipType == SIS_730) ) && SiS_Pr 6714 drivers/video/fbdev/sis/init301.c (SiS_Pr->ChipRevision > 2) ) && SiS_Pr 6715 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1024x768) && SiS_Pr 6716 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) && SiS_Pr 6717 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) ) { SiS_Pr 6719 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,0xB9); SiS_Pr 6720 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,0xCC); SiS_Pr 6721 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,0xA6); SiS_Pr 6723 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x2B); SiS_Pr 6724 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x13); SiS_Pr 6725 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,0xE5); SiS_Pr 6726 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,0x08); SiS_Pr 6727 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,0xE2); SiS_Pr 6731 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 6732 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDTypeInfo == 0x0c) { SiS_Pr 6735 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetNotSimuMode)) { SiS_Pr 6736 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 6742 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,0xff); SiS_Pr 6745 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetNotSimuMode)) { SiS_Pr 6746 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 6748 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x28); SiS_Pr 6752 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x18); SiS_Pr 6753 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); SiS_Pr 6761 drivers/video/fbdev/sis/init301.c SiS_Set300Part2Regs(struct SiS_Private *SiS_Pr, unsigned short ModeIdIndex, unsigned short RefreshRateTableIndex, SiS_Pr 6768 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType != SIS_300) return; SiS_Pr 6769 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SIS30xBLV)) return; SiS_Pr 6770 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) return; SiS_Pr 6773 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 6775 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 6779 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) CRT2Part2Ptr = SiS_Pr->SiS_CRT2Part2_1024x768_1; SiS_Pr 6780 drivers/video/fbdev/sis/init301.c else CRT2Part2Ptr = SiS_Pr->SiS_CRT2Part2_1024x768_2; SiS_Pr 6784 drivers/video/fbdev/sis/init301.c CRT2Part2Ptr = SiS_Pr->SiS_CRT2Part2_1024x768_1; SiS_Pr 6788 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x01,0x80,(CRT2Part2Ptr+resindex)->CR[0]); SiS_Pr 6789 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x02,0x80,(CRT2Part2Ptr+resindex)->CR[1]); SiS_Pr 6791 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 6794 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 6797 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 6799 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,(CRT2Part2Ptr+resindex)->CR[10]); SiS_Pr 6800 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0f,(CRT2Part2Ptr+resindex)->CR[11]); SiS_Pr 6805 drivers/video/fbdev/sis/init301.c SiS_SetTVSpecial(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 6807 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SIS30xBLV)) return; SiS_Pr 6808 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTVNoHiVision)) return; SiS_Pr 6809 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p | TVSetYPbPr750p)) return; SiS_Pr 6811 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) { SiS_Pr 6812 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSC1024) { SiS_Pr 6820 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,specialtv[j]); SiS_Pr 6822 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x43,0x72); SiS_Pr 6823 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750)) { SiS_Pr 6824 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 6825 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x14); SiS_Pr 6826 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x1b); SiS_Pr 6828 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x14); /* 15 */ SiS_Pr 6829 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x1a); /* 1b */ SiS_Pr 6836 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x1b); /* 21 */ SiS_Pr 6837 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x54); /* 5a */ SiS_Pr 6839 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x1a); /* 21 */ SiS_Pr 6840 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x53); /* 5a */ SiS_Pr 6846 drivers/video/fbdev/sis/init301.c SiS_SetGroup2_Tail(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 6850 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) { SiS_Pr 6851 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 525) { SiS_Pr 6853 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType <= ModeVGA) { SiS_Pr 6855 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) temp += 2; SiS_Pr 6857 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2f,temp); SiS_Pr 6858 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x30,0xb3); SiS_Pr 6859 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VGAVDE == 420) { SiS_Pr 6861 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType <= ModeVGA) { SiS_Pr 6863 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) temp++; SiS_Pr 6865 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2f,temp); SiS_Pr 6869 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 6870 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) { SiS_Pr 6871 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xB) { SiS_Pr 6872 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part2Port,0x1a,0x03); SiS_Pr 6877 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x0b,temp); SiS_Pr 6881 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_PanelXRes == 1280) && (SiS_Pr->SiS_PanelYRes == 768)) { SiS_Pr 6882 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetSimuScanMode) { SiS_Pr 6883 drivers/video/fbdev/sis/init301.c if(((SiS_Pr->SiS_HDE == 640) && (SiS_Pr->SiS_VDE == 480)) || SiS_Pr 6884 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_HDE == 320) && (SiS_Pr->SiS_VDE == 240))) { SiS_Pr 6905 drivers/video/fbdev/sis/init301.c SiS_SetGroup2(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 6917 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) return; SiS_Pr 6921 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 6922 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 6923 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 6924 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 6927 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 6928 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 6932 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToAVIDEO)) temp |= 0x08; SiS_Pr 6933 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToSVIDEO)) temp |= 0x04; SiS_Pr 6934 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToSCART) temp |= 0x02; SiS_Pr 6935 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) temp |= 0x01; SiS_Pr 6937 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) temp |= 0x10; SiS_Pr 6939 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x00,temp); SiS_Pr 6942 drivers/video/fbdev/sis/init301.c TimingPoint = SiS_Pr->SiS_PALTiming; SiS_Pr 6945 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VBType & VB_SIS30xBLV) && SiS_Pr 6946 drivers/video/fbdev/sis/init301.c ( (!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) || SiS_Pr 6947 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_TVMode & TVSetTVSimuMode) ) ) { SiS_Pr 6951 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 6953 drivers/video/fbdev/sis/init301.c TimingPoint = SiS_Pr->SiS_HiTVExtTiming; SiS_Pr 6954 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 6955 drivers/video/fbdev/sis/init301.c TimingPoint = SiS_Pr->SiS_HiTVSt2Timing; SiS_Pr 6956 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) { SiS_Pr 6957 drivers/video/fbdev/sis/init301.c TimingPoint = SiS_Pr->SiS_HiTVSt1Timing; SiS_Pr 6961 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 6964 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) i = 2; SiS_Pr 6965 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) i = 1; SiS_Pr 6971 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 6977 drivers/video/fbdev/sis/init301.c TimingPoint = SiS_Pr->SiS_NTSCTiming; SiS_Pr 6978 drivers/video/fbdev/sis/init301.c PhaseIndex = (SiS_Pr->SiS_TVMode & TVSetNTSCJ) ? 0x01 : 0x00; /* SiS_PALPhase : SiS_NTSCPhase */ SiS_Pr 6983 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetPALM | TVSetPALN)) { SiS_Pr 6984 drivers/video/fbdev/sis/init301.c PhaseIndex = (SiS_Pr->SiS_TVMode & TVSetPALM) ? 0x02 : 0x03; /* SiS_PALMPhase : SiS_PALNPhase */ SiS_Pr 6988 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSC1024) { SiS_Pr 6989 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 6991 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) { SiS_Pr 6999 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS_TVPhase[(PhaseIndex * 4) + j]); SiS_Pr 7003 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,TimingPoint[j]); SiS_Pr 7006 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,TimingPoint[j]); SiS_Pr 7009 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 7010 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType != ModeText) { SiS_Pr 7011 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x3A,0x1F); SiS_Pr 7015 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part2Port,0x0A,SiS_Pr->SiS_NewFlickerMode); SiS_Pr 7017 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x35,SiS_Pr->SiS_RY1COE); SiS_Pr 7018 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x36,SiS_Pr->SiS_RY2COE); SiS_Pr 7019 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x37,SiS_Pr->SiS_RY3COE); SiS_Pr 7020 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x38,SiS_Pr->SiS_RY4COE); SiS_Pr 7022 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950; SiS_Pr 7023 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680; SiS_Pr 7024 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520; SiS_Pr 7027 drivers/video/fbdev/sis/init301.c if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) || SiS_Pr 7028 drivers/video/fbdev/sis/init301.c ( (SiS_Pr->SiS_VBInfo & SetCRT2ToTVNoHiVision) && SiS_Pr 7029 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) { SiS_Pr 7031 drivers/video/fbdev/sis/init301.c tempax -= SiS_Pr->SiS_VDE; SiS_Pr 7033 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p | TVSetYPbPr750p))) { SiS_Pr 7039 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,temp); SiS_Pr 7042 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,temp); SiS_Pr 7044 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToTVNoYPbPrHiVision) && (SiS_Pr->SiS_VGAHDE >= 1024)) { SiS_Pr 7045 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 7046 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x1b); SiS_Pr 7047 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x54); SiS_Pr 7049 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,0x17); SiS_Pr 7050 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,0x1d); SiS_Pr 7056 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT; SiS_Pr 7057 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; SiS_Pr 7059 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--; SiS_Pr 7060 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); SiS_Pr 7061 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); SiS_Pr 7063 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT >> 1; SiS_Pr 7064 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; SiS_Pr 7066 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; SiS_Pr 7067 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); SiS_Pr 7071 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx); SiS_Pr 7072 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0)); SiS_Pr 7075 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7079 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0)); SiS_Pr 7083 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); SiS_Pr 7084 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); SiS_Pr 7087 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; SiS_Pr 7088 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); SiS_Pr 7090 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT >> 1; SiS_Pr 7091 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; SiS_Pr 7094 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); SiS_Pr 7097 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 7098 drivers/video/fbdev/sis/init301.c tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; SiS_Pr 7100 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); SiS_Pr 7102 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE; SiS_Pr 7103 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 7104 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746; SiS_Pr 7105 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746; SiS_Pr 7106 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853; SiS_Pr 7107 drivers/video/fbdev/sis/init301.c } else if( (SiS_Pr->SiS_VBInfo & SetCRT2ToTV) && SiS_Pr 7108 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p|TVSetYPbPr750p))) ) { SiS_Pr 7110 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 7111 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) { SiS_Pr 7113 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 7114 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType <= ModeVGA) { SiS_Pr 7119 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 7120 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7123 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) { SiS_Pr 7129 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx); SiS_Pr 7133 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToSVIDEO | SetCRT2ToAVIDEO)) { SiS_Pr 7135 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToAVIDEO) temp |= 0x20; SiS_Pr 7137 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x30,temp); SiS_Pr 7139 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISPART4OVERFLOW) { SiS_Pr 7140 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5)); SiS_Pr 7143 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 7144 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE; SiS_Pr 7145 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_VBInfo & SetCRT2ToTV) && SiS_Pr 7146 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p | TVSetYPbPr750p))) ) { SiS_Pr 7151 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x46,temp); SiS_Pr 7152 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx); SiS_Pr 7154 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISPART4OVERFLOW) { SiS_Pr 7155 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4)); SiS_Pr 7161 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE >= SiS_Pr->SiS_HDE) { SiS_Pr 7168 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 7169 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE >= 960) { SiS_Pr 7170 drivers/video/fbdev/sis/init301.c if((!(modeflag & HalfDCLK)) || (SiS_Pr->ChipType < SIS_315H)) { SiS_Pr 7172 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE >= 1280) { SiS_Pr 7184 drivers/video/fbdev/sis/init301.c longtemp = ((SiS_Pr->SiS_VGAHDE * tempch) / tempcl) << 13; SiS_Pr 7185 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) longtemp <<= 3; SiS_Pr 7186 drivers/video/fbdev/sis/init301.c tempax = longtemp / SiS_Pr->SiS_HDE; SiS_Pr 7187 drivers/video/fbdev/sis/init301.c if(longtemp % SiS_Pr->SiS_HDE) tempax++; SiS_Pr 7192 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax); SiS_Pr 7193 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx); SiS_Pr 7195 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 7199 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); SiS_Pr 7201 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 7208 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx); SiS_Pr 7209 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); SiS_Pr 7212 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 7214 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) temp |= 0x20; SiS_Pr 7215 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) temp |= 0x40; SiS_Pr 7217 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4D,temp); SiS_Pr 7219 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x43); SiS_Pr 7220 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x43,(temp - 3)); SiS_Pr 7222 drivers/video/fbdev/sis/init301.c SiS_SetTVSpecial(SiS_Pr, ModeNo); SiS_Pr 7224 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xCLV) { SiS_Pr 7226 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 8; SiS_Pr 7227 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x4e,0xf7,temp); SiS_Pr 7232 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 7233 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetNTSC1024)) { SiS_Pr 7234 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x01); SiS_Pr 7235 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,(temp - 1)); SiS_Pr 7237 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x00,0xEF); SiS_Pr 7240 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7241 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 7242 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x0B,0x00); SiS_Pr 7246 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) return; SiS_Pr 7250 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HDE; SiS_Pr 7251 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_Pr 7253 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx); SiS_Pr 7254 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0)); SiS_Pr 7257 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) { SiS_Pr 7258 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType == ModeEGA) { SiS_Pr 7259 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAHDE >= 1024) { SiS_Pr 7261 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) { SiS_Pr 7267 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x0B,temp); SiS_Pr 7269 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE - 1; SiS_Pr 7270 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx); SiS_Pr 7271 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07)); SiS_Pr 7273 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VT - 1; SiS_Pr 7274 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); SiS_Pr 7276 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) { SiS_Pr 7278 drivers/video/fbdev/sis/init301.c if(SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00) & 0x01) { SiS_Pr 7282 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1A,0x0f,temp); SiS_Pr 7284 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x09,0xF0); SiS_Pr 7285 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x0A,0xF0); SiS_Pr 7287 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x17,0xFB); SiS_Pr 7288 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part2Port,0x18,0xDF); SiS_Pr 7291 drivers/video/fbdev/sis/init301.c if(SiS_GetCRT2Part2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, SiS_Pr 7296 drivers/video/fbdev/sis/init301.c case 200: CRT2Part2Ptr = SiS_Pr->SiS_CRT2Part2_1024x768_1; break; SiS_Pr 7299 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x01,0x80,(CRT2Part2Ptr+resindex)->CR[0]); SiS_Pr 7300 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x02,0x80,(CRT2Part2Ptr+resindex)->CR[1]); SiS_Pr 7302 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 7305 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 7308 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,j,(CRT2Part2Ptr+resindex)->CR[i]); SiS_Pr 7310 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,(CRT2Part2Ptr+resindex)->CR[10]); SiS_Pr 7311 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0f,(CRT2Part2Ptr+resindex)->CR[11]); SiS_Pr 7313 drivers/video/fbdev/sis/init301.c SiS_SetGroup2_Tail(SiS_Pr, ModeNo); SiS_Pr 7323 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 7324 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & LCDPass11) || (SiS_Pr->PanelYRes == SiS_Pr->SiS_VDE)) { SiS_Pr 7325 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE - 1; SiS_Pr 7326 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VT - 1; SiS_Pr 7328 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); SiS_Pr 7329 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); SiS_Pr 7332 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelYRes; SiS_Pr 7333 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VT; SiS_Pr 7335 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelYRes != SiS_Pr->SiS_VDE) { SiS_Pr 7336 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->PanelYRes; SiS_Pr 7338 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelYRes < SiS_Pr->SiS_VDE) { SiS_Pr 7341 drivers/video/fbdev/sis/init301.c tempax -= SiS_Pr->SiS_VDE; SiS_Pr 7351 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ SiS_Pr 7352 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */ SiS_Pr 7356 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x02,temp); SiS_Pr 7358 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VDE; SiS_Pr 7359 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 7360 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->PanelYRes; SiS_Pr 7362 drivers/video/fbdev/sis/init301.c tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; SiS_Pr 7363 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 7364 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelYRes != SiS_Pr->SiS_VDE) { SiS_Pr 7365 drivers/video/fbdev/sis/init301.c tempcx = (SiS_Pr->SiS_VT - tempax) / 10; SiS_Pr 7369 drivers/video/fbdev/sis/init301.c tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1; SiS_Pr 7370 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 7371 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelYRes != SiS_Pr->SiS_VDE) { SiS_Pr 7372 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { /* ? */ SiS_Pr 7373 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes; SiS_Pr 7379 drivers/video/fbdev/sis/init301.c if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1; SiS_Pr 7383 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 7385 drivers/video/fbdev/sis/init301.c if((!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) || (crt2crtc == 6)) { SiS_Pr 7386 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) { SiS_Pr 7395 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 7396 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CVSyncStart; SiS_Pr 7399 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */ SiS_Pr 7405 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 7407 drivers/video/fbdev/sis/init301.c temp |= (SiS_Pr->CVSyncEnd & 0x0f); SiS_Pr 7410 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x01,temp); SiS_Pr 7413 drivers/video/fbdev/sis/init301.c SiS_Group2LCDSpecial(SiS_Pr, ModeNo, crt2crtc); SiS_Pr 7417 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) bridgeoffset += 2; SiS_Pr 7418 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xCLV) bridgeoffset += 2; /* OK for Averatec 1280x800 (301C) */ SiS_Pr 7419 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) bridgeoffset++; SiS_Pr 7420 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VBType & VB_SIS302LV) bridgeoffset++; /* OK for Asus A4L 1280x800 */ SiS_Pr 7424 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 7425 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) { SiS_Pr 7426 drivers/video/fbdev/sis/init301.c temp = SiS_Pr->SiS_HT - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); SiS_Pr 7427 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) temp >>= 1; SiS_Pr 7431 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1F,temp); /* lcdhdes */ SiS_Pr 7432 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x20,0x0F,((temp >> 4) & 0xf0)); SiS_Pr 7434 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_HT; SiS_Pr 7435 drivers/video/fbdev/sis/init301.c tempax = tempbx = SiS_Pr->SiS_HDE; SiS_Pr 7436 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 7437 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) { SiS_Pr 7438 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->PanelXRes; SiS_Pr 7439 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); SiS_Pr 7442 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) { SiS_Pr 7450 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */ SiS_Pr 7451 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f)); SiS_Pr 7458 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) { SiS_Pr 7459 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) { SiS_Pr 7460 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr 7461 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47; SiS_Pr 7466 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 7467 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncStart; SiS_Pr 7469 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_Pr 7473 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */ SiS_Pr 7474 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0)); SiS_Pr 7479 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_LCDInfo & DontExpandLCD) && (!(SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 7480 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; SiS_Pr 7484 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 7485 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->CHSyncEnd; SiS_Pr 7487 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_Pr 7491 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */ SiS_Pr 7493 drivers/video/fbdev/sis/init301.c SiS_SetGroup2_Tail(SiS_Pr, ModeNo); SiS_Pr 7496 drivers/video/fbdev/sis/init301.c SiS_Set300Part2Regs(SiS_Pr, ModeIdIndex, RefreshRateTableIndex, ModeNo); SiS_Pr 7508 drivers/video/fbdev/sis/init301.c SiS_SetGroup3(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 7513 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) return; SiS_Pr 7516 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x00,0x00); SiS_Pr 7521 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 7522 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x13,0xFA); SiS_Pr 7523 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x14,0xC8); SiS_Pr 7525 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x13,0xF5); SiS_Pr 7526 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x14,0xB7); SiS_Pr 7529 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 7530 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x13,0xFA); SiS_Pr 7531 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x14,0xC8); SiS_Pr 7532 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x3D,0xA8); SiS_Pr 7536 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7537 drivers/video/fbdev/sis/init301.c tempdi = SiS_Pr->SiS_HiTVGroup3Data; SiS_Pr 7538 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) { SiS_Pr 7539 drivers/video/fbdev/sis/init301.c tempdi = SiS_Pr->SiS_HiTVGroup3Simu; SiS_Pr 7541 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) { SiS_Pr 7542 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetYPbPr525i)) { SiS_Pr 7544 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempdi = SiS_HiTVGroup3_2; SiS_Pr 7549 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,i,tempdi[i]); SiS_Pr 7551 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xCLV) { SiS_Pr 7552 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) { SiS_Pr 7553 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part3Port,0x28,0x3f); SiS_Pr 7570 drivers/video/fbdev/sis/init301.c SiS_ShiftXPos(struct SiS_Private *SiS_Pr, int shift) SiS_Pr 7574 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x1f); SiS_Pr 7575 drivers/video/fbdev/sis/init301.c temp2 = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x20); SiS_Pr 7577 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1f,temp); SiS_Pr 7578 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x20,0x0f,((temp >> 4) & 0xf0)); SiS_Pr 7579 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x2b) & 0x0f; SiS_Pr 7581 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2b,0xf0,(temp & 0x0f)); SiS_Pr 7582 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x43); SiS_Pr 7583 drivers/video/fbdev/sis/init301.c temp2 = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x42); SiS_Pr 7585 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x43,temp); SiS_Pr 7586 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x42,0x0f,((temp >> 4) & 0xf0)); SiS_Pr 7591 drivers/video/fbdev/sis/init301.c SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 7594 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 7596 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SIS30xCLV)) return; SiS_Pr 7597 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & (SetCRT2ToHiVision | SetCRT2ToYPbPr525750))) return; SiS_Pr 7599 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= XGI_20) return; SiS_Pr 7601 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_661) && (SiS_Pr->SiS_ROMNew)) { SiS_Pr 7605 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x3a,0x08); SiS_Pr 7606 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x3a); SiS_Pr 7608 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x3a,0xdf); SiS_Pr 7609 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x25,0xfc); SiS_Pr 7610 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType < SIS_661) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 7611 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x25,0xf8); SiS_Pr 7613 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x0f,0xfb); SiS_Pr 7614 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) temp = 0x0000; SiS_Pr 7615 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) temp = 0x0002; SiS_Pr 7616 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetHiVision) temp = 0x0400; SiS_Pr 7618 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_661) || (SiS_Pr->SiS_ROMNew)) { SiS_Pr 7620 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVAspect43) temp1 = 4; SiS_Pr 7621 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0f,0xfb,temp1); SiS_Pr 7622 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVAspect43LB) temp |= 0x01; SiS_Pr 7623 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x26,0x7c,(temp & 0xff)); SiS_Pr 7624 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0xfb,(temp >> 8)); SiS_Pr 7626 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x39,0xfd); SiS_Pr 7629 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x3b) & 0x03; SiS_Pr 7632 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x26,0xf8,(temp & 0xff)); SiS_Pr 7633 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x3a,0xfb,(temp >> 8)); SiS_Pr 7635 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x3b,0xfd); SiS_Pr 7640 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { /* ? */ SiS_Pr 7641 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVAspect43) { SiS_Pr 7642 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) { SiS_Pr 7644 drivers/video/fbdev/sis/init301.c SiS_ShiftXPos(SiS_Pr, 97); SiS_Pr 7646 drivers/video/fbdev/sis/init301.c SiS_ShiftXPos(SiS_Pr, 111); SiS_Pr 7648 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetHiVision) { SiS_Pr 7649 drivers/video/fbdev/sis/init301.c SiS_ShiftXPos(SiS_Pr, 136); SiS_Pr 7661 drivers/video/fbdev/sis/init301.c SiS_SetCRT2VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 7666 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 7667 drivers/video/fbdev/sis/init301.c reg1 = SiS_Pr->CSR2B; SiS_Pr 7668 drivers/video/fbdev/sis/init301.c reg2 = SiS_Pr->CSR2C; SiS_Pr 7670 drivers/video/fbdev/sis/init301.c vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 7671 drivers/video/fbdev/sis/init301.c reg1 = SiS_Pr->SiS_VBVCLKData[vclkindex].Part4_A; SiS_Pr 7672 drivers/video/fbdev/sis/init301.c reg2 = SiS_Pr->SiS_VBVCLKData[vclkindex].Part4_B; SiS_Pr 7675 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 7676 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetNTSC1024 | TVSet525p1024)) { SiS_Pr 7677 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0a,0x57); SiS_Pr 7678 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0b,0x46); SiS_Pr 7679 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1f,0xf6); SiS_Pr 7681 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0a,reg1); SiS_Pr 7682 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0b,reg2); SiS_Pr 7685 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0a,0x01); SiS_Pr 7686 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0b,reg2); SiS_Pr 7687 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0a,reg1); SiS_Pr 7689 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x12,0x00); SiS_Pr 7691 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) temp |= 0x20; SiS_Pr 7692 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x12,temp); SiS_Pr 7696 drivers/video/fbdev/sis/init301.c SiS_SetDualLinkEtc(struct SiS_Private *SiS_Pr) SiS_Pr 7698 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 7699 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISDUALLINK) { SiS_Pr 7700 drivers/video/fbdev/sis/init301.c if((SiS_CRT2IsLCD(SiS_Pr)) || SiS_Pr 7701 drivers/video/fbdev/sis/init301.c (SiS_IsVAMode(SiS_Pr))) { SiS_Pr 7702 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDDualLink) { SiS_Pr 7703 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x27,0x2c); SiS_Pr 7705 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x27,~0x20); SiS_Pr 7710 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 7711 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2a,0x00); SiS_Pr 7713 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x0c); SiS_Pr 7715 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x34,0x10); SiS_Pr 7720 drivers/video/fbdev/sis/init301.c SiS_SetGroup4(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 7727 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 7728 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 7729 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 7730 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->CModeFlag; SiS_Pr 7733 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 7734 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 7737 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 7738 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 7739 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 7740 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x24,0x0e); SiS_Pr 7745 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & (VB_SIS30xCLV | VB_SIS302LV)) { SiS_Pr 7746 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 7747 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x10,0x9f); SiS_Pr 7751 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 7752 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 7753 drivers/video/fbdev/sis/init301.c SiS_SetDualLinkEtc(SiS_Pr); SiS_Pr 7758 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x13,SiS_Pr->SiS_RVBHCFACT); SiS_Pr 7760 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_RVBHCMAX; SiS_Pr 7761 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx); SiS_Pr 7765 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAHT - 1; SiS_Pr 7766 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); SiS_Pr 7770 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_VGAVT - 1; SiS_Pr 7771 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; SiS_Pr 7772 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); SiS_Pr 7775 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x15,temp); SiS_Pr 7777 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_VGAHDE; SiS_Pr 7779 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_Pr 7781 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 7784 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7788 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & (TVSetYPbPr525p | TVSetYPbPr750p)) { SiS_Pr 7797 drivers/video/fbdev/sis/init301.c temp |= SiS_Pr->Init_P4_0E; SiS_Pr 7799 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 7800 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo != Panel_1280x1024) { SiS_Pr 7806 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0E,0x10,temp); SiS_Pr 7808 drivers/video/fbdev/sis/init301.c tempeax = SiS_Pr->SiS_VGAVDE; SiS_Pr 7809 drivers/video/fbdev/sis/init301.c tempebx = SiS_Pr->SiS_VDE; SiS_Pr 7810 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 7814 drivers/video/fbdev/sis/init301.c tempcx = SiS_Pr->SiS_RVBHRS; SiS_Pr 7815 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); SiS_Pr 7831 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1B,temp); SiS_Pr 7833 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1A,temp); SiS_Pr 7836 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x19,temp); SiS_Pr 7838 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 7840 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1C,0x28); SiS_Pr 7844 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08; SiS_Pr 7845 drivers/video/fbdev/sis/init301.c tempax = SiS_Pr->SiS_VGAHDE; SiS_Pr 7847 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1; SiS_Pr 7849 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 7860 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 7873 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax); SiS_Pr 7874 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1E,temp); SiS_Pr 7877 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 7880 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 7881 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & (TVSetNTSC1024 | TVSetHiVision | TVSetYPbPr750p | TVSetYPbPr525p))) { SiS_Pr 7883 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 7884 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) { SiS_Pr 7890 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); SiS_Pr 7892 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_HT >> 1; SiS_Pr 7893 drivers/video/fbdev/sis/init301.c if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_Pr 7895 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx); SiS_Pr 7897 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x21,0xC0,temp); SiS_Pr 7899 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 7900 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 7901 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x24,0x0e); SiS_Pr 7906 drivers/video/fbdev/sis/init301.c SiS_SetDualLinkEtc(SiS_Pr); SiS_Pr 7910 drivers/video/fbdev/sis/init301.c SiS_SetCRT2VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 7918 drivers/video/fbdev/sis/init301.c SiS_SetGroup5(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 7921 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) return; SiS_Pr 7923 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType == ModeVGA) { SiS_Pr 7924 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & (SetInSlaveMode | LoadDACFlag))) { SiS_Pr 7925 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3c4,0x1E,0x20); SiS_Pr 7926 drivers/video/fbdev/sis/init301.c SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 7936 drivers/video/fbdev/sis/init301.c SiS_GetLVDSCRT1Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 7946 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 7947 drivers/video/fbdev/sis/init301.c (*ResIndex) = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 7949 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 7950 drivers/video/fbdev/sis/init301.c (*ResIndex) = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 7955 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_CH70xx) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 7958 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_TVMode & TVSetPAL) && (!(SiS_Pr->SiS_TVMode & TVSetPALM))) { SiS_Pr 7960 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 7961 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) (*DisplayType) = 84; SiS_Pr 7965 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) (*DisplayType)++; SiS_Pr 7971 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 7990 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x600) { SiS_Pr 7991 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) (*DisplayType) += 2; SiS_Pr 8000 drivers/video/fbdev/sis/init301.c SiS_ModCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 8010 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || SiS_Pr 8011 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1024) || SiS_Pr 8012 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL848) || SiS_Pr 8013 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_PANEL856) ) SiS_Pr 8016 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS) { SiS_Pr 8017 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 8018 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) return; SiS_Pr 8020 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 8021 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) return; SiS_Pr 8024 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) return; SiS_Pr 8026 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 8027 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & SetDOSMode) return; SiS_Pr 8030 drivers/video/fbdev/sis/init301.c if(!(SiS_GetLVDSCRT1Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex, SiS_Pr 8036 drivers/video/fbdev/sis/init301.c case 50: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1320x240_1; break; /* xSTN */ SiS_Pr 8037 drivers/video/fbdev/sis/init301.c case 14: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1320x240_2; break; /* xSTN */ SiS_Pr 8038 drivers/video/fbdev/sis/init301.c case 15: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1320x240_2_H; break; /* xSTN */ SiS_Pr 8039 drivers/video/fbdev/sis/init301.c case 18: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1320x240_3; break; /* xSTN */ SiS_Pr 8040 drivers/video/fbdev/sis/init301.c case 19: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1320x240_3_H; break; /* xSTN */ SiS_Pr 8041 drivers/video/fbdev/sis/init301.c case 10: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1640x480_1; break; SiS_Pr 8042 drivers/video/fbdev/sis/init301.c case 11: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT1640x480_1_H; break; SiS_Pr 8044 drivers/video/fbdev/sis/init301.c case 26: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT11024x600_1; break; SiS_Pr 8045 drivers/video/fbdev/sis/init301.c case 27: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT11024x600_1_H; break; SiS_Pr 8046 drivers/video/fbdev/sis/init301.c case 28: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT11024x600_2; break; SiS_Pr 8047 drivers/video/fbdev/sis/init301.c case 29: LVDSCRT1Ptr = SiS_Pr->SiS_LVDSCRT11024x600_2_H; break; SiS_Pr 8049 drivers/video/fbdev/sis/init301.c case 80: LVDSCRT1Ptr = SiS_Pr->SiS_CHTVCRT1UNTSC; break; SiS_Pr 8050 drivers/video/fbdev/sis/init301.c case 81: LVDSCRT1Ptr = SiS_Pr->SiS_CHTVCRT1ONTSC; break; SiS_Pr 8051 drivers/video/fbdev/sis/init301.c case 82: LVDSCRT1Ptr = SiS_Pr->SiS_CHTVCRT1UPAL; break; SiS_Pr 8052 drivers/video/fbdev/sis/init301.c case 83: LVDSCRT1Ptr = SiS_Pr->SiS_CHTVCRT1OPAL; break; SiS_Pr 8053 drivers/video/fbdev/sis/init301.c case 84: LVDSCRT1Ptr = SiS_Pr->SiS_CHTVCRT1SOPAL; break; SiS_Pr 8058 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_P3d4,0x11,0x7f); SiS_Pr 8062 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah); SiS_Pr 8067 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah); SiS_Pr 8071 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah); SiS_Pr 8073 drivers/video/fbdev/sis/init301.c if(ModeNo <= 0x13) modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 8074 drivers/video/fbdev/sis/init301.c else modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 8078 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah); SiS_Pr 8082 drivers/video/fbdev/sis/init301.c SiS_CalcLCDACRT1Timing(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8092 drivers/video/fbdev/sis/init301.c SiS_SetCRT2ECLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 8095 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 8099 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDPass11) { SiS_Pr 8100 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag &= (~ProgrammingCRT2); SiS_Pr 8101 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK == 2) { SiS_Pr 8104 drivers/video/fbdev/sis/init301.c vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, SiS_Pr 8106 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 8108 drivers/video/fbdev/sis/init301.c vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, SiS_Pr 8112 drivers/video/fbdev/sis/init301.c sr2b = SiS_Pr->SiS_VCLKData[vclkindex].SR2B; SiS_Pr 8113 drivers/video/fbdev/sis/init301.c sr2c = SiS_Pr->SiS_VCLKData[vclkindex].SR2C; SiS_Pr 8115 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || (SiS_Pr->SiS_CustomT == CUT_BARCO1024)) { SiS_Pr 8116 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 8125 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA)) { SiS_Pr 8126 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) { SiS_Pr 8131 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x20); SiS_Pr 8132 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b); SiS_Pr 8133 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c); SiS_Pr 8134 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x10); SiS_Pr 8135 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b); SiS_Pr 8136 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c); SiS_Pr 8137 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x31,0x00); SiS_Pr 8138 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase,sr2b); SiS_Pr 8139 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,clkbase+1,sr2c); SiS_Pr 8147 drivers/video/fbdev/sis/init301.c SiS_SetCHTVReg(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 8154 drivers/video/fbdev/sis/init301.c resindex = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 8156 drivers/video/fbdev/sis/init301.c resindex = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; SiS_Pr 8161 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) TVType += 1; SiS_Pr 8162 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 8164 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType > ModeVGA) { SiS_Pr 8165 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CHSOverScan) TVType = 8; SiS_Pr 8167 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) { SiS_Pr 8169 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) TVType += 1; SiS_Pr 8170 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_TVMode & TVSetPALN) { SiS_Pr 8172 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) TVType += 1; SiS_Pr 8177 drivers/video/fbdev/sis/init301.c case 0: CHTVRegData = SiS_Pr->SiS_CHTVReg_UNTSC; break; SiS_Pr 8178 drivers/video/fbdev/sis/init301.c case 1: CHTVRegData = SiS_Pr->SiS_CHTVReg_ONTSC; break; SiS_Pr 8179 drivers/video/fbdev/sis/init301.c case 2: CHTVRegData = SiS_Pr->SiS_CHTVReg_UPAL; break; SiS_Pr 8180 drivers/video/fbdev/sis/init301.c case 3: CHTVRegData = SiS_Pr->SiS_CHTVReg_OPAL; break; SiS_Pr 8181 drivers/video/fbdev/sis/init301.c case 4: CHTVRegData = SiS_Pr->SiS_CHTVReg_UPALM; break; SiS_Pr 8182 drivers/video/fbdev/sis/init301.c case 5: CHTVRegData = SiS_Pr->SiS_CHTVReg_OPALM; break; SiS_Pr 8183 drivers/video/fbdev/sis/init301.c case 6: CHTVRegData = SiS_Pr->SiS_CHTVReg_UPALN; break; SiS_Pr 8184 drivers/video/fbdev/sis/init301.c case 7: CHTVRegData = SiS_Pr->SiS_CHTVReg_OPALN; break; SiS_Pr 8185 drivers/video/fbdev/sis/init301.c case 8: CHTVRegData = SiS_Pr->SiS_CHTVReg_SOPAL; break; SiS_Pr 8186 drivers/video/fbdev/sis/init301.c default: CHTVRegData = SiS_Pr->SiS_CHTVReg_OPAL; break; SiS_Pr 8190 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) { SiS_Pr 8199 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) { SiS_Pr 8200 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x04,0x43); /* 0x40=76uA (PAL); 0x03=15bit non-multi RGB*/ SiS_Pr 8201 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x09,0x69); /* Black level for PAL (105)*/ SiS_Pr 8203 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x04,0x03); /* upper nibble=71uA (NTSC), 0x03=15bit non-multi RGB*/ SiS_Pr 8204 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x09,0x71); /* Black level for NTSC (113)*/ SiS_Pr 8207 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x00,CHTVRegData[resindex].Reg[0]); /* Mode register */ SiS_Pr 8208 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x07,CHTVRegData[resindex].Reg[1]); /* Start active video register */ SiS_Pr 8209 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x08,CHTVRegData[resindex].Reg[2]); /* Position overflow register */ SiS_Pr 8210 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x0a,CHTVRegData[resindex].Reg[3]); /* Horiz Position register */ SiS_Pr 8211 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x0b,CHTVRegData[resindex].Reg[4]); /* Vertical Position register */ SiS_Pr 8218 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x01,0x28); SiS_Pr 8227 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr,0x03,0xb1); /* old: 3103 */ SiS_Pr 8233 drivers/video/fbdev/sis/init301.c SiS_SetCH70xx(SiS_Pr,0x3d,0x00); SiS_Pr 8239 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x10,0x00,0x1F); SiS_Pr 8244 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x11,0x02,0xF8); SiS_Pr 8248 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1c,0x00,0xEF); SiS_Pr 8250 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_TVMode & TVSetPAL)) { /* ---- NTSC ---- */ SiS_Pr 8251 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) { SiS_Pr 8253 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x20,0x00,0xEF); /* loop filter off */ SiS_Pr 8254 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x01,0xFE); /* ACIV on, no need to set FSCI */ SiS_Pr 8256 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x18,0x01,0xF0); /* 0x18-0x1f: FSCI 469,762,048 */ SiS_Pr 8257 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x19,0x0C,0xF0); SiS_Pr 8258 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1a,0x00,0xF0); SiS_Pr 8259 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1b,0x00,0xF0); SiS_Pr 8260 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1c,0x00,0xF0); SiS_Pr 8261 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1d,0x00,0xF0); SiS_Pr 8262 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1e,0x00,0xF0); SiS_Pr 8263 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1f,0x00,0xF0); SiS_Pr 8264 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x20,0x01,0xEF); /* Loop filter on for mode 23 */ SiS_Pr 8265 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x00,0xFE); /* ACIV off, need to set FSCI */ SiS_Pr 8269 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x20,0x00,0xEF); /* loop filter off */ SiS_Pr 8270 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x01,0xFE); SiS_Pr 8273 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x18,0x01,0xF0); /* (FSCI was 0x1f1c71c7 - this is for mode 22) */ SiS_Pr 8274 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x19,0x09,0xF0); /* FSCI for mode 24 is 428,554,851 */ SiS_Pr 8275 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1a,0x08,0xF0); /* 198b3a63 */ SiS_Pr 8276 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1b,0x0b,0xF0); SiS_Pr 8277 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1c,0x04,0xF0); SiS_Pr 8278 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1d,0x01,0xF0); SiS_Pr 8279 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1e,0x06,0xF0); SiS_Pr 8280 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x1f,0x05,0xF0); SiS_Pr 8281 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x20,0x00,0xEF); /* loop filter off for mode 24 */ SiS_Pr 8282 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x00,0xFE); * ACIV off, need to set FSCI */ SiS_Pr 8284 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x20,0x00,0xEF); /* loop filter off */ SiS_Pr 8285 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x01,0xFE); SiS_Pr 8290 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr, 0x20, 0x00, 0xEF); /* loop filter off */ SiS_Pr 8291 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr, 0x21, 0x01, 0xFE); /* ACIV on */ SiS_Pr 8308 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp |= 0x10; SiS_Pr 8309 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x00,temp); SiS_Pr 8311 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x01,CHTVRegData[resindex].Reg[1]); SiS_Pr 8312 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x02,CHTVRegData[resindex].Reg[2]); SiS_Pr 8313 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x04,CHTVRegData[resindex].Reg[3]); SiS_Pr 8314 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x03,CHTVRegData[resindex].Reg[4]); SiS_Pr 8315 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x05,CHTVRegData[resindex].Reg[5]); SiS_Pr 8316 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x06,CHTVRegData[resindex].Reg[6]); SiS_Pr 8319 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp = 0x66; SiS_Pr 8320 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x07,temp); SiS_Pr 8322 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x08,CHTVRegData[resindex].Reg[8]); SiS_Pr 8323 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x15,CHTVRegData[resindex].Reg[9]); SiS_Pr 8324 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x1f,CHTVRegData[resindex].Reg[10]); SiS_Pr 8325 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x0c,CHTVRegData[resindex].Reg[11]); SiS_Pr 8326 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x0d,CHTVRegData[resindex].Reg[12]); SiS_Pr 8327 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x0e,CHTVRegData[resindex].Reg[13]); SiS_Pr 8328 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x0f,CHTVRegData[resindex].Reg[14]); SiS_Pr 8329 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x10,CHTVRegData[resindex].Reg[15]); SiS_Pr 8331 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x21) & ~0x02; SiS_Pr 8338 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetPALN | TVSetNTSCJ)) temp |= 0x02; SiS_Pr 8339 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x21,temp); SiS_Pr 8354 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOn(struct SiS_Private *SiS_Pr) SiS_Pr 8359 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 8360 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8361 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,0x65); SiS_Pr 8363 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8365 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,temp); SiS_Pr 8371 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xBLOff(struct SiS_Private *SiS_Pr) SiS_Pr 8376 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 8377 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8379 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,temp); SiS_Pr 8384 drivers/video/fbdev/sis/init301.c SiS_ChrontelPowerSequencing(struct SiS_Private *SiS_Pr) SiS_Pr 8398 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8399 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 8400 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSL3000D) tableptr = asus1024_740; SiS_Pr 8402 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) || SiS_Pr 8403 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) || SiS_Pr 8404 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1600x1200)) { SiS_Pr 8405 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSL3000D) tableptr = asus1400_740; SiS_Pr 8409 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 8411 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) || SiS_Pr 8412 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) || SiS_Pr 8413 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo == Panel_1600x1200)) { SiS_Pr 8419 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr, regtable[i], tableptr[i]); SiS_Pr 8424 drivers/video/fbdev/sis/init301.c SiS_SetCH701xForLCD(struct SiS_Private *SiS_Pr) SiS_Pr 8466 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8467 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tableptr = table1024_740; SiS_Pr 8468 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) tableptr = table1280_740; SiS_Pr 8469 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) tableptr = table1400_740; SiS_Pr 8470 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) tableptr = table1600_740; SiS_Pr 8473 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tableptr = table1024_650; SiS_Pr 8474 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) tableptr = table1280_650; SiS_Pr 8475 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) tableptr = table1400_650; SiS_Pr 8476 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) tableptr = table1600_650; SiS_Pr 8480 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x74); SiS_Pr 8482 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x73); SiS_Pr 8484 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) return; SiS_Pr 8486 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) return; SiS_Pr 8487 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) return; SiS_Pr 8489 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) return; SiS_Pr 8493 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) tempbh = 0x0d; SiS_Pr 8497 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr, regtable[i], tableptr[i]); SiS_Pr 8499 drivers/video/fbdev/sis/init301.c SiS_ChrontelPowerSequencing(SiS_Pr); SiS_Pr 8500 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x1e); SiS_Pr 8502 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x1e,tempbh); SiS_Pr 8504 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8505 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x1c); SiS_Pr 8507 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x1c,tempbh); SiS_Pr 8508 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2d,0x03); SiS_Pr 8509 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x64); SiS_Pr 8511 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x64,tempbh); SiS_Pr 8512 drivers/video/fbdev/sis/init301.c tempbh = SiS_GetCH701x(SiS_Pr,0x03); SiS_Pr 8514 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x03,tempbh); SiS_Pr 8519 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetVSync(struct SiS_Private *SiS_Pr) SiS_Pr 8523 drivers/video/fbdev/sis/init301.c temp1 = SiS_GetCH701x(SiS_Pr,0x49); SiS_Pr 8524 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x3e); SiS_Pr 8525 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8527 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); SiS_Pr 8528 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 3); SiS_Pr 8529 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8531 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); SiS_Pr 8532 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,temp1); SiS_Pr 8536 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xOn(struct SiS_Private *SiS_Pr) SiS_Pr 8540 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 8541 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8542 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x1c); SiS_Pr 8544 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x1c,temp); SiS_Pr 8546 drivers/video/fbdev/sis/init301.c if(SiS_IsYPbPr(SiS_Pr)) { SiS_Pr 8547 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x01); SiS_Pr 8550 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x01,temp); SiS_Pr 8552 drivers/video/fbdev/sis/init301.c if(SiS_IsChScart(SiS_Pr)) { SiS_Pr 8553 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x01); SiS_Pr 8556 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x01,temp); SiS_Pr 8558 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8559 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetVSync(SiS_Pr); SiS_Pr 8560 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x20); /* Enable TV path */ SiS_Pr 8562 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x20); /* Enable TV path */ SiS_Pr 8563 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x49); SiS_Pr 8564 drivers/video/fbdev/sis/init301.c if(SiS_IsYPbPr(SiS_Pr)) { SiS_Pr 8565 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x73); SiS_Pr 8567 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x73,temp); SiS_Pr 8569 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8571 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); SiS_Pr 8572 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 2); SiS_Pr 8573 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8575 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); SiS_Pr 8581 drivers/video/fbdev/sis/init301.c SiS_Chrontel701xOff(struct SiS_Private *SiS_Pr) SiS_Pr 8586 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 8587 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8588 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8589 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 5887); SiS_Pr 8590 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xac); SiS_Pr 8591 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,0x00); SiS_Pr 8593 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 2); SiS_Pr 8594 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x76); SiS_Pr 8596 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,temp); SiS_Pr 8597 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,0x00); SiS_Pr 8603 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetDB(struct SiS_Private *SiS_Pr) SiS_Pr 8607 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8609 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x4a); /* Version ID */ SiS_Pr 8613 drivers/video/fbdev/sis/init301.c if(SiS_WeHaveBacklightCtrl(SiS_Pr)) { SiS_Pr 8614 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x49); SiS_Pr 8615 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,0x3e); SiS_Pr 8619 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x48,0x10); SiS_Pr 8620 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8621 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x48,0x18); SiS_Pr 8623 drivers/video/fbdev/sis/init301.c if(SiS_WeHaveBacklightCtrl(SiS_Pr)) { SiS_Pr 8624 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetVSync(SiS_Pr); SiS_Pr 8625 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x49,temp); SiS_Pr 8631 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x5c); SiS_Pr 8633 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x5c,temp); SiS_Pr 8634 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x5c); SiS_Pr 8636 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x5c,temp); SiS_Pr 8637 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x5c); SiS_Pr 8639 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x5c,temp); SiS_Pr 8640 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x61); SiS_Pr 8642 drivers/video/fbdev/sis/init301.c SiS_SetCH701xForLCD(SiS_Pr); SiS_Pr 8648 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x48,0x10); SiS_Pr 8649 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8650 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x48,0x18); SiS_Pr 8655 drivers/video/fbdev/sis/init301.c SiS_ChrontelInitTVVSync(struct SiS_Private *SiS_Pr) SiS_Pr 8659 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8661 drivers/video/fbdev/sis/init301.c if(SiS_WeHaveBacklightCtrl(SiS_Pr)) { SiS_Pr 8662 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetVSync(SiS_Pr); SiS_Pr 8667 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xaf); /* Power up LVDS block */ SiS_Pr 8668 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x49); SiS_Pr 8671 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8673 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); /* enable VSYNC */ SiS_Pr 8674 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 3); SiS_Pr 8675 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x47); SiS_Pr 8677 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x47,temp); /* disable VSYNC */ SiS_Pr 8684 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething3(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 8688 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8690 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x61); SiS_Pr 8693 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x61,temp); SiS_Pr 8695 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,0x45); /* Panel power on */ SiS_Pr 8696 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xaf); /* All power on */ SiS_Pr 8697 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8698 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 5887); SiS_Pr 8703 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x61); SiS_Pr 8706 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x61,temp); SiS_Pr 8709 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xac); SiS_Pr 8710 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8712 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,temp); SiS_Pr 8714 drivers/video/fbdev/sis/init301.c if(SiS_WeHaveBacklightCtrl(SiS_Pr)) { SiS_Pr 8715 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 1023); SiS_Pr 8717 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 767); SiS_Pr 8721 drivers/video/fbdev/sis/init301.c SiS_GenericDelay(SiS_Pr, 767); SiS_Pr 8723 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x76); SiS_Pr 8725 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,temp); SiS_Pr 8726 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8728 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x66,temp); SiS_Pr 8729 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8735 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) SiS_Pr 8739 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8742 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8746 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8748 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xac); SiS_Pr 8751 drivers/video/fbdev/sis/init301.c SiS_SetCH701xForLCD(SiS_Pr); SiS_Pr 8753 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x76); SiS_Pr 8755 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,temp); SiS_Pr 8756 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 2); SiS_Pr 8757 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x76); SiS_Pr 8759 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,temp); SiS_Pr 8760 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8761 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x78,0xe0); /* PLL loop filter */ SiS_Pr 8763 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x78,0x60); SiS_Pr 8765 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 2); SiS_Pr 8768 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x77,0x00); /* MV? */ SiS_Pr 8772 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething1(struct SiS_Private *SiS_Pr) SiS_Pr 8776 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x03); SiS_Pr 8779 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x03,temp); SiS_Pr 8781 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_740) { SiS_Pr 8783 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x1c); SiS_Pr 8785 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x1c,temp); SiS_Pr 8787 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2d,0x03); SiS_Pr 8789 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x64); SiS_Pr 8791 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x64,temp); SiS_Pr 8793 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x03); SiS_Pr 8795 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x03,temp); SiS_Pr 8797 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_ASUSL3000D) { SiS_Pr 8798 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x63,0x40); /* LVDS off */ SiS_Pr 8799 drivers/video/fbdev/sis/init301.c SiS_LongDelay(SiS_Pr, 1); SiS_Pr 8800 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x63,0x00); /* LVDS on */ SiS_Pr 8801 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetDB(SiS_Pr); SiS_Pr 8802 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething2(SiS_Pr); SiS_Pr 8803 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething3(SiS_Pr, 0); SiS_Pr 8805 drivers/video/fbdev/sis/init301.c temp = SiS_GetCH701x(SiS_Pr,0x66); SiS_Pr 8807 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetDB(SiS_Pr); SiS_Pr 8808 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething2(SiS_Pr); SiS_Pr 8809 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething3(SiS_Pr, 0); SiS_Pr 8815 drivers/video/fbdev/sis/init301.c SiS_ChrontelResetDB(SiS_Pr); SiS_Pr 8816 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething2(SiS_Pr); SiS_Pr 8817 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_P3d4,0x34); SiS_Pr 8818 drivers/video/fbdev/sis/init301.c SiS_ChrontelDoSomething3(SiS_Pr,temp); SiS_Pr 8819 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr,0x76,0xaf); /* All power on, LVDS normal operation */ SiS_Pr 8831 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 8834 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 8838 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SetFlag |= ProgrammingCRT2; SiS_Pr 8840 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 8841 drivers/video/fbdev/sis/init301.c SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex); SiS_Pr 8847 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_SelectCRT2Rate = 4; SiS_Pr 8849 drivers/video/fbdev/sis/init301.c SiS_UnLockCRT2(SiS_Pr); SiS_Pr 8851 drivers/video/fbdev/sis/init301.c RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8853 drivers/video/fbdev/sis/init301.c SiS_SaveCRT2Info(SiS_Pr,ModeNo); SiS_Pr 8855 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8856 drivers/video/fbdev/sis/init301.c SiS_DisableBridge(SiS_Pr); SiS_Pr 8857 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_IF_DEF_LVDS == 1) && (SiS_Pr->ChipType == SIS_730)) { SiS_Pr 8858 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,0x80); SiS_Pr 8860 drivers/video/fbdev/sis/init301.c SiS_SetCRT2ModeRegs(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8863 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) { SiS_Pr 8864 drivers/video/fbdev/sis/init301.c SiS_LockCRT2(SiS_Pr); SiS_Pr 8865 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 8869 drivers/video/fbdev/sis/init301.c SiS_GetCRT2Data(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8872 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_LCDHDES = SiS_Pr->SiS_LCDVDES = 0; SiS_Pr 8873 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_IF_DEF_LVDS == 1) || SiS_Pr 8874 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBType & VB_NoLCD) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) || SiS_Pr 8875 drivers/video/fbdev/sis/init301.c ((SiS_Pr->ChipType >= SIS_315H) && (SiS_Pr->SiS_VBType & VB_SIS30xBLV)) ) { SiS_Pr 8876 drivers/video/fbdev/sis/init301.c SiS_GetLVDSDesData(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8879 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8880 drivers/video/fbdev/sis/init301.c SiS_SetGroup1(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8883 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 8885 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8887 drivers/video/fbdev/sis/init301.c SiS_SetGroup2(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8889 drivers/video/fbdev/sis/init301.c SiS_SetGroup2_C_ELV(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8891 drivers/video/fbdev/sis/init301.c SiS_SetGroup3(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8892 drivers/video/fbdev/sis/init301.c SiS_SetGroup4(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8894 drivers/video/fbdev/sis/init301.c SiS_SetGroup4_C_ELV(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8896 drivers/video/fbdev/sis/init301.c SiS_SetGroup5(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8898 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Sync(SiS_Pr, ModeNo, RefreshRateTableIndex); SiS_Pr 8901 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_NoLCD) && (SiS_Pr->SiS_VBInfo & SetCRT2ToLCD)) { SiS_Pr 8903 drivers/video/fbdev/sis/init301.c if(!((SiS_Pr->SiS_SetFlag & SetDOSMode) && ((ModeNo == 0x03) || (ModeNo == 0x10)))) { SiS_Pr 8904 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) { SiS_Pr 8905 drivers/video/fbdev/sis/init301.c SiS_ModCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8908 drivers/video/fbdev/sis/init301.c SiS_SetCRT2ECLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8914 drivers/video/fbdev/sis/init301.c SiS_SetCRT2Sync(SiS_Pr, ModeNo, RefreshRateTableIndex); SiS_Pr 8916 drivers/video/fbdev/sis/init301.c SiS_ModCRT1CRTC(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex); SiS_Pr 8918 drivers/video/fbdev/sis/init301.c SiS_SetCRT2ECLK(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex); SiS_Pr 8920 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8921 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx != 0) { SiS_Pr 8922 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 8923 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 2) { SiS_Pr 8925 drivers/video/fbdev/sis/init301.c SiS_SetCH701xForLCD(SiS_Pr); SiS_Pr 8929 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 8930 drivers/video/fbdev/sis/init301.c SiS_SetCHTVReg(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex); SiS_Pr 8938 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_315H) { SiS_Pr 8939 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8940 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseOEM) { SiS_Pr 8941 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (SiS_Pr->SiS_UseOEM == -1)) { SiS_Pr 8943 drivers/video/fbdev/sis/init301.c SiS_OEM300Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8946 drivers/video/fbdev/sis/init301.c SiS_OEM300Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8949 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 8950 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_CustomT == CUT_BARCO1366) || SiS_Pr 8951 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_CustomT == CUT_BARCO1024)) { SiS_Pr 8952 drivers/video/fbdev/sis/init301.c SetOEMLCDData2(SiS_Pr, ModeNo, ModeIdIndex,RefreshRateTableIndex); SiS_Pr 8954 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 8961 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_315H) { SiS_Pr 8962 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8963 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_661) { SiS_Pr 8964 drivers/video/fbdev/sis/init301.c SiS_FinalizeLCD(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 8965 drivers/video/fbdev/sis/init301.c SiS_OEM310Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8967 drivers/video/fbdev/sis/init301.c SiS_OEM661Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); SiS_Pr 8969 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x01,0x40); SiS_Pr 8974 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8975 drivers/video/fbdev/sis/init301.c SiS_EnableBridge(SiS_Pr); SiS_Pr 8978 drivers/video/fbdev/sis/init301.c SiS_DisplayOn(SiS_Pr); SiS_Pr 8980 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) { SiS_Pr 8981 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 8983 drivers/video/fbdev/sis/init301.c SiS_SetRegSR11ANDOR(SiS_Pr,0xFF,0x0C); SiS_Pr 8986 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x0e,0x01,0xf8); SiS_Pr 8990 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 8991 drivers/video/fbdev/sis/init301.c SiS_LockCRT2(SiS_Pr); SiS_Pr 9003 drivers/video/fbdev/sis/init301.c SiS_SiS30xBLOn(struct SiS_Private *SiS_Pr) SiS_Pr 9006 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,0xff00); SiS_Pr 9007 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part4Port,0x26) & 0x02)) { SiS_Pr 9008 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x02); SiS_Pr 9009 drivers/video/fbdev/sis/init301.c SiS_WaitVBRetrace(SiS_Pr); SiS_Pr 9011 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_Part4Port,0x26) & 0x01)) { SiS_Pr 9012 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x26,0x01); SiS_Pr 9017 drivers/video/fbdev/sis/init301.c SiS_SiS30xBLOff(struct SiS_Private *SiS_Pr) SiS_Pr 9020 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x26,0xFE); SiS_Pr 9021 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,0xff00); SiS_Pr 9029 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(struct SiS_Private *SiS_Pr) SiS_Pr 9031 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData = ~SiS_Pr->SiS_DDC_Data; SiS_Pr 9032 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NClk = ~SiS_Pr->SiS_DDC_Clk; SiS_Pr 9033 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_DDC_Index == 0x11) && (SiS_Pr->SiS_SensibleSR11)) { SiS_Pr 9034 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData &= 0x0f; SiS_Pr 9035 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NClk &= 0x0f; SiS_Pr 9041 drivers/video/fbdev/sis/init301.c SiS_SetTrumpBlockLoop(struct SiS_Private *SiS_Pr, unsigned char *dataptr) SiS_Pr 9052 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9053 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT * 2); SiS_Pr 9055 drivers/video/fbdev/sis/init301.c if(SiS_SetStart(SiS_Pr)) continue; /* Set start condition */ SiS_Pr 9056 drivers/video/fbdev/sis/init301.c tempah = SiS_Pr->SiS_DDC_DeviceAddr; SiS_Pr 9057 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */ SiS_Pr 9060 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */ SiS_Pr 9064 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */ SiS_Pr 9068 drivers/video/fbdev/sis/init301.c if(SiS_SetStop(SiS_Pr)) continue; SiS_Pr 9075 drivers/video/fbdev/sis/init301.c SiS_SetTrumpionBlock(struct SiS_Private *SiS_Pr, unsigned char *dataptr) SiS_Pr 9077 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xF0; /* DAB (Device Address Byte) */ SiS_Pr 9078 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; /* Bit 0 = SC; Bit 1 = SD */ SiS_Pr 9079 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x02; /* Bitmask in IndexReg for Data */ SiS_Pr 9080 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x01; /* Bitmask in IndexReg for Clk */ SiS_Pr 9081 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9083 drivers/video/fbdev/sis/init301.c SiS_SetSwitchDDC2(SiS_Pr); SiS_Pr 9086 drivers/video/fbdev/sis/init301.c dataptr = SiS_SetTrumpBlockLoop(SiS_Pr, dataptr); SiS_Pr 9101 drivers/video/fbdev/sis/init301.c SiS_SetChReg(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val, unsigned short myor) SiS_Pr 9107 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9108 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT * 4); SiS_Pr 9110 drivers/video/fbdev/sis/init301.c if(SiS_SetStart(SiS_Pr)) continue; /* Set start condition */ SiS_Pr 9111 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr, SiS_Pr->SiS_DDC_DeviceAddr); /* Write DAB (S0=0=write) */ SiS_Pr 9113 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr, (reg | myor)); /* Write RAB (700x: set bit 7, see datasheet) */ SiS_Pr 9115 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr, val); /* Write data */ SiS_Pr 9117 drivers/video/fbdev/sis/init301.c if(SiS_SetStop(SiS_Pr)) continue; /* Set stop condition */ SiS_Pr 9118 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_ChrontelInit = 1; SiS_Pr 9126 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val) SiS_Pr 9128 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xEA; /* DAB (Device Address Byte) */ SiS_Pr 9130 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT); SiS_Pr 9132 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_ChrontelInit)) { SiS_Pr 9133 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; /* Bit 0 = SC; Bit 1 = SD */ SiS_Pr 9134 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x02; /* Bitmask in IndexReg for Data */ SiS_Pr 9135 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x01; /* Bitmask in IndexReg for Clk */ SiS_Pr 9136 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9139 drivers/video/fbdev/sis/init301.c if( (!(SiS_SetChReg(SiS_Pr, reg, val, 0x80))) && SiS_Pr 9140 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_ChrontelInit)) ) { SiS_Pr 9141 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x0a; SiS_Pr 9142 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x80; SiS_Pr 9143 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x40; SiS_Pr 9144 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9146 drivers/video/fbdev/sis/init301.c SiS_SetChReg(SiS_Pr, reg, val, 0x80); SiS_Pr 9153 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val) SiS_Pr 9155 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; /* Bit 0 = SC; Bit 1 = SD */ SiS_Pr 9156 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x08; /* Bitmask in IndexReg for Data */ SiS_Pr 9157 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x04; /* Bitmask in IndexReg for Clk */ SiS_Pr 9158 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9159 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xEA; /* DAB (Device Address Byte) */ SiS_Pr 9160 drivers/video/fbdev/sis/init301.c SiS_SetChReg(SiS_Pr, reg, val, 0); SiS_Pr 9165 drivers/video/fbdev/sis/init301.c SiS_SetCH70xx(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val) SiS_Pr 9167 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) SiS_Pr 9168 drivers/video/fbdev/sis/init301.c SiS_SetCH700x(SiS_Pr, reg, val); SiS_Pr 9170 drivers/video/fbdev/sis/init301.c SiS_SetCH701x(SiS_Pr, reg, val); SiS_Pr 9174 drivers/video/fbdev/sis/init301.c SiS_GetChReg(struct SiS_Private *SiS_Pr, unsigned short myor) SiS_Pr 9180 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9181 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT * 4); SiS_Pr 9183 drivers/video/fbdev/sis/init301.c if(SiS_SetStart(SiS_Pr)) continue; /* Set start condition */ SiS_Pr 9184 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_DeviceAddr); /* Write DAB (S0=0=write) */ SiS_Pr 9186 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_ReadAddr | myor); /* Write RAB (700x: | 0x80) */ SiS_Pr 9188 drivers/video/fbdev/sis/init301.c if (SiS_SetStart(SiS_Pr)) continue; /* Re-start */ SiS_Pr 9189 drivers/video/fbdev/sis/init301.c temp = SiS_WriteDDC2Data(SiS_Pr,SiS_Pr->SiS_DDC_DeviceAddr | 0x01);/* DAB (S0=1=read) */ SiS_Pr 9191 drivers/video/fbdev/sis/init301.c tempah = SiS_ReadDDC2Data(SiS_Pr); /* Read byte */ SiS_Pr 9192 drivers/video/fbdev/sis/init301.c if(SiS_SetStop(SiS_Pr)) continue; /* Stop condition */ SiS_Pr 9193 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_ChrontelInit = 1; SiS_Pr 9202 drivers/video/fbdev/sis/init301.c SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_Pr 9206 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xEA; /* DAB */ SiS_Pr 9208 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT); SiS_Pr 9210 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_ChrontelInit)) { SiS_Pr 9211 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; /* Bit 0 = SC; Bit 1 = SD */ SiS_Pr 9212 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x02; /* Bitmask in IndexReg for Data */ SiS_Pr 9213 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x01; /* Bitmask in IndexReg for Clk */ SiS_Pr 9214 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9217 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_ReadAddr = tempbx; SiS_Pr 9219 drivers/video/fbdev/sis/init301.c if( ((result = SiS_GetChReg(SiS_Pr,0x80)) == 0xFFFF) && SiS_Pr 9220 drivers/video/fbdev/sis/init301.c (!SiS_Pr->SiS_ChrontelInit) ) { SiS_Pr 9222 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x0a; SiS_Pr 9223 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x80; SiS_Pr 9224 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x40; SiS_Pr 9225 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9227 drivers/video/fbdev/sis/init301.c result = SiS_GetChReg(SiS_Pr,0x80); SiS_Pr 9235 drivers/video/fbdev/sis/init301.c SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_Pr 9237 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; /* Bit 0 = SC; Bit 1 = SD */ SiS_Pr 9238 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x08; /* Bitmask in IndexReg for Data */ SiS_Pr 9239 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x04; /* Bitmask in IndexReg for Clk */ SiS_Pr 9240 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9241 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xEA; /* DAB */ SiS_Pr 9243 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_ReadAddr = tempbx; SiS_Pr 9245 drivers/video/fbdev/sis/init301.c return SiS_GetChReg(SiS_Pr,0); SiS_Pr 9252 drivers/video/fbdev/sis/init301.c SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_Pr 9254 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) SiS_Pr 9255 drivers/video/fbdev/sis/init301.c return SiS_GetCH700x(SiS_Pr, tempbx); SiS_Pr 9257 drivers/video/fbdev/sis/init301.c return SiS_GetCH701x(SiS_Pr, tempbx); SiS_Pr 9261 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(struct SiS_Private *SiS_Pr, unsigned short reg, SiS_Pr 9266 drivers/video/fbdev/sis/init301.c tempbl = (SiS_GetCH70xx(SiS_Pr, (reg & 0xFF)) & myand) | myor; SiS_Pr 9267 drivers/video/fbdev/sis/init301.c SiS_SetCH70xx(SiS_Pr, reg, tempbl); SiS_Pr 9273 drivers/video/fbdev/sis/init301.c SiS_InitDDCRegs(struct SiS_Private *SiS_Pr, unsigned int VBFlags, int VGAEngine, SiS_Pr 9288 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_ChrontelInit = 0; /* force re-detection! */ SiS_Pr 9290 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_SecAddr = 0; SiS_Pr 9291 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = ddcdtype[DDCdatatype]; SiS_Pr 9292 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Port = SiS_Pr->SiS_P3c4; SiS_Pr 9293 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x11; SiS_Pr 9296 drivers/video/fbdev/sis/init301.c cr32 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x32); SiS_Pr 9319 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Port = SiS_Pr->SiS_Part4Port; SiS_Pr 9320 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x0f; SiS_Pr 9351 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Port = SiS_Pr->SiS_Part4Port; SiS_Pr 9352 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index = 0x0f; SiS_Pr 9374 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data = 0x02 << temp; SiS_Pr 9375 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk = 0x01 << temp; SiS_Pr 9377 drivers/video/fbdev/sis/init301.c SiS_SetupDDCN(SiS_Pr); SiS_Pr 9383 drivers/video/fbdev/sis/init301.c SiS_WriteDABDDC(struct SiS_Private *SiS_Pr) SiS_Pr 9385 drivers/video/fbdev/sis/init301.c if(SiS_SetStart(SiS_Pr)) return 0xFFFF; SiS_Pr 9386 drivers/video/fbdev/sis/init301.c if(SiS_WriteDDC2Data(SiS_Pr, SiS_Pr->SiS_DDC_DeviceAddr)) { SiS_Pr 9389 drivers/video/fbdev/sis/init301.c if(SiS_WriteDDC2Data(SiS_Pr, SiS_Pr->SiS_DDC_SecAddr)) { SiS_Pr 9396 drivers/video/fbdev/sis/init301.c SiS_PrepareReadDDC(struct SiS_Private *SiS_Pr) SiS_Pr 9398 drivers/video/fbdev/sis/init301.c if(SiS_SetStart(SiS_Pr)) return 0xFFFF; SiS_Pr 9399 drivers/video/fbdev/sis/init301.c if(SiS_WriteDDC2Data(SiS_Pr, (SiS_Pr->SiS_DDC_DeviceAddr | 0x01))) { SiS_Pr 9406 drivers/video/fbdev/sis/init301.c SiS_PrepareDDC(struct SiS_Private *SiS_Pr) SiS_Pr 9408 drivers/video/fbdev/sis/init301.c if(SiS_WriteDABDDC(SiS_Pr)) SiS_WriteDABDDC(SiS_Pr); SiS_Pr 9409 drivers/video/fbdev/sis/init301.c if(SiS_PrepareReadDDC(SiS_Pr)) return (SiS_PrepareReadDDC(SiS_Pr)); SiS_Pr 9414 drivers/video/fbdev/sis/init301.c SiS_SendACK(struct SiS_Private *SiS_Pr, unsigned short yesno) SiS_Pr 9416 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); SiS_Pr 9418 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9419 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9420 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9421 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); SiS_Pr 9423 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9424 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9425 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9428 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(SiS_Pr); SiS_Pr 9432 drivers/video/fbdev/sis/init301.c SiS_DoProbeDDC(struct SiS_Private *SiS_Pr) SiS_Pr 9438 drivers/video/fbdev/sis/init301.c SiS_SetSwitchDDC2(SiS_Pr); SiS_Pr 9439 drivers/video/fbdev/sis/init301.c if(SiS_PrepareDDC(SiS_Pr)) { SiS_Pr 9440 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9445 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_DDC_DeviceAddr == 0xa0) { SiS_Pr 9446 drivers/video/fbdev/sis/init301.c temp = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); SiS_Pr 9447 drivers/video/fbdev/sis/init301.c SiS_SendACK(SiS_Pr, 0); SiS_Pr 9457 drivers/video/fbdev/sis/init301.c temp = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); SiS_Pr 9458 drivers/video/fbdev/sis/init301.c SiS_SendACK(SiS_Pr, 1); SiS_Pr 9463 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_DDC_DeviceAddr == 0xa0) { SiS_Pr 9468 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9474 drivers/video/fbdev/sis/init301.c SiS_ProbeDDC(struct SiS_Private *SiS_Pr) SiS_Pr 9479 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xa0; SiS_Pr 9480 drivers/video/fbdev/sis/init301.c if(!(SiS_DoProbeDDC(SiS_Pr))) flag |= 0x02; SiS_Pr 9481 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xa2; SiS_Pr 9482 drivers/video/fbdev/sis/init301.c if(!(SiS_DoProbeDDC(SiS_Pr))) flag |= 0x08; SiS_Pr 9483 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_DeviceAddr = 0xa6; SiS_Pr 9484 drivers/video/fbdev/sis/init301.c if(!(SiS_DoProbeDDC(SiS_Pr))) flag |= 0x10; SiS_Pr 9491 drivers/video/fbdev/sis/init301.c SiS_ReadDDC(struct SiS_Private *SiS_Pr, unsigned short DDCdatatype, unsigned char *buffer) SiS_Pr 9499 drivers/video/fbdev/sis/init301.c SiS_SetSwitchDDC2(SiS_Pr); SiS_Pr 9500 drivers/video/fbdev/sis/init301.c if(!(SiS_PrepareDDC(SiS_Pr))) { SiS_Pr 9506 drivers/video/fbdev/sis/init301.c buffer[i] = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); SiS_Pr 9509 drivers/video/fbdev/sis/init301.c SiS_SendACK(SiS_Pr, 0); SiS_Pr 9511 drivers/video/fbdev/sis/init301.c buffer[i] = (unsigned char)SiS_ReadDDC2Data(SiS_Pr); SiS_Pr 9513 drivers/video/fbdev/sis/init301.c SiS_SendACK(SiS_Pr, 1); SiS_Pr 9519 drivers/video/fbdev/sis/init301.c SiS_SetStop(SiS_Pr); SiS_Pr 9545 drivers/video/fbdev/sis/init301.c SiS_HandleDDC(struct SiS_Private *SiS_Pr, unsigned int VBFlags, int VGAEngine, SiS_Pr 9561 drivers/video/fbdev/sis/init301.c if(SiS_InitDDCRegs(SiS_Pr, VBFlags, VGAEngine, adaptnum, DDCdatatype, false, VBFlags2) == 0xFFFF) SiS_Pr 9564 drivers/video/fbdev/sis/init301.c sr1f = SiS_GetReg(SiS_Pr->SiS_P3c4,0x1f); SiS_Pr 9565 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x1f,0x3f,0x04); SiS_Pr 9567 drivers/video/fbdev/sis/init301.c cr17 = SiS_GetReg(SiS_Pr->SiS_P3d4,0x17) & 0x80; SiS_Pr 9569 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_P3d4,0x17,0x80); SiS_Pr 9570 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x00,0x01); SiS_Pr 9571 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x00,0x03); SiS_Pr 9575 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9576 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9577 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9578 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9582 drivers/video/fbdev/sis/init301.c result = SiS_ProbeDDC(SiS_Pr); SiS_Pr 9584 drivers/video/fbdev/sis/init301.c result = SiS_ReadDDC(SiS_Pr, DDCdatatype, buffer); SiS_Pr 9591 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->DDCPortMixup) { SiS_Pr 9601 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_P3c4,0x1f,sr1f); SiS_Pr 9603 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x17,0x7f,cr17); SiS_Pr 9611 drivers/video/fbdev/sis/init301.c SiS_SetSwitchDDC2(struct SiS_Private *SiS_Pr) SiS_Pr 9613 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(SiS_Pr); SiS_Pr 9614 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9616 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); SiS_Pr 9617 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9621 drivers/video/fbdev/sis/init301.c SiS_ReadDDC1Bit(struct SiS_Private *SiS_Pr) SiS_Pr 9623 drivers/video/fbdev/sis/init301.c SiS_WaitRetrace1(SiS_Pr); SiS_Pr 9624 drivers/video/fbdev/sis/init301.c return ((SiS_GetReg(SiS_Pr->SiS_P3c4,0x11) & 0x02) >> 1); SiS_Pr 9630 drivers/video/fbdev/sis/init301.c SiS_SetStart(struct SiS_Private *SiS_Pr) SiS_Pr 9632 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKLow(SiS_Pr)) return 0xFFFF; /* (SC->low) */ SiS_Pr 9633 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9634 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9635 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9636 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); /* SD->high */ SiS_Pr 9637 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKHigh(SiS_Pr)) return 0xFFFF; /* SC->high */ SiS_Pr 9638 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9639 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9640 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9642 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKHigh(SiS_Pr)) return 0xFFFF; /* (SC->low) */ SiS_Pr 9649 drivers/video/fbdev/sis/init301.c SiS_SetStop(struct SiS_Private *SiS_Pr) SiS_Pr 9651 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKLow(SiS_Pr)) return 0xFFFF; /* (SC->low) */ SiS_Pr 9652 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9653 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9654 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9656 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKHigh(SiS_Pr)) return 0xFFFF; /* SC->high */ SiS_Pr 9657 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9658 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9659 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9660 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); /* SD->high = stop condition */ SiS_Pr 9661 drivers/video/fbdev/sis/init301.c if(SiS_SetSCLKHigh(SiS_Pr)) return 0xFFFF; /* (SC->high) */ SiS_Pr 9667 drivers/video/fbdev/sis/init301.c SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax) SiS_Pr 9673 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); /* SC->low */ SiS_Pr 9675 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9676 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9677 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9678 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); /* Write bit (1) to SD */ SiS_Pr 9680 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9681 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9682 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9685 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(SiS_Pr); /* SC->high */ SiS_Pr 9688 drivers/video/fbdev/sis/init301.c temp = SiS_CheckACK(SiS_Pr); /* Check acknowledge */ SiS_Pr 9693 drivers/video/fbdev/sis/init301.c SiS_ReadDDC2Data(struct SiS_Private *SiS_Pr) SiS_Pr 9700 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); SiS_Pr 9701 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9702 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9703 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9704 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); SiS_Pr 9705 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(SiS_Pr); SiS_Pr 9706 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); SiS_Pr 9707 drivers/video/fbdev/sis/init301.c if(temp & SiS_Pr->SiS_DDC_Data) getdata |= 0x01; SiS_Pr 9713 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(struct SiS_Private *SiS_Pr) SiS_Pr 9715 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9716 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9717 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NClk, SiS_Pr 9719 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT); SiS_Pr 9724 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(struct SiS_Private *SiS_Pr) SiS_Pr 9728 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9729 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9730 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NClk, SiS_Pr 9731 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Clk); /* SetSCLKHigh() */ SiS_Pr 9733 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); SiS_Pr 9734 drivers/video/fbdev/sis/init301.c } while((!(temp & SiS_Pr->SiS_DDC_Clk)) && --watchdog); SiS_Pr 9738 drivers/video/fbdev/sis/init301.c SiS_DDC2Delay(SiS_Pr,SiS_I2CDELAYSHORT); SiS_Pr 9745 drivers/video/fbdev/sis/init301.c SiS_CheckACK(struct SiS_Private *SiS_Pr) SiS_Pr 9749 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); /* (SC->low) */ SiS_Pr 9750 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_DDC_Port, SiS_Pr 9751 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Index, SiS_Pr 9752 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_NData, SiS_Pr 9753 drivers/video/fbdev/sis/init301.c SiS_Pr->SiS_DDC_Data); /* (SD->high) */ SiS_Pr 9754 drivers/video/fbdev/sis/init301.c SiS_SetSCLKHigh(SiS_Pr); /* SC->high = clock impulse for ack */ SiS_Pr 9755 drivers/video/fbdev/sis/init301.c tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */ SiS_Pr 9756 drivers/video/fbdev/sis/init301.c SiS_SetSCLKLow(SiS_Pr); /* SC->low = end of clock impulse */ SiS_Pr 9757 drivers/video/fbdev/sis/init301.c if(tempah & SiS_Pr->SiS_DDC_Data) return 1; /* Ack OK if bit = 0 */ SiS_Pr 9769 drivers/video/fbdev/sis/init301.c GetRAMDACromptr(struct SiS_Private *SiS_Pr) SiS_Pr 9771 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 9774 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_330) { SiS_Pr 9776 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xB) SiS_Pr 9780 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xB) SiS_Pr 9787 drivers/video/fbdev/sis/init301.c GetLCDromptr(struct SiS_Private *SiS_Pr) SiS_Pr 9789 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 9792 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_330) { SiS_Pr 9794 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) SiS_Pr 9798 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) SiS_Pr 9805 drivers/video/fbdev/sis/init301.c GetTVromptr(struct SiS_Private *SiS_Pr) SiS_Pr 9807 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 9810 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType < SIS_330) { SiS_Pr 9812 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) SiS_Pr 9816 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) SiS_Pr 9823 drivers/video/fbdev/sis/init301.c GetLCDPtrIndexBIOS(struct SiS_Private *SiS_Pr) SiS_Pr 9827 drivers/video/fbdev/sis/init301.c if((IS_SIS650) && (SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 9828 drivers/video/fbdev/sis/init301.c if(!(SiS_IsNotM650orLater(SiS_Pr))) { SiS_Pr 9829 drivers/video/fbdev/sis/init301.c if((index = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0xf0)) { SiS_Pr 9832 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) index += 2; SiS_Pr 9833 drivers/video/fbdev/sis/init301.c else if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) index++; SiS_Pr 9839 drivers/video/fbdev/sis/init301.c index = SiS_GetBIOSLCDResInfo(SiS_Pr) & 0x0F; SiS_Pr 9840 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) index -= 5; SiS_Pr 9841 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301C) { /* 1.15.20 and later (not VB specific) */ SiS_Pr 9842 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) index -= 5; SiS_Pr 9843 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x768) index -= 5; SiS_Pr 9845 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) index -= 6; SiS_Pr 9849 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) index += 2; SiS_Pr 9850 drivers/video/fbdev/sis/init301.c else if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) index++; SiS_Pr 9855 drivers/video/fbdev/sis/init301.c GetLCDPtrIndex(struct SiS_Private *SiS_Pr) SiS_Pr 9859 drivers/video/fbdev/sis/init301.c index = ((SiS_GetBIOSLCDResInfo(SiS_Pr) & 0x0F) - 1) * 3; SiS_Pr 9860 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) index += 2; SiS_Pr 9861 drivers/video/fbdev/sis/init301.c else if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) index++; SiS_Pr 9866 drivers/video/fbdev/sis/init301.c GetTVPtrIndex(struct SiS_Private *SiS_Pr) SiS_Pr 9871 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) index = 1; SiS_Pr 9872 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) index = 2; SiS_Pr 9874 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToYPbPr525750) index = 0; SiS_Pr 9878 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetInSlaveMode) && SiS_Pr 9879 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) { SiS_Pr 9887 drivers/video/fbdev/sis/init301.c GetOEMTVPtr661_2_GEN(struct SiS_Private *SiS_Pr, int addme) SiS_Pr 9891 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) index = 1; SiS_Pr 9892 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) index = 2; SiS_Pr 9893 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALN) index = 3; SiS_Pr 9894 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) index = 6; SiS_Pr 9895 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSC1024) { SiS_Pr 9897 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) index++; SiS_Pr 9898 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) index = 7; SiS_Pr 9901 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 9902 drivers/video/fbdev/sis/init301.c if((!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) || SiS_Pr 9903 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) { SiS_Pr 9913 drivers/video/fbdev/sis/init301.c GetOEMTVPtr661_2_OLD(struct SiS_Private *SiS_Pr) SiS_Pr 9915 drivers/video/fbdev/sis/init301.c return (GetOEMTVPtr661_2_GEN(SiS_Pr, 8)); SiS_Pr 9920 drivers/video/fbdev/sis/init301.c GetOEMTVPtr661_2_NEW(struct SiS_Private *SiS_Pr) SiS_Pr 9922 drivers/video/fbdev/sis/init301.c return (GetOEMTVPtr661_2_GEN(SiS_Pr, 6)); SiS_Pr 9927 drivers/video/fbdev/sis/init301.c GetOEMTVPtr661(struct SiS_Private *SiS_Pr) SiS_Pr 9931 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) index = 2; SiS_Pr 9932 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 9933 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525i) index = 4; SiS_Pr 9934 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) index = 6; SiS_Pr 9935 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) index = 8; SiS_Pr 9936 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetHiVision) index = 10; SiS_Pr 9938 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetHiVision) index = 4; SiS_Pr 9939 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525i) index = 6; SiS_Pr 9940 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) index = 8; SiS_Pr 9941 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) index = 10; SiS_Pr 9944 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) index++; SiS_Pr 9950 drivers/video/fbdev/sis/init301.c SetDelayComp(struct SiS_Private *SiS_Pr, unsigned short ModeNo) SiS_Pr 9952 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 9956 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 9957 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x20,0xbf); SiS_Pr 9959 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x35,0x7f); SiS_Pr 9964 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) { /* ------------ VGA */ SiS_Pr 9966 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 9967 drivers/video/fbdev/sis/init301.c romptr = GetRAMDACromptr(SiS_Pr); SiS_Pr 9972 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xB) { SiS_Pr 9980 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 9985 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD|SetCRT2ToLCDA)) { /* ---------- LCD/LCDA */ SiS_Pr 9991 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 9992 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PDC != -1) { SiS_Pr 9993 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,((SiS_Pr->PDC >> 1) & 0x0f)); SiS_Pr 9994 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,0x7f,((SiS_Pr->PDC & 0x01) << 7)); SiS_Pr 9998 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PDCA != -1) { SiS_Pr 9999 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,((SiS_Pr->PDCA << 3) & 0xf0)); SiS_Pr 10000 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x20,0xbf,((SiS_Pr->PDCA & 0x01) << 6)); SiS_Pr 10007 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_Custom) { SiS_Pr 10008 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 10010 drivers/video/fbdev/sis/init301.c if((SiS_Pr->PanelXRes <= 1280) && (SiS_Pr->PanelYRes <= 1024)) { SiS_Pr 10013 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,delay); SiS_Pr 10016 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301C) { SiS_Pr 10018 drivers/video/fbdev/sis/init301.c if((SiS_Pr->PanelXRes > 1280) && (SiS_Pr->PanelYRes > 1024)) { SiS_Pr 10021 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 10025 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,delay); SiS_Pr 10035 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_CustomT) { SiS_Pr 10038 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) { SiS_Pr 10052 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10056 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2D,delay); SiS_Pr 10066 drivers/video/fbdev/sis/init301.c index = GetLCDPtrIndexBIOS(SiS_Pr); SiS_Pr 10067 drivers/video/fbdev/sis/init301.c myindex = GetLCDPtrIndex(SiS_Pr); SiS_Pr 10069 drivers/video/fbdev/sis/init301.c if(IS_SIS650 && (SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 10071 drivers/video/fbdev/sis/init301.c if(SiS_IsNotM650orLater(SiS_Pr)) { SiS_Pr 10073 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 10088 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & (VB_SIS302LV | VB_SIS302ELV)) SiS_Pr 10093 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_UseROM && SiS_Pr 10094 drivers/video/fbdev/sis/init301.c (!(SiS_Pr->SiS_ROMNew)) && SiS_Pr 10095 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo != Panel_1280x1024) && SiS_Pr 10096 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo != Panel_1280x768) && SiS_Pr 10097 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo != Panel_1280x960) && SiS_Pr 10098 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDResInfo != Panel_1600x1200) && SiS_Pr 10099 drivers/video/fbdev/sis/init301.c ((romptr = GetLCDromptr(SiS_Pr)))) { SiS_Pr 10105 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 10113 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 10115 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->ChipType <= SIS_315PRO) delay = SiS310_LCDDelayCompensation_3xx301LV[myindex]; SiS_Pr 10117 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SIS301C) { SiS_Pr 10120 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) delay = 0x00; /* experience */ SiS_Pr 10121 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBType & VB_SIS30xB) { SiS_Pr 10130 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 10131 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0x0F,((delay << 4) & 0xf0)); SiS_Pr 10135 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { /* ------------ TV */ SiS_Pr 10137 drivers/video/fbdev/sis/init301.c index = GetTVPtrIndex(SiS_Pr); SiS_Pr 10139 drivers/video/fbdev/sis/init301.c if(IS_SIS650 && (SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 10141 drivers/video/fbdev/sis/init301.c if(SiS_IsNotM650orLater(SiS_Pr)) { SiS_Pr 10143 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 10160 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_CustomT) { SiS_Pr 10175 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS302LV) { SiS_Pr 10181 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->SiS_UseROM) && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 10183 drivers/video/fbdev/sis/init301.c romptr = GetTVromptr(SiS_Pr); SiS_Pr 10187 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 10194 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 10200 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301C) delay = 0x02; SiS_Pr 10206 drivers/video/fbdev/sis/init301.c if(SiS_LCDAEnabled(SiS_Pr)) { SiS_Pr 10215 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 10217 drivers/video/fbdev/sis/init301.c if(IS_SIS650 && (SiS_Pr->SiS_VBType & VB_SISLVDS) && dochiptest) { SiS_Pr 10219 drivers/video/fbdev/sis/init301.c temp = (SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0xf0) >> 4; SiS_Pr 10229 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2D,delay); SiS_Pr 10233 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay); SiS_Pr 10239 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 10240 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay); SiS_Pr 10242 drivers/video/fbdev/sis/init301.c if(IS_SIS650 && (SiS_Pr->SiS_IF_DEF_CH70xx != 0)) { SiS_Pr 10244 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0x0F,delay); SiS_Pr 10246 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay); SiS_Pr 10255 drivers/video/fbdev/sis/init301.c SetAntiFlicker(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 10257 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 10260 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetYPbPr750p|TVSetYPbPr525p)) return; SiS_Pr 10263 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].VB_StTVFlickerIndex; SiS_Pr 10265 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].VB_ExtTVFlickerIndex; SiS_Pr 10267 drivers/video/fbdev/sis/init301.c temp = GetTVPtrIndex(SiS_Pr); SiS_Pr 10271 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 10272 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 10273 drivers/video/fbdev/sis/init301.c temp1 = GetOEMTVPtr661(SiS_Pr); SiS_Pr 10276 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_760) { SiS_Pr 10279 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 10294 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0A,0x8f,temp); /* index 0A D[6:4] */ SiS_Pr 10298 drivers/video/fbdev/sis/init301.c SetEdgeEnhance(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex) SiS_Pr 10300 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 10303 drivers/video/fbdev/sis/init301.c temp = temp1 = GetTVPtrIndex(SiS_Pr) >> 1; /* 0: NTSC/YPbPr, 1: PAL, 2: HiTV */ SiS_Pr 10306 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].VB_StTVEdgeIndex; SiS_Pr 10308 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].VB_ExtTVEdgeIndex; SiS_Pr 10310 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM && (!(SiS_Pr->SiS_ROMNew))) { SiS_Pr 10311 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_661) { SiS_Pr 10313 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_760) { SiS_Pr 10316 drivers/video/fbdev/sis/init301.c temp1 = GetOEMTVPtr661(SiS_Pr); SiS_Pr 10318 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 10332 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x3A,0x1F,temp); /* index 0A D[7:5] */ SiS_Pr 10336 drivers/video/fbdev/sis/init301.c SetYFilter(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex) SiS_Pr 10341 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].VB_StTVYFilterIndex; SiS_Pr 10343 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].VB_ExtTVYFilterIndex; SiS_Pr 10346 drivers/video/fbdev/sis/init301.c temp = GetTVPtrIndex(SiS_Pr) >> 1; /* 0: NTSC/YPbPr, 1: PAL, 2: HiTV */ SiS_Pr 10348 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) temp = 1; /* NTSC-J uses PAL */ SiS_Pr 10349 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 3; /* PAL-M */ SiS_Pr 10350 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPALN) temp = 4; /* PAL-N */ SiS_Pr 10351 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) temp = 1; /* HiVision uses PAL */ SiS_Pr 10353 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 10355 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); SiS_Pr 10358 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter2[temp][index][j]); SiS_Pr 10362 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVYFilter1[temp][index][j]); SiS_Pr 10368 drivers/video/fbdev/sis/init301.c SetPhaseIncr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 10370 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 10374 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) return; SiS_Pr 10377 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetNTSCJ) return; SiS_Pr 10379 drivers/video/fbdev/sis/init301.c if((SiS_Pr->ChipType >= SIS_661) || SiS_Pr->SiS_ROMNew) { SiS_Pr 10380 drivers/video/fbdev/sis/init301.c lindex = GetOEMTVPtr661_2_OLD(SiS_Pr) & 0xffff; SiS_Pr 10383 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS_TVPhase[lindex + j]); SiS_Pr 10389 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetPALM | TVSetPALN)) return; SiS_Pr 10392 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 10394 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 10397 drivers/video/fbdev/sis/init301.c temp = GetTVPtrIndex(SiS_Pr); SiS_Pr 10401 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 10403 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 10406 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 10408 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 10411 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetInSlaveMode) && (!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode))) { SiS_Pr 10413 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= SIS_330) { SiS_Pr 10422 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); SiS_Pr 10428 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SIS30xBLV)) SiS_Pr 10429 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); SiS_Pr 10430 drivers/video/fbdev/sis/init301.c else if((!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) || (SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) SiS_Pr 10431 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr2[temp][index][j]); SiS_Pr 10433 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS310_TVPhaseIncr1[temp][index][j]); SiS_Pr 10437 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SIS30xBLV) && (!(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision))) { SiS_Pr 10438 drivers/video/fbdev/sis/init301.c if((!(SiS_Pr->SiS_TVMode & (TVSetPAL | TVSetYPbPr525p | TVSetYPbPr750p))) && (ModeNo > 0x13)) { SiS_Pr 10441 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x31,0x21); SiS_Pr 10442 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x32,0xf0); SiS_Pr 10443 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x33,0xf5); SiS_Pr 10444 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x34,0x7f); SiS_Pr 10446 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x31,0x1e); SiS_Pr 10447 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x32,0x8b); SiS_Pr 10448 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x33,0xfb); SiS_Pr 10449 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x34,0x7b); SiS_Pr 10456 drivers/video/fbdev/sis/init301.c SetDelayComp661(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 10460 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 10462 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & (SetCRT2ToTV | SetCRT2ToLCD | SetCRT2ToLCDA | SetCRT2ToRAMDAC))) SiS_Pr 10468 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 10469 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToRAMDAC) || SiS_Pr 10470 drivers/video/fbdev/sis/init301.c ((SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) && SiS_Pr 10471 drivers/video/fbdev/sis/init301.c (SiS_Pr->SiS_LCDInfo & LCDPass11))) { SiS_Pr 10473 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) { SiS_Pr 10474 drivers/video/fbdev/sis/init301.c index = SiS_Pr->CSRClock; SiS_Pr 10476 drivers/video/fbdev/sis/init301.c index = SiS_GetVCLK2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RTI); SiS_Pr 10477 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VCLKData[index].CLOCK; SiS_Pr 10481 drivers/video/fbdev/sis/init301.c if((ROMAddr[0x5b] & 0x80) || (SiS_Pr->SiS_VBInfo & (SetCRT2ToRAMDAC | SetCRT2ToLCD))) { SiS_Pr 10486 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToRAMDAC | SetCRT2ToLCD)) { SiS_Pr 10487 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,((delay >> 1) & 0x0f)); SiS_Pr 10488 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,0x7f,((delay & 0x01) << 7)); SiS_Pr 10490 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,((delay << 3) & 0xf0)); SiS_Pr 10491 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x20,0xbf,((delay & 0x01) << 6)); SiS_Pr 10499 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) delay = 0x04; SiS_Pr 10501 drivers/video/fbdev/sis/init301.c else delay = (SiS_Pr->SiS_RefIndex[RTI].Ext_PDC >> 4); SiS_Pr 10504 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType >= XGI_20) { SiS_Pr 10507 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 10510 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_XGIROM) { SiS_Pr 10511 drivers/video/fbdev/sis/init301.c index = GetTVPtrIndex(SiS_Pr); SiS_Pr 10518 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) { SiS_Pr 10519 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == XGI_40 && SiS_Pr->ChipRevision == 0x02) { SiS_Pr 10525 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->ChipType >= SIS_340) { SiS_Pr 10528 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 10533 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 10537 drivers/video/fbdev/sis/init301.c index = GetOEMTVPtr661(SiS_Pr); SiS_Pr 10538 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 10540 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_UMC) romptr += 12; SiS_Pr 10547 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10551 drivers/video/fbdev/sis/init301.c if( (SiS_Pr->SiS_LCDResInfo != Panel_Custom) && SiS_Pr 10552 drivers/video/fbdev/sis/init301.c ((romptr = GetLCDStructPtr661_2(SiS_Pr))) ) { SiS_Pr 10554 drivers/video/fbdev/sis/init301.c lcdpdcindex = (SiS_Pr->SiS_VBType & VB_UMC) ? 14 : 12; SiS_Pr 10564 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 10565 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_LCDResInfo) { SiS_Pr 10578 drivers/video/fbdev/sis/init301.c if((SiS_Pr->PanelXRes <= 1024) && (SiS_Pr->PanelYRes <= 768)) { SiS_Pr 10580 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->PanelXRes == 1280) && (SiS_Pr->PanelYRes == 1024)) { SiS_Pr 10582 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->PanelXRes <= 1400) && (SiS_Pr->PanelYRes <= 1050)) { SiS_Pr 10584 drivers/video/fbdev/sis/init301.c } else if((SiS_Pr->PanelXRes <= 1600) && (SiS_Pr->PanelYRes <= 1200)) { SiS_Pr 10594 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) && (SiS_Pr->PDC != -1)) { SiS_Pr 10595 drivers/video/fbdev/sis/init301.c delay = SiS_Pr->PDC & 0x1f; SiS_Pr 10597 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) && (SiS_Pr->PDCA != -1)) { SiS_Pr 10598 drivers/video/fbdev/sis/init301.c delay = (SiS_Pr->PDCA & 0x1f) << 8; SiS_Pr 10605 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 10607 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,((delay << 3) & 0xf0)); SiS_Pr 10608 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x20,0xbf,((delay & 0x01) << 6)); SiS_Pr 10610 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,((delay >> 1) & 0x0f)); SiS_Pr 10611 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,0x7f,((delay & 0x01) << 7)); SiS_Pr 10616 drivers/video/fbdev/sis/init301.c SetCRT2SyncDither661(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short RTI) SiS_Pr 10621 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10624 drivers/video/fbdev/sis/init301.c infoflag = SiS_GetRegByte(SiS_Pr->SiS_P3ca+2); SiS_Pr 10625 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->UseCustomMode) { SiS_Pr 10626 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->CInfoFlag; SiS_Pr 10628 drivers/video/fbdev/sis/init301.c infoflag = SiS_Pr->SiS_RefIndex[RTI].Ext_InfoFlag; SiS_Pr 10631 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_LCDInfo & LCDPass11)) { SiS_Pr 10632 drivers/video/fbdev/sis/init301.c infoflag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); /* No longer check D5 */ SiS_Pr 10637 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 10639 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) { SiS_Pr 10641 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType >= Mode24Bpp) temp |= 0x10; SiS_Pr 10643 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1a,0xe0,temp); SiS_Pr 10646 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) temp = 0x20; SiS_Pr 10648 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0f,temp); SiS_Pr 10650 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit) { SiS_Pr 10651 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ModeType >= Mode24Bpp) temp |= 0x80; SiS_Pr 10653 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1a,0x7f,temp); SiS_Pr 10660 drivers/video/fbdev/sis/init301.c SetPanelParms661(struct SiS_Private *SiS_Pr) SiS_Pr 10662 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 10665 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & (VB_SISLVDS | VB_SIS30xC)) { SiS_Pr 10666 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x24,0x0f); SiS_Pr 10669 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 10670 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL != -1) { SiS_Pr 10671 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,0xfc,SiS_Pr->LVDSHL); SiS_Pr 10675 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) { SiS_Pr 10677 drivers/video/fbdev/sis/init301.c if((romptr = GetLCDStructPtr661_2(SiS_Pr))) { SiS_Pr 10678 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISLVDS) { SiS_Pr 10681 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL != -1) { SiS_Pr 10685 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,temp2,temp1); SiS_Pr 10687 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 10689 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0d,0xbf,temp1); SiS_Pr 10697 drivers/video/fbdev/sis/init301.c SiS_OEM310Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RRTI) SiS_Pr 10699 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_ROMNew) && (SiS_Pr->SiS_VBType & VB_SISLVDS)) { SiS_Pr 10700 drivers/video/fbdev/sis/init301.c SetDelayComp661(SiS_Pr, ModeNo, ModeIdIndex, RRTI); SiS_Pr 10701 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10702 drivers/video/fbdev/sis/init301.c SetCRT2SyncDither661(SiS_Pr, ModeNo, RRTI); SiS_Pr 10703 drivers/video/fbdev/sis/init301.c SetPanelParms661(SiS_Pr); SiS_Pr 10706 drivers/video/fbdev/sis/init301.c SetDelayComp(SiS_Pr,ModeNo); SiS_Pr 10709 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_VBType & VB_SISVB) && (SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) { SiS_Pr 10710 drivers/video/fbdev/sis/init301.c SetAntiFlicker(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 10711 drivers/video/fbdev/sis/init301.c SetPhaseIncr(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 10712 drivers/video/fbdev/sis/init301.c SetYFilter(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 10713 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 10714 drivers/video/fbdev/sis/init301.c SetEdgeEnhance(SiS_Pr,ModeNo,ModeIdIndex); SiS_Pr 10720 drivers/video/fbdev/sis/init301.c SiS_OEM661Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 10723 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 10725 drivers/video/fbdev/sis/init301.c SetDelayComp661(SiS_Pr, ModeNo, ModeIdIndex, RRTI); SiS_Pr 10727 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10728 drivers/video/fbdev/sis/init301.c SetCRT2SyncDither661(SiS_Pr, ModeNo, RRTI); SiS_Pr 10729 drivers/video/fbdev/sis/init301.c SetPanelParms661(SiS_Pr); SiS_Pr 10732 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 10733 drivers/video/fbdev/sis/init301.c SetPhaseIncr(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 10734 drivers/video/fbdev/sis/init301.c SetYFilter(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 10735 drivers/video/fbdev/sis/init301.c SetAntiFlicker(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 10736 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) { SiS_Pr 10737 drivers/video/fbdev/sis/init301.c SetEdgeEnhance(SiS_Pr, ModeNo, ModeIdIndex); SiS_Pr 10751 drivers/video/fbdev/sis/init301.c SiS_FinalizeLCD(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 10756 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBType & VB_SISLVDS)) return; SiS_Pr 10757 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_ROMNew) return; SiS_Pr 10759 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10760 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL != -1) { SiS_Pr 10761 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,0xfc,SiS_Pr->LVDSHL); SiS_Pr 10765 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_Custom) return; SiS_Pr 10766 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) return; SiS_Pr 10768 drivers/video/fbdev/sis/init301.c switch(SiS_Pr->SiS_CustomT) { SiS_Pr 10777 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; SiS_Pr 10778 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 10780 drivers/video/fbdev/sis/init301.c resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; SiS_Pr 10781 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 10785 drivers/video/fbdev/sis/init301.c if(!(SiS_GetReg(SiS_Pr->SiS_P3d4, 0x5f) & 0xf0)) { SiS_Pr 10786 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_CLEVO1024) { SiS_Pr 10787 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1e,0x02); SiS_Pr 10789 drivers/video/fbdev/sis/init301.c SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x1e,0x03); SiS_Pr 10794 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_CLEVO1024) { SiS_Pr 10795 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10797 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL == -1) { SiS_Pr 10798 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,0xfc,0x01); SiS_Pr 10804 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_CLEVO10242) { SiS_Pr 10805 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10806 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10807 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL == -1) { SiS_Pr 10809 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,0xfc,0x01); SiS_Pr 10811 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 10812 drivers/video/fbdev/sis/init301.c tempch = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4; SiS_Pr 10814 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x02); SiS_Pr 10815 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x25); SiS_Pr 10816 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1c,0x00); SiS_Pr 10817 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1d,0x1b); SiS_Pr 10825 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)) { SiS_Pr 10826 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10827 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISEMI) { SiS_Pr 10828 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2a,0x00); SiS_Pr 10830 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x30,0x0c); SiS_Pr 10832 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part4Port,0x34,0x10); SiS_Pr 10834 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDResInfo == Panel_1280x1024) { SiS_Pr 10835 drivers/video/fbdev/sis/init301.c if(SiS_Pr->LVDSHL == -1) { SiS_Pr 10837 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x24,0xfc,0x01); SiS_Pr 10840 drivers/video/fbdev/sis/init301.c tempch = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4; SiS_Pr 10841 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) { SiS_Pr 10842 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1400x1050) { SiS_Pr 10843 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1f,0x76); SiS_Pr 10844 drivers/video/fbdev/sis/init301.c } else if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10846 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x02); SiS_Pr 10847 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x25); SiS_Pr 10848 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1c,0x00); SiS_Pr 10849 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1d,0x1b); SiS_Pr 10851 drivers/video/fbdev/sis/init301.c if(SiS_Pr->Backup && (SiS_Pr->Backup_Mode == ModeNo)) { SiS_Pr 10852 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x14,SiS_Pr->Backup_14); SiS_Pr 10853 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x15,SiS_Pr->Backup_15); SiS_Pr 10854 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,SiS_Pr->Backup_16); SiS_Pr 10855 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x17,SiS_Pr->Backup_17); SiS_Pr 10856 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,SiS_Pr->Backup_18); SiS_Pr 10857 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x19,SiS_Pr->Backup_19); SiS_Pr 10858 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1a,SiS_Pr->Backup_1a); SiS_Pr 10859 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,SiS_Pr->Backup_1b); SiS_Pr 10860 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1c,SiS_Pr->Backup_1c); SiS_Pr 10861 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1d,SiS_Pr->Backup_1d); SiS_Pr 10862 drivers/video/fbdev/sis/init301.c } else if(!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) { /* 1.10.8w */ SiS_Pr 10863 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x14,0x90); SiS_Pr 10865 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x11); SiS_Pr 10867 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x18); SiS_Pr 10870 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x02); SiS_Pr 10872 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x02); /* 1.10.7u */ SiS_Pr 10877 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,temp); SiS_Pr 10879 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1d,0xf8,temp); SiS_Pr 10884 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x70); SiS_Pr 10885 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x19,0xff); SiS_Pr 10886 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x48); SiS_Pr 10887 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1d,0x12); SiS_Pr 10890 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x14,0x20); SiS_Pr 10891 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x15,0x1a); SiS_Pr 10892 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x16,0x28); SiS_Pr 10893 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x17,0x00); SiS_Pr 10894 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x4c); SiS_Pr 10895 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x19,0xdc); SiS_Pr 10899 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x95); SiS_Pr 10900 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x19,0xdc); SiS_Pr 10901 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1a,0x10); SiS_Pr 10902 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x95); SiS_Pr 10903 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1c,0x48); SiS_Pr 10904 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1d,0x12); SiS_Pr 10907 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,0x95); SiS_Pr 10908 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x48); SiS_Pr 10911 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1b,0x95); SiS_Pr 10919 drivers/video/fbdev/sis/init301.c tempcl = tempbh = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x01); SiS_Pr 10923 drivers/video/fbdev/sis/init301.c tempbl = SiS_GetReg(SiS_Pr->SiS_Part2Port,0x04); SiS_Pr 10925 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 10926 drivers/video/fbdev/sis/init301.c if((resinfo == SIS_RI_1024x768) || (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD))) { SiS_Pr 10927 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LCDVESATiming) { SiS_Pr 10931 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE < 600) { SiS_Pr 10932 drivers/video/fbdev/sis/init301.c tempax = 768 - SiS_Pr->SiS_VGAVDE; SiS_Pr 10934 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */ SiS_Pr 10941 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,temp); SiS_Pr 10943 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x01,0x80,temp); SiS_Pr 10955 drivers/video/fbdev/sis/init301.c SetOEMLCDData2(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex, SiS_Pr 10963 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; SiS_Pr 10964 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; SiS_Pr 10966 drivers/video/fbdev/sis/init301.c modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; SiS_Pr 10967 drivers/video/fbdev/sis/init301.c crt2crtc = SiS_Pr->SiS_RefIndex[RefTabIndex].Ext_CRT2CRTC; SiS_Pr 10972 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1024) { SiS_Pr 10973 drivers/video/fbdev/sis/init301.c SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x13,0xdf); SiS_Pr 10976 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_CustomT == CUT_BARCO1366) { SiS_Pr 10979 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_SetFlag & LowModeTests) { SiS_Pr 10982 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port, SiS_Pr 10989 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x00); SiS_Pr 10991 drivers/video/fbdev/sis/init301.c temp = SiS_GetReg(SiS_Pr->SiS_Part1Port,0x18); SiS_Pr 10993 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,0x18,temp); SiS_Pr 10999 drivers/video/fbdev/sis/init301.c GetOEMLCDPtr(struct SiS_Private *SiS_Pr, int Flag) SiS_Pr 11001 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11012 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType == SIS_300) { SiS_Pr 11014 drivers/video/fbdev/sis/init301.c tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f; SiS_Pr 11015 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07; SiS_Pr 11017 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4; SiS_Pr 11018 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) { SiS_Pr 11019 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3; SiS_Pr 11021 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11023 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDTypeInfo; SiS_Pr 11026 drivers/video/fbdev/sis/init301.c if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; SiS_Pr 11027 drivers/video/fbdev/sis/init301.c else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo]; SiS_Pr 11031 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; SiS_Pr 11038 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11040 drivers/video/fbdev/sis/init301.c if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; SiS_Pr 11043 drivers/video/fbdev/sis/init301.c tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo]; SiS_Pr 11047 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; SiS_Pr 11048 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_Pr 11051 drivers/video/fbdev/sis/init301.c tempbx = SiS_Pr->SiS_LCDTypeInfo << 2; SiS_Pr 11052 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; SiS_Pr 11053 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_Pr 11061 drivers/video/fbdev/sis/init301.c SetOEMLCDDelay(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex) SiS_Pr 11063 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11066 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_LCDResInfo == Panel_Custom) return; SiS_Pr 11068 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11081 drivers/video/fbdev/sis/init301.c if(SiS_Pr->PDC != -1) return; SiS_Pr 11083 drivers/video/fbdev/sis/init301.c temp = GetOEMLCDPtr(SiS_Pr, 0); SiS_Pr 11085 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) SiS_Pr 11088 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].VB_LCDDelayIndex; SiS_Pr 11090 drivers/video/fbdev/sis/init301.c if(SiS_Pr->ChipType != SIS_300) { SiS_Pr 11097 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 11104 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM && (ROMAddr[0x235] & 0x80)) { SiS_Pr 11114 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11130 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); /* index 0A D[6:4] */ SiS_Pr 11134 drivers/video/fbdev/sis/init301.c SetOEMLCDData(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 11137 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11140 drivers/video/fbdev/sis/init301.c if((SiS_Pr->SiS_UseROM) { SiS_Pr 11146 drivers/video/fbdev/sis/init301.c temp = GetOEMLCDPtr(SiS_Pr, 1); SiS_Pr 11149 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex]._VB_LCDHIndex; SiS_Pr 11151 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDHData[temp][index][j]); SiS_Pr 11155 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex]._VB_LCDVIndex; SiS_Pr 11160 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part1Port,i,SiS300_LCDVData[temp][index][j]); SiS_Pr 11166 drivers/video/fbdev/sis/init301.c GetOEMTVPtr(struct SiS_Private *SiS_Pr) SiS_Pr 11171 drivers/video/fbdev/sis/init301.c if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) index += 4; SiS_Pr 11172 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 11173 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToSCART) index += 2; SiS_Pr 11174 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) index += 3; SiS_Pr 11175 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPAL) index += 1; SiS_Pr 11177 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) index += 2; SiS_Pr 11178 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPAL) index += 1; SiS_Pr 11184 drivers/video/fbdev/sis/init301.c SetOEMTVDelay(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 11186 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11189 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11195 drivers/video/fbdev/sis/init301.c temp = GetOEMTVPtr(SiS_Pr); SiS_Pr 11197 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].VB_TVDelayIndex; SiS_Pr 11205 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 11212 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,~0x3C,temp); SiS_Pr 11216 drivers/video/fbdev/sis/init301.c SetOEMAntiFlicker(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 11218 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11221 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11227 drivers/video/fbdev/sis/init301.c temp = GetOEMTVPtr(SiS_Pr); SiS_Pr 11229 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].VB_TVFlickerIndex; SiS_Pr 11240 drivers/video/fbdev/sis/init301.c SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0A,0x8F,temp); SiS_Pr 11244 drivers/video/fbdev/sis/init301.c SetOEMPhaseIncr(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex) SiS_Pr 11246 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11249 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) return; SiS_Pr 11251 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & (TVSetNTSC1024 | TVSetNTSCJ | TVSetPALM | TVSetPALN)) return; SiS_Pr 11253 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11259 drivers/video/fbdev/sis/init301.c temp = GetOEMTVPtr(SiS_Pr); SiS_Pr 11261 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].VB_TVPhaseIndex; SiS_Pr 11263 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 11265 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase2[temp][index][j]); SiS_Pr 11273 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); SiS_Pr 11277 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Phase1[temp][index][j]); SiS_Pr 11284 drivers/video/fbdev/sis/init301.c SetOEMYFilter(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) SiS_Pr 11286 drivers/video/fbdev/sis/init301.c unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; SiS_Pr 11289 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & (SetCRT2ToSCART | SetCRT2ToHiVision | SetCRT2ToYPbPr525750)) return; SiS_Pr 11291 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_UseROM) { SiS_Pr 11297 drivers/video/fbdev/sis/init301.c temp = GetOEMTVPtr(SiS_Pr); SiS_Pr 11299 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_TVMode & TVSetPALM) temp = 8; SiS_Pr 11300 drivers/video/fbdev/sis/init301.c else if(SiS_Pr->SiS_TVMode & TVSetPALN) temp = 9; SiS_Pr 11303 drivers/video/fbdev/sis/init301.c index = SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].VB_TVYFilterIndex; SiS_Pr 11305 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) { SiS_Pr 11307 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); SiS_Pr 11310 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter2[temp][index][j]); SiS_Pr 11313 drivers/video/fbdev/sis/init301.c if((romptr) && (!(SiS_Pr->SiS_TVMode & (TVSetPALM|TVSetPALN)))) { SiS_Pr 11318 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); SiS_Pr 11322 drivers/video/fbdev/sis/init301.c SiS_SetReg(SiS_Pr->SiS_Part2Port,i,SiS300_Filter1[temp][index][j]); SiS_Pr 11329 drivers/video/fbdev/sis/init301.c SiS_SearchVBModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo) SiS_Pr 11332 drivers/video/fbdev/sis/init301.c unsigned char VGAINFO = SiS_Pr->SiS_VGAINFO; SiS_Pr 11337 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].ModeID == *ModeNo) break; SiS_Pr 11338 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].ModeID == 0xFF) return 0; SiS_Pr 11353 drivers/video/fbdev/sis/init301.c SiS_OEM300Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 11358 drivers/video/fbdev/sis/init301.c if(!SiS_Pr->UseCustomMode) { SiS_Pr 11359 drivers/video/fbdev/sis/init301.c OEMModeIdIndex = SiS_SearchVBModeID(SiS_Pr,&ModeNo); SiS_Pr 11363 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCD) { SiS_Pr 11364 drivers/video/fbdev/sis/init301.c SetOEMLCDDelay(SiS_Pr, ModeNo, OEMModeIdIndex); SiS_Pr 11365 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_IF_DEF_LVDS == 1) { SiS_Pr 11366 drivers/video/fbdev/sis/init301.c SetOEMLCDData(SiS_Pr, ModeNo, OEMModeIdIndex); SiS_Pr 11369 drivers/video/fbdev/sis/init301.c if(SiS_Pr->UseCustomMode) return; SiS_Pr 11370 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) { SiS_Pr 11371 drivers/video/fbdev/sis/init301.c SetOEMTVDelay(SiS_Pr, ModeNo,OEMModeIdIndex); SiS_Pr 11372 drivers/video/fbdev/sis/init301.c if(SiS_Pr->SiS_VBType & VB_SISVB) { SiS_Pr 11373 drivers/video/fbdev/sis/init301.c SetOEMAntiFlicker(SiS_Pr, ModeNo, OEMModeIdIndex); SiS_Pr 11374 drivers/video/fbdev/sis/init301.c SetOEMPhaseIncr(SiS_Pr, ModeNo, OEMModeIdIndex); SiS_Pr 11375 drivers/video/fbdev/sis/init301.c SetOEMYFilter(SiS_Pr, ModeNo, OEMModeIdIndex); SiS_Pr 69 drivers/video/fbdev/sis/init301.h void SiS_UnLockCRT2(struct SiS_Private *SiS_Pr); SiS_Pr 70 drivers/video/fbdev/sis/init301.h void SiS_EnableCRT2(struct SiS_Private *SiS_Pr); SiS_Pr 71 drivers/video/fbdev/sis/init301.h unsigned short SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); SiS_Pr 72 drivers/video/fbdev/sis/init301.h void SiS_WaitRetrace1(struct SiS_Private *SiS_Pr); SiS_Pr 73 drivers/video/fbdev/sis/init301.h bool SiS_IsDualEdge(struct SiS_Private *SiS_Pr); SiS_Pr 74 drivers/video/fbdev/sis/init301.h bool SiS_IsVAMode(struct SiS_Private *SiS_Pr); SiS_Pr 75 drivers/video/fbdev/sis/init301.h void SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 77 drivers/video/fbdev/sis/init301.h void SiS_SetYPbPr(struct SiS_Private *SiS_Pr); SiS_Pr 78 drivers/video/fbdev/sis/init301.h void SiS_SetTVMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 80 drivers/video/fbdev/sis/init301.h void SiS_GetLCDResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 82 drivers/video/fbdev/sis/init301.h unsigned short SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 84 drivers/video/fbdev/sis/init301.h unsigned short SiS_GetResInfo(struct SiS_Private *SiS_Pr,unsigned short ModeNo,unsigned short ModeIdIndex); SiS_Pr 85 drivers/video/fbdev/sis/init301.h void SiS_DisableBridge(struct SiS_Private *SiS_Pr); SiS_Pr 86 drivers/video/fbdev/sis/init301.h bool SiS_SetCRT2Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo); SiS_Pr 87 drivers/video/fbdev/sis/init301.h void SiS_SiS30xBLOn(struct SiS_Private *SiS_Pr); SiS_Pr 88 drivers/video/fbdev/sis/init301.h void SiS_SiS30xBLOff(struct SiS_Private *SiS_Pr); SiS_Pr 90 drivers/video/fbdev/sis/init301.h void SiS_SetCH700x(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val); SiS_Pr 91 drivers/video/fbdev/sis/init301.h unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax); SiS_Pr 92 drivers/video/fbdev/sis/init301.h void SiS_SetCH701x(struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val); SiS_Pr 93 drivers/video/fbdev/sis/init301.h unsigned short SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempax); SiS_Pr 94 drivers/video/fbdev/sis/init301.h void SiS_SetCH70xxANDOR(struct SiS_Private *SiS_Pr, unsigned short reg, SiS_Pr 97 drivers/video/fbdev/sis/init301.h void SiS_Chrontel701xBLOn(struct SiS_Private *SiS_Pr); SiS_Pr 98 drivers/video/fbdev/sis/init301.h void SiS_Chrontel701xBLOff(struct SiS_Private *SiS_Pr); SiS_Pr 102 drivers/video/fbdev/sis/init301.h void SiS_SetChrontelGPIO(struct SiS_Private *SiS_Pr, unsigned short myvbinfo); SiS_Pr 105 drivers/video/fbdev/sis/init301.h void SiS_DDC2Delay(struct SiS_Private *SiS_Pr, unsigned int delaytime); SiS_Pr 106 drivers/video/fbdev/sis/init301.h unsigned short SiS_ReadDDC1Bit(struct SiS_Private *SiS_Pr); SiS_Pr 107 drivers/video/fbdev/sis/init301.h unsigned short SiS_HandleDDC(struct SiS_Private *SiS_Pr, unsigned int VBFlags, int VGAEngine, SiS_Pr 111 drivers/video/fbdev/sis/init301.h extern void SiS_DisplayOff(struct SiS_Private *SiS_Pr); SiS_Pr 112 drivers/video/fbdev/sis/init301.h extern void SiS_DisplayOn(struct SiS_Private *SiS_Pr); SiS_Pr 114 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 116 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); SiS_Pr 117 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); SiS_Pr 118 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, SiS_Pr 120 drivers/video/fbdev/sis/init301.h extern void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 122 drivers/video/fbdev/sis/init301.h extern void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 124 drivers/video/fbdev/sis/init301.h extern void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); SiS_Pr 125 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetRefCRTVCLK(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide); SiS_Pr 126 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetRefCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide); SiS_Pr 128 drivers/video/fbdev/sis/init301.h extern void SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *tempbx, SiS_Pr 131 drivers/video/fbdev/sis/init301.h extern unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index); SiS_Pr 132 drivers/video/fbdev/sis/init301.h extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 133 drivers/video/fbdev/sis/init301.h extern unsigned int sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 56 drivers/video/fbdev/sis/initdef.h #define IS_SIS330 (SiS_Pr->ChipType == SIS_330) SiS_Pr 57 drivers/video/fbdev/sis/initdef.h #define IS_SIS550 (SiS_Pr->ChipType == SIS_550) SiS_Pr 58 drivers/video/fbdev/sis/initdef.h #define IS_SIS650 (SiS_Pr->ChipType == SIS_650) /* All versions, incl 651, M65x */ SiS_Pr 59 drivers/video/fbdev/sis/initdef.h #define IS_SIS740 (SiS_Pr->ChipType == SIS_740) SiS_Pr 60 drivers/video/fbdev/sis/initdef.h #define IS_SIS651 (SiS_Pr->SiS_SysFlags & (SF_Is651 | SF_Is652)) SiS_Pr 61 drivers/video/fbdev/sis/initdef.h #define IS_SISM650 (SiS_Pr->SiS_SysFlags & (SF_IsM650 | SF_IsM652 | SF_IsM653)) SiS_Pr 63 drivers/video/fbdev/sis/initdef.h #define IS_SIS661 (SiS_Pr->ChipType == SIS_661) SiS_Pr 64 drivers/video/fbdev/sis/initdef.h #define IS_SIS741 (SiS_Pr->ChipType == SIS_741) SiS_Pr 65 drivers/video/fbdev/sis/initdef.h #define IS_SIS660 (SiS_Pr->ChipType == SIS_660) SiS_Pr 66 drivers/video/fbdev/sis/initdef.h #define IS_SIS760 (SiS_Pr->ChipType == SIS_760) SiS_Pr 67 drivers/video/fbdev/sis/initdef.h #define IS_SIS761 (SiS_Pr->ChipType == SIS_761) SiS_Pr 69 drivers/video/fbdev/sis/initdef.h #define IS_SIS650740 ((SiS_Pr->ChipType >= SIS_650) && (SiS_Pr->ChipType < SIS_330)) SiS_Pr 22 drivers/video/fbdev/sis/initextlfb.c int sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, SiS_Pr 24 drivers/video/fbdev/sis/initextlfb.c int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 26 drivers/video/fbdev/sis/initextlfb.c bool sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 29 drivers/video/fbdev/sis/initextlfb.c extern bool SiSInitPtr(struct SiS_Private *SiS_Pr); SiS_Pr 30 drivers/video/fbdev/sis/initextlfb.c extern bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, SiS_Pr 32 drivers/video/fbdev/sis/initextlfb.c extern void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, SiS_Pr 36 drivers/video/fbdev/sis/initextlfb.c sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 44 drivers/video/fbdev/sis/initextlfb.c if(!SiSInitPtr(SiS_Pr)) return 65000; SiS_Pr 55 drivers/video/fbdev/sis/initextlfb.c if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) { SiS_Pr 60 drivers/video/fbdev/sis/initextlfb.c RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; SiS_Pr 62 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { SiS_Pr 63 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_UseWide == 1) { SiS_Pr 65 drivers/video/fbdev/sis/initextlfb.c ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_WIDE; SiS_Pr 68 drivers/video/fbdev/sis/initextlfb.c ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_NORM; SiS_Pr 72 drivers/video/fbdev/sis/initextlfb.c ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK; SiS_Pr 75 drivers/video/fbdev/sis/initextlfb.c Clock = SiS_Pr->SiS_VCLKData[ClockIndex].CLOCK * 1000; SiS_Pr 81 drivers/video/fbdev/sis/initextlfb.c sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 88 drivers/video/fbdev/sis/initextlfb.c if(!SiSInitPtr(SiS_Pr)) return 0; SiS_Pr 99 drivers/video/fbdev/sis/initextlfb.c if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return 0; SiS_Pr 101 drivers/video/fbdev/sis/initextlfb.c RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; SiS_Pr 102 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { SiS_Pr 103 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_UseWide == 1) { SiS_Pr 105 drivers/video/fbdev/sis/initextlfb.c index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; SiS_Pr 108 drivers/video/fbdev/sis/initextlfb.c index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; SiS_Pr 112 drivers/video/fbdev/sis/initextlfb.c index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; SiS_Pr 115 drivers/video/fbdev/sis/initextlfb.c SiS_Generic_ConvertCRData(SiS_Pr, SiS_Pr 116 drivers/video/fbdev/sis/initextlfb.c (unsigned char *)&SiS_Pr->SiS_CRT1Table[index].CR[0], SiS_Pr 117 drivers/video/fbdev/sis/initextlfb.c SiS_Pr->SiS_RefIndex[RRTI].XRes, SiS_Pr 118 drivers/video/fbdev/sis/initextlfb.c SiS_Pr->SiS_RefIndex[RRTI].YRes, SiS_Pr 121 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x8000) SiS_Pr 126 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x4000) SiS_Pr 132 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x0080) SiS_Pr 136 drivers/video/fbdev/sis/initextlfb.c while(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID != 0xff) { SiS_Pr 137 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID == SiS_Pr 138 drivers/video/fbdev/sis/initextlfb.c SiS_Pr->SiS_RefIndex[RRTI].ModeID) { SiS_Pr 139 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeFlag & DoubleScanMode) { SiS_Pr 164 drivers/video/fbdev/sis/initextlfb.c sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, SiS_Pr 172 drivers/video/fbdev/sis/initextlfb.c if(!SiSInitPtr(SiS_Pr)) return false; SiS_Pr 183 drivers/video/fbdev/sis/initextlfb.c if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; SiS_Pr 185 drivers/video/fbdev/sis/initextlfb.c RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; SiS_Pr 186 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { SiS_Pr 187 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_UseWide == 1) { SiS_Pr 189 drivers/video/fbdev/sis/initextlfb.c CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; SiS_Pr 192 drivers/video/fbdev/sis/initextlfb.c CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; SiS_Pr 196 drivers/video/fbdev/sis/initextlfb.c CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; SiS_Pr 199 drivers/video/fbdev/sis/initextlfb.c sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[14]; SiS_Pr 200 drivers/video/fbdev/sis/initextlfb.c cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[0]; SiS_Pr 203 drivers/video/fbdev/sis/initextlfb.c sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[13]; SiS_Pr 204 drivers/video/fbdev/sis/initextlfb.c cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[6]; SiS_Pr 205 drivers/video/fbdev/sis/initextlfb.c cr_data2 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[7]; SiS_Pr 211 drivers/video/fbdev/sis/initextlfb.c if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & InterlaceMode) SiS_Pr 140 drivers/video/fbdev/sis/sis.h #define SISSR ivideo->SiS_Pr.SiS_P3c4 SiS_Pr 141 drivers/video/fbdev/sis/sis.h #define SISCR ivideo->SiS_Pr.SiS_P3d4 SiS_Pr 142 drivers/video/fbdev/sis/sis.h #define SISDACA ivideo->SiS_Pr.SiS_P3c8 SiS_Pr 143 drivers/video/fbdev/sis/sis.h #define SISDACD ivideo->SiS_Pr.SiS_P3c9 SiS_Pr 144 drivers/video/fbdev/sis/sis.h #define SISPART1 ivideo->SiS_Pr.SiS_Part1Port SiS_Pr 145 drivers/video/fbdev/sis/sis.h #define SISPART2 ivideo->SiS_Pr.SiS_Part2Port SiS_Pr 146 drivers/video/fbdev/sis/sis.h #define SISPART3 ivideo->SiS_Pr.SiS_Part3Port SiS_Pr 147 drivers/video/fbdev/sis/sis.h #define SISPART4 ivideo->SiS_Pr.SiS_Part4Port SiS_Pr 148 drivers/video/fbdev/sis/sis.h #define SISPART5 ivideo->SiS_Pr.SiS_Part5Port SiS_Pr 151 drivers/video/fbdev/sis/sis.h #define SISMISCR (ivideo->SiS_Pr.RelIO + 0x1c) SiS_Pr 152 drivers/video/fbdev/sis/sis.h #define SISMISCW ivideo->SiS_Pr.SiS_P3c2 SiS_Pr 153 drivers/video/fbdev/sis/sis.h #define SISINPSTAT (ivideo->SiS_Pr.RelIO + 0x2a) SiS_Pr 154 drivers/video/fbdev/sis/sis.h #define SISPEL ivideo->SiS_Pr.SiS_P3c6 SiS_Pr 155 drivers/video/fbdev/sis/sis.h #define SISVGAENABLE (ivideo->SiS_Pr.RelIO + 0x13) SiS_Pr 156 drivers/video/fbdev/sis/sis.h #define SISVID (ivideo->SiS_Pr.RelIO + 0x02 - 0x30) SiS_Pr 157 drivers/video/fbdev/sis/sis.h #define SISCAP (ivideo->SiS_Pr.RelIO + 0x00 - 0x30) SiS_Pr 314 drivers/video/fbdev/sis/sis.h bool SiSInitPtr(struct SiS_Private *SiS_Pr); SiS_Pr 324 drivers/video/fbdev/sis/sis.h void SiS_DisplayOn(struct SiS_Private *SiS_Pr); SiS_Pr 325 drivers/video/fbdev/sis/sis.h void SiS_DisplayOff(struct SiS_Private *SiS_Pr); SiS_Pr 326 drivers/video/fbdev/sis/sis.h void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); SiS_Pr 327 drivers/video/fbdev/sis/sis.h void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); SiS_Pr 328 drivers/video/fbdev/sis/sis.h void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); SiS_Pr 329 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 331 drivers/video/fbdev/sis/sis.h bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); SiS_Pr 333 drivers/video/fbdev/sis/sis.h bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, SiS_Pr 335 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 337 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetRefCRTVCLK(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide); SiS_Pr 338 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetRefCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide); SiS_Pr 339 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 341 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetOffset(struct SiS_Private *SiS_Pr,unsigned short ModeNo, SiS_Pr 344 drivers/video/fbdev/sis/sis.h void SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *idx1, SiS_Pr 347 drivers/video/fbdev/sis/sis.h unsigned short SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index); SiS_Pr 349 drivers/video/fbdev/sis/sis.h void SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex); SiS_Pr 350 drivers/video/fbdev/sis/sis.h bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); SiS_Pr 351 drivers/video/fbdev/sis/sis.h void SiS_CalcCRRegisters(struct SiS_Private *SiS_Pr, int depth); SiS_Pr 352 drivers/video/fbdev/sis/sis.h void SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 354 drivers/video/fbdev/sis/sis.h void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, SiS_Pr 358 drivers/video/fbdev/sis/sis.h extern void SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 360 drivers/video/fbdev/sis/sis.h extern void SiS_GetLCDResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 362 drivers/video/fbdev/sis/sis.h extern void SiS_SetYPbPr(struct SiS_Private *SiS_Pr); SiS_Pr 363 drivers/video/fbdev/sis/sis.h extern void SiS_SetTVMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 365 drivers/video/fbdev/sis/sis.h extern void SiS_UnLockCRT2(struct SiS_Private *SiS_Pr); SiS_Pr 368 drivers/video/fbdev/sis/sis.h extern unsigned short SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 370 drivers/video/fbdev/sis/sis.h extern void SiS_WaitRetrace1(struct SiS_Private *SiS_Pr); SiS_Pr 371 drivers/video/fbdev/sis/sis.h extern unsigned short SiS_GetResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 373 drivers/video/fbdev/sis/sis.h extern unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax); SiS_Pr 374 drivers/video/fbdev/sis/sis.h extern unsigned short SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, SiS_Pr 380 drivers/video/fbdev/sis/sis.h extern unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 381 drivers/video/fbdev/sis/sis.h extern void sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, SiS_Pr 385 drivers/video/fbdev/sis/sis.h extern void sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, SiS_Pr 387 drivers/video/fbdev/sis/sis.h extern unsigned int sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 485 drivers/video/fbdev/sis/sis.h struct SiS_Private SiS_Pr; SiS_Pr 666 drivers/video/fbdev/sis/sis.h unsigned int sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 667 drivers/video/fbdev/sis/sis.h void sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, unsigned int val); SiS_Pr 668 drivers/video/fbdev/sis/sis.h unsigned int sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 671 drivers/video/fbdev/sis/sis.h void sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, unsigned char val); SiS_Pr 672 drivers/video/fbdev/sis/sis.h unsigned int sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg); SiS_Pr 689 drivers/video/fbdev/sis/sis.h extern void SiSRegInit(struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); SiS_Pr 690 drivers/video/fbdev/sis/sis.h extern bool SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo); SiS_Pr 691 drivers/video/fbdev/sis/sis.h extern void SiS_SetEnableDstn(struct SiS_Private *SiS_Pr, int enable); SiS_Pr 692 drivers/video/fbdev/sis/sis.h extern void SiS_SetEnableFstn(struct SiS_Private *SiS_Pr, int enable); SiS_Pr 694 drivers/video/fbdev/sis/sis.h extern bool SiSDetermineROMLayout661(struct SiS_Private *SiS_Pr); SiS_Pr 696 drivers/video/fbdev/sis/sis.h extern bool sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 698 drivers/video/fbdev/sis/sis.h extern int sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, SiS_Pr 700 drivers/video/fbdev/sis/sis.h extern int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, SiS_Pr 387 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { SiS_Pr 388 drivers/video/fbdev/sis/sis_main.c biosver = ivideo->SiS_Pr.VirtualRomBase + 0x06; SiS_Pr 389 drivers/video/fbdev/sis/sis_main.c biosdate = ivideo->SiS_Pr.VirtualRomBase + 0x2c; SiS_Pr 391 drivers/video/fbdev/sis/sis_main.c chksum += ivideo->SiS_Pr.VirtualRomBase[i]; SiS_Pr 398 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && SiS_Pr 402 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && SiS_Pr 406 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && SiS_Pr 413 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { SiS_Pr 414 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != SiS_Pr 423 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT = mycustomttable[i].SpecialID; SiS_Pr 554 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, SiS_Pr 570 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, SiS_Pr 629 drivers/video/fbdev/sis/sis_main.c if(sisfb_gettotalfrommode(&ivideo->SiS_Pr, SiS_Pr 671 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL848) && SiS_Pr 672 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL856)) { SiS_Pr 693 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT, xres, yres, ivideo->vbflags2) < 0x14) { SiS_Pr 962 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xbf, cr63); SiS_Pr 977 drivers/video/fbdev/sis/sis_main.c SiS_SiS30xBLOn(&ivideo->SiS_Pr); SiS_Pr 979 drivers/video/fbdev/sis/sis_main.c SiS_SiS30xBLOff(&ivideo->SiS_Pr); SiS_Pr 985 drivers/video/fbdev/sis/sis_main.c SiS_Chrontel701xBLOn(&ivideo->SiS_Pr); SiS_Pr 987 drivers/video/fbdev/sis/sis_main.c SiS_Chrontel701xBLOff(&ivideo->SiS_Pr); SiS_Pr 1027 drivers/video/fbdev/sis/sis_main.c sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg) SiS_Pr 1029 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; SiS_Pr 1037 drivers/video/fbdev/sis/sis_main.c sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, unsigned int val) SiS_Pr 1039 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; SiS_Pr 1045 drivers/video/fbdev/sis/sis_main.c sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg) SiS_Pr 1047 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; SiS_Pr 1059 drivers/video/fbdev/sis/sis_main.c sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, unsigned char val) SiS_Pr 1061 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; SiS_Pr 1067 drivers/video/fbdev/sis/sis_main.c sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg) SiS_Pr 1069 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; SiS_Pr 1203 drivers/video/fbdev/sis/sis_main.c if(!SiSSetMode(&ivideo->SiS_Pr, modeno)) { SiS_Pr 1587 drivers/video/fbdev/sis/sis_main.c var->pixclock = (u32) (1000000000 / sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, SiS_Pr 1590 drivers/video/fbdev/sis/sis_main.c sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, SiS_Pr 1767 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_scalelcd = ivideo->SiS_Pr.UsePanelScaler; SiS_Pr 1768 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_specialtiming = ivideo->SiS_Pr.SiS_CustomT; SiS_Pr 1769 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_haveemi = ivideo->SiS_Pr.HaveEMI ? 1 : 0; SiS_Pr 1770 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_haveemilcd = ivideo->SiS_Pr.HaveEMILCD ? 1 : 0; SiS_Pr 1771 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi30 = ivideo->SiS_Pr.EMI_30; SiS_Pr 1772 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi31 = ivideo->SiS_Pr.EMI_31; SiS_Pr 1773 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi32 = ivideo->SiS_Pr.EMI_32; SiS_Pr 1774 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi33 = ivideo->SiS_Pr.EMI_33; SiS_Pr 2198 drivers/video/fbdev/sis/sis_main.c old = SiS_ReadDDC1Bit(&ivideo->SiS_Pr); SiS_Pr 2200 drivers/video/fbdev/sis/sis_main.c if(old != SiS_ReadDDC1Bit(&ivideo->SiS_Pr)) break; SiS_Pr 2222 drivers/video/fbdev/sis/sis_main.c cr63 = SiS_GetReg(SISCR, ivideo->SiS_Pr.SiS_MyCR63); SiS_Pr 2224 drivers/video/fbdev/sis/sis_main.c SiS_SetRegAND(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF); SiS_Pr 2261 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, SiS_Pr 2276 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF, cr63); SiS_Pr 2293 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PanelSelfDetected = false; SiS_Pr 2307 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.DDCPortMixup) SiS_Pr 2311 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, SiS_Pr 2320 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, SiS_Pr 2370 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PanelSelfDetected = true; SiS_Pr 2384 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1500); SiS_Pr 2394 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1000); SiS_Pr 2461 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); SiS_Pr 2497 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); SiS_Pr 2556 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 1; /* Chrontel 700x */ SiS_Pr 2557 drivers/video/fbdev/sis/sis_main.c SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x9c); /* Set general purpose IO for Chrontel communication */ SiS_Pr 2558 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 1000); SiS_Pr 2559 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); SiS_Pr 2561 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); SiS_Pr 2563 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e, 0x0b); SiS_Pr 2564 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 300); SiS_Pr 2566 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); SiS_Pr 2571 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); SiS_Pr 2574 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e,0x0b); SiS_Pr 2575 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 300); SiS_Pr 2579 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x01); SiS_Pr 2580 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2581 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x00); SiS_Pr 2582 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2583 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x10); SiS_Pr 2587 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2609 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); SiS_Pr 2613 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); SiS_Pr 2617 drivers/video/fbdev/sis/sis_main.c SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x00); SiS_Pr 2623 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 2; /* Chrontel 7019 */ SiS_Pr 2624 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x49); SiS_Pr 2625 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, 0x20); SiS_Pr 2626 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2627 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); SiS_Pr 2629 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); SiS_Pr 2630 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2632 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); SiS_Pr 2633 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); SiS_Pr 2634 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); SiS_Pr 2635 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, temp1); SiS_Pr 2967 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.SiS_CustomT == CUT_BARCO1366) { SiS_Pr 2970 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL848) { SiS_Pr 2973 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL856) { SiS_Pr 2995 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDC == -1) { SiS_Pr 2997 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = ivideo->detectedpdc; SiS_Pr 3002 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDC != -1) && SiS_Pr 3003 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { SiS_Pr 3005 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC); SiS_Pr 3019 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseLCDA = true; SiS_Pr 3046 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDC == -1) { SiS_Pr 3048 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = ivideo->detectedpdc; SiS_Pr 3051 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDCA == -1) { SiS_Pr 3053 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = ivideo->detectedpdca; SiS_Pr 3070 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_30 = SiS_GetReg(SISPART4, 0x30); SiS_Pr 3071 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_31 = SiS_GetReg(SISPART4, 0x31); SiS_Pr 3072 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_32 = SiS_GetReg(SISPART4, 0x32); SiS_Pr 3073 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_33 = SiS_GetReg(SISPART4, 0x33); SiS_Pr 3074 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMI = true; SiS_Pr 3076 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMILCD = true; SiS_Pr 3083 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDC != -1) && SiS_Pr 3084 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { SiS_Pr 3086 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC); SiS_Pr 3088 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDCA != -1) && SiS_Pr 3089 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDCA != ivideo->detectedpdca)) { SiS_Pr 3091 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA); SiS_Pr 3558 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); SiS_Pr 3559 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); SiS_Pr 3640 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, ivideo->sisfb_dstn); SiS_Pr 3641 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, ivideo->sisfb_fstn); SiS_Pr 3676 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = ivideo->sisfb_useoem; SiS_Pr 3724 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0a, (x & 0xff)); SiS_Pr 3725 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((x & 0x0100) >> 7), 0xFD); SiS_Pr 3782 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0b, (y & 0xff)); SiS_Pr 3783 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((y & 0x0100) >> 8), 0xFE); SiS_Pr 3861 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); SiS_Pr 3891 drivers/video/fbdev/sis/sis_main.c ivideo->tvx = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0a); SiS_Pr 3892 drivers/video/fbdev/sis/sis_main.c ivideo->tvx |= (((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x02) >> 1) << 8); SiS_Pr 3893 drivers/video/fbdev/sis/sis_main.c ivideo->tvy = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0b); SiS_Pr 3894 drivers/video/fbdev/sis/sis_main.c ivideo->tvy |= ((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x01) << 8); SiS_Pr 4350 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; SiS_Pr 4355 drivers/video/fbdev/sis/sis_main.c if(!ivideo->SiS_Pr.UseROM) SiS_Pr 4466 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { SiS_Pr 4536 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; SiS_Pr 4537 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); SiS_Pr 4538 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); SiS_Pr 4540 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = 8 << 20; SiS_Pr 4541 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); SiS_Pr 5761 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; SiS_Pr 5762 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); SiS_Pr 5763 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); SiS_Pr 5765 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = 8 << 20; SiS_Pr 5766 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); SiS_Pr 5810 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; SiS_Pr 5811 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); SiS_Pr 5812 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); SiS_Pr 5814 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); SiS_Pr 5877 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipRevision = ivideo->revision_id; SiS_Pr 5947 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UsePanelScaler = sisfb_scalelcd; SiS_Pr 5948 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.CenterScreen = -1; SiS_Pr 5949 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT = sisfb_specialtiming; SiS_Pr 5950 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.LVDSHL = sisfb_lvdshl; SiS_Pr 5952 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_Backup70xx = 0xff; SiS_Pr 5953 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CHOverScan = -1; SiS_Pr 5954 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_ChSW = false; SiS_Pr 5955 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseLCDA = false; SiS_Pr 5956 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMI = false; SiS_Pr 5957 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMILCD = false; SiS_Pr 5958 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.OverruleEMI = false; SiS_Pr 5959 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_SensibleSR11 = false; SiS_Pr 5960 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_MyCR63 = 0x63; SiS_Pr 5961 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = -1; SiS_Pr 5962 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = -1; SiS_Pr 5963 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.DDCPortMixup = false; SiS_Pr 5966 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_MyCR63 = 0x53; SiS_Pr 5968 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_SensibleSR11 = true; SiS_Pr 6017 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipType = ivideo->chip; SiS_Pr 6019 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ivideo = (void *)ivideo; SiS_Pr 6022 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.ChipType == SIS_315PRO) || SiS_Pr 6023 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.ChipType == SIS_315)) { SiS_Pr 6024 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipType = SIS_315H; SiS_Pr 6040 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.RelIO = pci_resource_start(pdev, 2) + 0x30; SiS_Pr 6041 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.IOAddress = ivideo->vga_base = ivideo->SiS_Pr.RelIO; SiS_Pr 6043 drivers/video/fbdev/sis/sis_main.c SiSRegInit(&ivideo->SiS_Pr, ivideo->SiS_Pr.IOAddress); SiS_Pr 6052 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_ChSW = true; SiS_Pr 6100 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VirtualRomBase = NULL; SiS_Pr 6101 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = false; SiS_Pr 6102 drivers/video/fbdev/sis/sis_main.c ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = false; SiS_Pr 6104 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VirtualRomBase = sisfb_find_rom(pdev); SiS_Pr 6105 drivers/video/fbdev/sis/sis_main.c ivideo->bios_abase = ivideo->SiS_Pr.VirtualRomBase; SiS_Pr 6106 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = (bool)(ivideo->SiS_Pr.VirtualRomBase); SiS_Pr 6108 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM ? "" : "not "); SiS_Pr 6109 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.UseROM) && (ivideo->chip >= XGI_20)) { SiS_Pr 6110 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = false; SiS_Pr 6111 drivers/video/fbdev/sis/sis_main.c ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = true; SiS_Pr 6114 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.DDCPortMixup = true; SiS_Pr 6122 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.SiS_CustomT == CUT_NONE) { SiS_Pr 6204 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = sisfb_pdc; SiS_Pr 6209 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = sisfb_pdca & 0x1f; SiS_Pr 6228 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemoryAddress = ivideo->video_vbase; SiS_Pr 6292 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemoryAddress += ivideo->video_offset; SiS_Pr 6293 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = ivideo->sisfb_mem; SiS_Pr 6303 drivers/video/fbdev/sis/sis_main.c ivideo->newrom = SiSDetermineROMLayout661(&ivideo->SiS_Pr); SiS_Pr 6433 drivers/video/fbdev/sis/sis_main.c sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo->mode_no, ivideo->rate_idx)); SiS_Pr 6435 drivers/video/fbdev/sis/sis_main.c if(sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo->mode_no,