Lines Matching refs:SiS_Pr

357 	if(ivideo->SiS_Pr.UseROM) {  in sisfb_detect_custom_timing()
358 biosver = ivideo->SiS_Pr.VirtualRomBase + 0x06; in sisfb_detect_custom_timing()
359 biosdate = ivideo->SiS_Pr.VirtualRomBase + 0x2c; in sisfb_detect_custom_timing()
361 chksum += ivideo->SiS_Pr.VirtualRomBase[i]; in sisfb_detect_custom_timing()
368 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
372 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
376 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
383 if(ivideo->SiS_Pr.UseROM) { in sisfb_detect_custom_timing()
384 if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != in sisfb_detect_custom_timing()
393 ivideo->SiS_Pr.SiS_CustomT = mycustomttable[i].SpecialID; in sisfb_detect_custom_timing()
525 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
541 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
600 if(sisfb_gettotalfrommode(&ivideo->SiS_Pr, in sisfb_verify_rate()
642 if((ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL848) && in sisfb_validate_mode()
643 (ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL856)) { in sisfb_validate_mode()
664 ivideo->SiS_Pr.SiS_CustomT, xres, yres, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
933 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xbf, cr63); in sisfb_myblank()
948 SiS_SiS30xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
950 SiS_SiS30xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
956 SiS_Chrontel701xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
958 SiS_Chrontel701xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
998 sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_nbridge_pci_dword() argument
1000 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_nbridge_pci_dword()
1008 sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, unsigned int val) in sisfb_write_nbridge_pci_dword() argument
1010 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_dword()
1016 sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_lpc_pci_dword() argument
1018 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_lpc_pci_dword()
1030 sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, unsigned char val) in sisfb_write_nbridge_pci_byte() argument
1032 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_byte()
1038 sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_mio_pci_word() argument
1040 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_mio_pci_word()
1174 if(!SiSSetMode(&ivideo->SiS_Pr, modeno)) { in sisfb_set_mode()
1563 var->pixclock = (u32) (1000000000 / sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, in sisfb_check_var()
1566 sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, in sisfb_check_var()
1751 ivideo->sisfb_infoblock.sisfb_scalelcd = ivideo->SiS_Pr.UsePanelScaler; in sisfb_ioctl()
1752 ivideo->sisfb_infoblock.sisfb_specialtiming = ivideo->SiS_Pr.SiS_CustomT; in sisfb_ioctl()
1753 ivideo->sisfb_infoblock.sisfb_haveemi = ivideo->SiS_Pr.HaveEMI ? 1 : 0; in sisfb_ioctl()
1754 ivideo->sisfb_infoblock.sisfb_haveemilcd = ivideo->SiS_Pr.HaveEMILCD ? 1 : 0; in sisfb_ioctl()
1755 ivideo->sisfb_infoblock.sisfb_emi30 = ivideo->SiS_Pr.EMI_30; in sisfb_ioctl()
1756 ivideo->sisfb_infoblock.sisfb_emi31 = ivideo->SiS_Pr.EMI_31; in sisfb_ioctl()
1757 ivideo->sisfb_infoblock.sisfb_emi32 = ivideo->SiS_Pr.EMI_32; in sisfb_ioctl()
1758 ivideo->sisfb_infoblock.sisfb_emi33 = ivideo->SiS_Pr.EMI_33; in sisfb_ioctl()
2183 old = SiS_ReadDDC1Bit(&ivideo->SiS_Pr); in sisfb_test_DDC1()
2185 if(old != SiS_ReadDDC1Bit(&ivideo->SiS_Pr)) break; in sisfb_test_DDC1()
2208 cr63 = SiS_GetReg(SISCR, ivideo->SiS_Pr.SiS_MyCR63); in sisfb_sense_crt1()
2210 SiS_SetRegAND(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF); in sisfb_sense_crt1()
2247 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
2262 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF, cr63); in sisfb_sense_crt1()
2280 ivideo->SiS_Pr.PanelSelfDetected = false; in SiS_SenseLCD()
2294 if(ivideo->SiS_Pr.DDCPortMixup) in SiS_SenseLCD()
2298 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in SiS_SenseLCD()
2307 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in SiS_SenseLCD()
2357 ivideo->SiS_Pr.PanelSelfDetected = true; in SiS_SenseLCD()
2372 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1500); in SISDoSense()
2382 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1000); in SISDoSense()
2450 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2486 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2546 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 1; /* Chrontel 700x */ in SiS_SenseCh()
2547 …SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x9c); /* Set general purpose IO for Chrontel communication */ in SiS_SenseCh()
2548 SiS_DDC2Delay(&ivideo->SiS_Pr, 1000); in SiS_SenseCh()
2549 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2551 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2553 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e, 0x0b); in SiS_SenseCh()
2554 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2556 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2561 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2564 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e,0x0b); in SiS_SenseCh()
2565 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2569 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x01); in SiS_SenseCh()
2570 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2571 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x00); in SiS_SenseCh()
2572 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2573 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x10); in SiS_SenseCh()
2577 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2599 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2603 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2607 SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x00); in SiS_SenseCh()
2613 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 2; /* Chrontel 7019 */ in SiS_SenseCh()
2614 temp1 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x49); in SiS_SenseCh()
2615 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, 0x20); in SiS_SenseCh()
2616 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2617 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2619 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2620 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2622 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2623 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2624 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2625 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, temp1); in SiS_SenseCh()
2959 if(ivideo->SiS_Pr.SiS_CustomT == CUT_BARCO1366) { in sisfb_detect_lcd_type()
2962 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL848) { in sisfb_detect_lcd_type()
2965 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL856) { in sisfb_detect_lcd_type()
2988 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
2990 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
2995 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
2996 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
2998 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3012 ivideo->SiS_Pr.SiS_UseLCDA = true; in sisfb_save_pdc_emi()
3039 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
3041 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
3044 if(ivideo->SiS_Pr.PDCA == -1) { in sisfb_save_pdc_emi()
3046 ivideo->SiS_Pr.PDCA = ivideo->detectedpdca; in sisfb_save_pdc_emi()
3063 ivideo->SiS_Pr.EMI_30 = SiS_GetReg(SISPART4, 0x30); in sisfb_save_pdc_emi()
3064 ivideo->SiS_Pr.EMI_31 = SiS_GetReg(SISPART4, 0x31); in sisfb_save_pdc_emi()
3065 ivideo->SiS_Pr.EMI_32 = SiS_GetReg(SISPART4, 0x32); in sisfb_save_pdc_emi()
3066 ivideo->SiS_Pr.EMI_33 = SiS_GetReg(SISPART4, 0x33); in sisfb_save_pdc_emi()
3067 ivideo->SiS_Pr.HaveEMI = true; in sisfb_save_pdc_emi()
3069 ivideo->SiS_Pr.HaveEMILCD = true; in sisfb_save_pdc_emi()
3076 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
3077 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
3079 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3081 if((ivideo->SiS_Pr.PDCA != -1) && in sisfb_save_pdc_emi()
3082 (ivideo->SiS_Pr.PDCA != ivideo->detectedpdca)) { in sisfb_save_pdc_emi()
3084 ivideo->SiS_Pr.PDCA); in sisfb_save_pdc_emi()
3554 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3555 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3636 SiS_SetEnableDstn(&ivideo->SiS_Pr, ivideo->sisfb_dstn); in sisfb_pre_setmode()
3637 SiS_SetEnableFstn(&ivideo->SiS_Pr, ivideo->sisfb_fstn); in sisfb_pre_setmode()
3672 ivideo->SiS_Pr.SiS_UseOEM = ivideo->sisfb_useoem; in sisfb_pre_setmode()
3720 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0a, (x & 0xff)); in sisfb_set_TVxposoffset()
3721 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((x & 0x0100) >> 7), 0xFD); in sisfb_set_TVxposoffset()
3778 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0b, (y & 0xff)); in sisfb_set_TVyposoffset()
3779 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((y & 0x0100) >> 8), 0xFE); in sisfb_set_TVyposoffset()
3857 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); in sisfb_post_setmode()
3887 ivideo->tvx = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0a); in sisfb_post_setmode()
3888 ivideo->tvx |= (((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x02) >> 1) << 8); in sisfb_post_setmode()
3889 ivideo->tvy = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0b); in sisfb_post_setmode()
3890 ivideo->tvy |= ((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x01) << 8); in sisfb_post_setmode()
4351 unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; in sisfb_post_sis300()
4356 if(!ivideo->SiS_Pr.UseROM) in sisfb_post_sis300()
4467 if(ivideo->SiS_Pr.UseROM) { in sisfb_post_sis300()
4537 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_sis300()
4538 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4539 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4541 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_sis300()
4542 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_sis300()
5771 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5772 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5773 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5775 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_xgi()
5776 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5820 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5821 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5822 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5824 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5888 ivideo->SiS_Pr.ChipRevision = ivideo->revision_id; in sisfb_probe()
5958 ivideo->SiS_Pr.UsePanelScaler = sisfb_scalelcd; in sisfb_probe()
5959 ivideo->SiS_Pr.CenterScreen = -1; in sisfb_probe()
5960 ivideo->SiS_Pr.SiS_CustomT = sisfb_specialtiming; in sisfb_probe()
5961 ivideo->SiS_Pr.LVDSHL = sisfb_lvdshl; in sisfb_probe()
5963 ivideo->SiS_Pr.SiS_Backup70xx = 0xff; in sisfb_probe()
5964 ivideo->SiS_Pr.SiS_CHOverScan = -1; in sisfb_probe()
5965 ivideo->SiS_Pr.SiS_ChSW = false; in sisfb_probe()
5966 ivideo->SiS_Pr.SiS_UseLCDA = false; in sisfb_probe()
5967 ivideo->SiS_Pr.HaveEMI = false; in sisfb_probe()
5968 ivideo->SiS_Pr.HaveEMILCD = false; in sisfb_probe()
5969 ivideo->SiS_Pr.OverruleEMI = false; in sisfb_probe()
5970 ivideo->SiS_Pr.SiS_SensibleSR11 = false; in sisfb_probe()
5971 ivideo->SiS_Pr.SiS_MyCR63 = 0x63; in sisfb_probe()
5972 ivideo->SiS_Pr.PDC = -1; in sisfb_probe()
5973 ivideo->SiS_Pr.PDCA = -1; in sisfb_probe()
5974 ivideo->SiS_Pr.DDCPortMixup = false; in sisfb_probe()
5977 ivideo->SiS_Pr.SiS_MyCR63 = 0x53; in sisfb_probe()
5979 ivideo->SiS_Pr.SiS_SensibleSR11 = true; in sisfb_probe()
6028 ivideo->SiS_Pr.ChipType = ivideo->chip; in sisfb_probe()
6030 ivideo->SiS_Pr.ivideo = (void *)ivideo; in sisfb_probe()
6033 if((ivideo->SiS_Pr.ChipType == SIS_315PRO) || in sisfb_probe()
6034 (ivideo->SiS_Pr.ChipType == SIS_315)) { in sisfb_probe()
6035 ivideo->SiS_Pr.ChipType = SIS_315H; in sisfb_probe()
6052 ivideo->SiS_Pr.RelIO = pci_resource_start(pdev, 2) + 0x30; in sisfb_probe()
6053 ivideo->SiS_Pr.IOAddress = ivideo->vga_base = ivideo->SiS_Pr.RelIO; in sisfb_probe()
6055 SiSRegInit(&ivideo->SiS_Pr, ivideo->SiS_Pr.IOAddress); in sisfb_probe()
6064 ivideo->SiS_Pr.SiS_ChSW = true; in sisfb_probe()
6112 ivideo->SiS_Pr.VirtualRomBase = NULL; in sisfb_probe()
6113 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6114 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = false; in sisfb_probe()
6116 ivideo->SiS_Pr.VirtualRomBase = sisfb_find_rom(pdev); in sisfb_probe()
6117 ivideo->bios_abase = ivideo->SiS_Pr.VirtualRomBase; in sisfb_probe()
6118 ivideo->SiS_Pr.UseROM = (bool)(ivideo->SiS_Pr.VirtualRomBase); in sisfb_probe()
6120 ivideo->SiS_Pr.UseROM ? "" : "not "); in sisfb_probe()
6121 if((ivideo->SiS_Pr.UseROM) && (ivideo->chip >= XGI_20)) { in sisfb_probe()
6122 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6123 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = true; in sisfb_probe()
6126 ivideo->SiS_Pr.DDCPortMixup = true; in sisfb_probe()
6134 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()
6307 ivideo->SiS_Pr.VideoMemoryAddress += ivideo->video_offset; in sisfb_probe()
6308 ivideo->SiS_Pr.VideoMemorySize = ivideo->sisfb_mem; in sisfb_probe()
6320 ivideo->newrom = SiSDetermineROMLayout661(&ivideo->SiS_Pr); in sisfb_probe()
6450 sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo->mode_no, ivideo->rate_idx)); in sisfb_probe()
6452 if(sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo->mode_no, in sisfb_probe()