Lines Matching refs:SiS_Pr
388 if(ivideo->SiS_Pr.UseROM) { in sisfb_detect_custom_timing()
389 biosver = ivideo->SiS_Pr.VirtualRomBase + 0x06; in sisfb_detect_custom_timing()
390 biosdate = ivideo->SiS_Pr.VirtualRomBase + 0x2c; in sisfb_detect_custom_timing()
392 chksum += ivideo->SiS_Pr.VirtualRomBase[i]; in sisfb_detect_custom_timing()
399 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
403 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
407 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
414 if(ivideo->SiS_Pr.UseROM) { in sisfb_detect_custom_timing()
415 if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != in sisfb_detect_custom_timing()
424 ivideo->SiS_Pr.SiS_CustomT = mycustomttable[i].SpecialID; in sisfb_detect_custom_timing()
555 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
571 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
630 if(sisfb_gettotalfrommode(&ivideo->SiS_Pr, in sisfb_verify_rate()
672 if ((ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL848) && in sisfb_validate_mode()
673 (ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL856)) { in sisfb_validate_mode()
694 ivideo->SiS_Pr.SiS_CustomT, xres, yres, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
963 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xbf, cr63); in sisfb_myblank()
978 SiS_SiS30xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
980 SiS_SiS30xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
986 SiS_Chrontel701xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
988 SiS_Chrontel701xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
1028 sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_nbridge_pci_dword() argument
1030 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_nbridge_pci_dword()
1038 sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, unsigned int val) in sisfb_write_nbridge_pci_dword() argument
1040 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_dword()
1046 sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_lpc_pci_dword() argument
1048 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_lpc_pci_dword()
1060 sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, unsigned char val) in sisfb_write_nbridge_pci_byte() argument
1062 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_byte()
1068 sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_mio_pci_word() argument
1070 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_mio_pci_word()
1204 if(!SiSSetMode(&ivideo->SiS_Pr, modeno)) { in sisfb_set_mode()
1588 var->pixclock = (u32) (1000000000 / sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, in sisfb_check_var()
1591 sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, in sisfb_check_var()
1768 ivideo->sisfb_infoblock.sisfb_scalelcd = ivideo->SiS_Pr.UsePanelScaler; in sisfb_ioctl()
1769 ivideo->sisfb_infoblock.sisfb_specialtiming = ivideo->SiS_Pr.SiS_CustomT; in sisfb_ioctl()
1770 ivideo->sisfb_infoblock.sisfb_haveemi = ivideo->SiS_Pr.HaveEMI ? 1 : 0; in sisfb_ioctl()
1771 ivideo->sisfb_infoblock.sisfb_haveemilcd = ivideo->SiS_Pr.HaveEMILCD ? 1 : 0; in sisfb_ioctl()
1772 ivideo->sisfb_infoblock.sisfb_emi30 = ivideo->SiS_Pr.EMI_30; in sisfb_ioctl()
1773 ivideo->sisfb_infoblock.sisfb_emi31 = ivideo->SiS_Pr.EMI_31; in sisfb_ioctl()
1774 ivideo->sisfb_infoblock.sisfb_emi32 = ivideo->SiS_Pr.EMI_32; in sisfb_ioctl()
1775 ivideo->sisfb_infoblock.sisfb_emi33 = ivideo->SiS_Pr.EMI_33; in sisfb_ioctl()
2199 old = SiS_ReadDDC1Bit(&ivideo->SiS_Pr); in sisfb_test_DDC1()
2201 if(old != SiS_ReadDDC1Bit(&ivideo->SiS_Pr)) break; in sisfb_test_DDC1()
2225 cr63 = SiS_GetReg(SISCR, ivideo->SiS_Pr.SiS_MyCR63); in sisfb_sense_crt1()
2227 SiS_SetRegAND(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF); in sisfb_sense_crt1()
2270 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
2285 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF, cr63); in sisfb_sense_crt1()
2300 ivideo->SiS_Pr.PanelSelfDetected = false; in SiS_SenseLCD()
2314 if (ivideo->SiS_Pr.DDCPortMixup) in SiS_SenseLCD()
2318 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in SiS_SenseLCD()
2327 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in SiS_SenseLCD()
2377 ivideo->SiS_Pr.PanelSelfDetected = true; in SiS_SenseLCD()
2391 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1500); in SISDoSense()
2402 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1000); in SISDoSense()
2471 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2507 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2566 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 1; /* Chrontel 700x */ in SiS_SenseCh()
2567 …SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x9c); /* Set general purpose IO for Chrontel communication */ in SiS_SenseCh()
2568 SiS_DDC2Delay(&ivideo->SiS_Pr, 1000); in SiS_SenseCh()
2569 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2571 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2573 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e, 0x0b); in SiS_SenseCh()
2574 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2576 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2581 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2584 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e,0x0b); in SiS_SenseCh()
2585 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2589 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x01); in SiS_SenseCh()
2590 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2591 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x00); in SiS_SenseCh()
2592 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2593 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x10); in SiS_SenseCh()
2597 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2619 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2623 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2627 SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x00); in SiS_SenseCh()
2633 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 2; /* Chrontel 7019 */ in SiS_SenseCh()
2634 temp1 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x49); in SiS_SenseCh()
2635 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, 0x20); in SiS_SenseCh()
2636 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2637 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2639 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2640 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2642 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2643 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2644 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2645 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, temp1); in SiS_SenseCh()
2977 if(ivideo->SiS_Pr.SiS_CustomT == CUT_BARCO1366) { in sisfb_detect_lcd_type()
2980 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL848) { in sisfb_detect_lcd_type()
2983 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL856) { in sisfb_detect_lcd_type()
3005 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
3007 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
3012 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
3013 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
3015 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3029 ivideo->SiS_Pr.SiS_UseLCDA = true; in sisfb_save_pdc_emi()
3056 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
3058 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
3061 if(ivideo->SiS_Pr.PDCA == -1) { in sisfb_save_pdc_emi()
3063 ivideo->SiS_Pr.PDCA = ivideo->detectedpdca; in sisfb_save_pdc_emi()
3080 ivideo->SiS_Pr.EMI_30 = SiS_GetReg(SISPART4, 0x30); in sisfb_save_pdc_emi()
3081 ivideo->SiS_Pr.EMI_31 = SiS_GetReg(SISPART4, 0x31); in sisfb_save_pdc_emi()
3082 ivideo->SiS_Pr.EMI_32 = SiS_GetReg(SISPART4, 0x32); in sisfb_save_pdc_emi()
3083 ivideo->SiS_Pr.EMI_33 = SiS_GetReg(SISPART4, 0x33); in sisfb_save_pdc_emi()
3084 ivideo->SiS_Pr.HaveEMI = true; in sisfb_save_pdc_emi()
3086 ivideo->SiS_Pr.HaveEMILCD = true; in sisfb_save_pdc_emi()
3093 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
3094 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
3096 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3098 if((ivideo->SiS_Pr.PDCA != -1) && in sisfb_save_pdc_emi()
3099 (ivideo->SiS_Pr.PDCA != ivideo->detectedpdca)) { in sisfb_save_pdc_emi()
3101 ivideo->SiS_Pr.PDCA); in sisfb_save_pdc_emi()
3568 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3569 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3650 SiS_SetEnableDstn(&ivideo->SiS_Pr, ivideo->sisfb_dstn); in sisfb_pre_setmode()
3651 SiS_SetEnableFstn(&ivideo->SiS_Pr, ivideo->sisfb_fstn); in sisfb_pre_setmode()
3686 ivideo->SiS_Pr.SiS_UseOEM = ivideo->sisfb_useoem; in sisfb_pre_setmode()
3734 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0a, (x & 0xff)); in sisfb_set_TVxposoffset()
3735 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((x & 0x0100) >> 7), 0xFD); in sisfb_set_TVxposoffset()
3792 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0b, (y & 0xff)); in sisfb_set_TVyposoffset()
3793 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((y & 0x0100) >> 8), 0xFE); in sisfb_set_TVyposoffset()
3871 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); in sisfb_post_setmode()
3901 ivideo->tvx = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0a); in sisfb_post_setmode()
3902 ivideo->tvx |= (((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x02) >> 1) << 8); in sisfb_post_setmode()
3903 ivideo->tvy = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0b); in sisfb_post_setmode()
3904 ivideo->tvy |= ((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x01) << 8); in sisfb_post_setmode()
4363 unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; in sisfb_post_sis300()
4368 if(!ivideo->SiS_Pr.UseROM) in sisfb_post_sis300()
4479 if (ivideo->SiS_Pr.UseROM && bios) { in sisfb_post_sis300()
4549 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_sis300()
4550 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4551 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4553 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_sis300()
4554 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_sis300()
5773 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5774 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5775 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5777 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_xgi()
5778 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5822 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5823 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5824 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5826 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5893 ivideo->SiS_Pr.ChipRevision = ivideo->revision_id; in sisfb_probe()
5963 ivideo->SiS_Pr.UsePanelScaler = sisfb_scalelcd; in sisfb_probe()
5964 ivideo->SiS_Pr.CenterScreen = -1; in sisfb_probe()
5965 ivideo->SiS_Pr.SiS_CustomT = sisfb_specialtiming; in sisfb_probe()
5966 ivideo->SiS_Pr.LVDSHL = sisfb_lvdshl; in sisfb_probe()
5968 ivideo->SiS_Pr.SiS_Backup70xx = 0xff; in sisfb_probe()
5969 ivideo->SiS_Pr.SiS_CHOverScan = -1; in sisfb_probe()
5970 ivideo->SiS_Pr.SiS_ChSW = false; in sisfb_probe()
5971 ivideo->SiS_Pr.SiS_UseLCDA = false; in sisfb_probe()
5972 ivideo->SiS_Pr.HaveEMI = false; in sisfb_probe()
5973 ivideo->SiS_Pr.HaveEMILCD = false; in sisfb_probe()
5974 ivideo->SiS_Pr.OverruleEMI = false; in sisfb_probe()
5975 ivideo->SiS_Pr.SiS_SensibleSR11 = false; in sisfb_probe()
5976 ivideo->SiS_Pr.SiS_MyCR63 = 0x63; in sisfb_probe()
5977 ivideo->SiS_Pr.PDC = -1; in sisfb_probe()
5978 ivideo->SiS_Pr.PDCA = -1; in sisfb_probe()
5979 ivideo->SiS_Pr.DDCPortMixup = false; in sisfb_probe()
5982 ivideo->SiS_Pr.SiS_MyCR63 = 0x53; in sisfb_probe()
5984 ivideo->SiS_Pr.SiS_SensibleSR11 = true; in sisfb_probe()
6033 ivideo->SiS_Pr.ChipType = ivideo->chip; in sisfb_probe()
6035 ivideo->SiS_Pr.ivideo = (void *)ivideo; in sisfb_probe()
6038 if((ivideo->SiS_Pr.ChipType == SIS_315PRO) || in sisfb_probe()
6039 (ivideo->SiS_Pr.ChipType == SIS_315)) { in sisfb_probe()
6040 ivideo->SiS_Pr.ChipType = SIS_315H; in sisfb_probe()
6056 ivideo->SiS_Pr.RelIO = pci_resource_start(pdev, 2) + 0x30; in sisfb_probe()
6057 ivideo->SiS_Pr.IOAddress = ivideo->vga_base = ivideo->SiS_Pr.RelIO; in sisfb_probe()
6059 SiSRegInit(&ivideo->SiS_Pr, ivideo->SiS_Pr.IOAddress); in sisfb_probe()
6068 ivideo->SiS_Pr.SiS_ChSW = true; in sisfb_probe()
6116 ivideo->SiS_Pr.VirtualRomBase = NULL; in sisfb_probe()
6117 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6118 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = false; in sisfb_probe()
6120 ivideo->SiS_Pr.VirtualRomBase = sisfb_find_rom(pdev); in sisfb_probe()
6121 ivideo->bios_abase = ivideo->SiS_Pr.VirtualRomBase; in sisfb_probe()
6122 ivideo->SiS_Pr.UseROM = (bool)(ivideo->SiS_Pr.VirtualRomBase); in sisfb_probe()
6124 ivideo->SiS_Pr.UseROM ? "" : "not "); in sisfb_probe()
6125 if((ivideo->SiS_Pr.UseROM) && (ivideo->chip >= XGI_20)) { in sisfb_probe()
6126 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6127 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = true; in sisfb_probe()
6130 ivideo->SiS_Pr.DDCPortMixup = true; in sisfb_probe()
6138 if(ivideo->SiS_Pr.SiS_CustomT == CUT_NONE) { in sisfb_probe()
6216 ivideo->SiS_Pr.PDC = sisfb_pdc; in sisfb_probe()
6221 ivideo->SiS_Pr.PDCA = sisfb_pdca & 0x1f; in sisfb_probe()
6240 ivideo->SiS_Pr.VideoMemoryAddress = ivideo->video_vbase; in sisfb_probe()
6304 ivideo->SiS_Pr.VideoMemoryAddress += ivideo->video_offset; in sisfb_probe()
6305 ivideo->SiS_Pr.VideoMemorySize = ivideo->sisfb_mem; in sisfb_probe()
6315 ivideo->newrom = SiSDetermineROMLayout661(&ivideo->SiS_Pr); in sisfb_probe()
6445 sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo->mode_no, ivideo->rate_idx)); in sisfb_probe()
6447 if(sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo->mode_no, in sisfb_probe()