Lines Matching refs:SiS_Pr
387 if(ivideo->SiS_Pr.UseROM) { in sisfb_detect_custom_timing()
388 biosver = ivideo->SiS_Pr.VirtualRomBase + 0x06; in sisfb_detect_custom_timing()
389 biosdate = ivideo->SiS_Pr.VirtualRomBase + 0x2c; in sisfb_detect_custom_timing()
391 chksum += ivideo->SiS_Pr.VirtualRomBase[i]; in sisfb_detect_custom_timing()
398 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
402 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
406 (ivideo->SiS_Pr.UseROM && in sisfb_detect_custom_timing()
413 if(ivideo->SiS_Pr.UseROM) { in sisfb_detect_custom_timing()
414 if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != in sisfb_detect_custom_timing()
423 ivideo->SiS_Pr.SiS_CustomT = mycustomttable[i].SpecialID; in sisfb_detect_custom_timing()
554 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
570 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in sisfb_handle_ddc()
629 if(sisfb_gettotalfrommode(&ivideo->SiS_Pr, in sisfb_verify_rate()
671 if((ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL848) && in sisfb_validate_mode()
672 (ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL856)) { in sisfb_validate_mode()
693 ivideo->SiS_Pr.SiS_CustomT, xres, yres, ivideo->vbflags2) < 0x14) { in sisfb_validate_mode()
962 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xbf, cr63); in sisfb_myblank()
977 SiS_SiS30xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
979 SiS_SiS30xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
985 SiS_Chrontel701xBLOn(&ivideo->SiS_Pr); in sisfb_myblank()
987 SiS_Chrontel701xBLOff(&ivideo->SiS_Pr); in sisfb_myblank()
1027 sisfb_read_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_nbridge_pci_dword() argument
1029 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_nbridge_pci_dword()
1037 sisfb_write_nbridge_pci_dword(struct SiS_Private *SiS_Pr, int reg, unsigned int val) in sisfb_write_nbridge_pci_dword() argument
1039 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_dword()
1045 sisfb_read_lpc_pci_dword(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_lpc_pci_dword() argument
1047 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_lpc_pci_dword()
1059 sisfb_write_nbridge_pci_byte(struct SiS_Private *SiS_Pr, int reg, unsigned char val) in sisfb_write_nbridge_pci_byte() argument
1061 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_write_nbridge_pci_byte()
1067 sisfb_read_mio_pci_word(struct SiS_Private *SiS_Pr, int reg) in sisfb_read_mio_pci_word() argument
1069 struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; in sisfb_read_mio_pci_word()
1203 if(!SiSSetMode(&ivideo->SiS_Pr, modeno)) { in sisfb_set_mode()
1587 var->pixclock = (u32) (1000000000 / sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, in sisfb_check_var()
1590 sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, in sisfb_check_var()
1767 ivideo->sisfb_infoblock.sisfb_scalelcd = ivideo->SiS_Pr.UsePanelScaler; in sisfb_ioctl()
1768 ivideo->sisfb_infoblock.sisfb_specialtiming = ivideo->SiS_Pr.SiS_CustomT; in sisfb_ioctl()
1769 ivideo->sisfb_infoblock.sisfb_haveemi = ivideo->SiS_Pr.HaveEMI ? 1 : 0; in sisfb_ioctl()
1770 ivideo->sisfb_infoblock.sisfb_haveemilcd = ivideo->SiS_Pr.HaveEMILCD ? 1 : 0; in sisfb_ioctl()
1771 ivideo->sisfb_infoblock.sisfb_emi30 = ivideo->SiS_Pr.EMI_30; in sisfb_ioctl()
1772 ivideo->sisfb_infoblock.sisfb_emi31 = ivideo->SiS_Pr.EMI_31; in sisfb_ioctl()
1773 ivideo->sisfb_infoblock.sisfb_emi32 = ivideo->SiS_Pr.EMI_32; in sisfb_ioctl()
1774 ivideo->sisfb_infoblock.sisfb_emi33 = ivideo->SiS_Pr.EMI_33; in sisfb_ioctl()
2198 old = SiS_ReadDDC1Bit(&ivideo->SiS_Pr); in sisfb_test_DDC1()
2200 if(old != SiS_ReadDDC1Bit(&ivideo->SiS_Pr)) break; in sisfb_test_DDC1()
2222 cr63 = SiS_GetReg(SISCR, ivideo->SiS_Pr.SiS_MyCR63); in sisfb_sense_crt1()
2224 SiS_SetRegAND(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF); in sisfb_sense_crt1()
2261 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
2276 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF, cr63); in sisfb_sense_crt1()
2293 ivideo->SiS_Pr.PanelSelfDetected = false; in SiS_SenseLCD()
2307 if(ivideo->SiS_Pr.DDCPortMixup) in SiS_SenseLCD()
2311 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, in SiS_SenseLCD()
2320 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in SiS_SenseLCD()
2370 ivideo->SiS_Pr.PanelSelfDetected = true; in SiS_SenseLCD()
2384 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1500); in SISDoSense()
2394 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1000); in SISDoSense()
2461 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2497 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); in SiS_Sense30x()
2556 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 1; /* Chrontel 700x */ in SiS_SenseCh()
2557 …SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x9c); /* Set general purpose IO for Chrontel communication */ in SiS_SenseCh()
2558 SiS_DDC2Delay(&ivideo->SiS_Pr, 1000); in SiS_SenseCh()
2559 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2561 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2563 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e, 0x0b); in SiS_SenseCh()
2564 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2566 temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); in SiS_SenseCh()
2571 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); in SiS_SenseCh()
2574 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e,0x0b); in SiS_SenseCh()
2575 SiS_DDC2Delay(&ivideo->SiS_Pr, 300); in SiS_SenseCh()
2579 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x01); in SiS_SenseCh()
2580 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2581 SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x00); in SiS_SenseCh()
2582 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2583 temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x10); in SiS_SenseCh()
2587 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2609 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2613 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); in SiS_SenseCh()
2617 SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x00); in SiS_SenseCh()
2623 ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 2; /* Chrontel 7019 */ in SiS_SenseCh()
2624 temp1 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x49); in SiS_SenseCh()
2625 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, 0x20); in SiS_SenseCh()
2626 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2627 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2629 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2630 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2632 SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); in SiS_SenseCh()
2633 SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); in SiS_SenseCh()
2634 temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); in SiS_SenseCh()
2635 SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, temp1); in SiS_SenseCh()
2967 if(ivideo->SiS_Pr.SiS_CustomT == CUT_BARCO1366) { in sisfb_detect_lcd_type()
2970 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL848) { in sisfb_detect_lcd_type()
2973 } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL856) { in sisfb_detect_lcd_type()
2995 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
2997 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
3002 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
3003 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
3005 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3019 ivideo->SiS_Pr.SiS_UseLCDA = true; in sisfb_save_pdc_emi()
3046 if(ivideo->SiS_Pr.PDC == -1) { in sisfb_save_pdc_emi()
3048 ivideo->SiS_Pr.PDC = ivideo->detectedpdc; in sisfb_save_pdc_emi()
3051 if(ivideo->SiS_Pr.PDCA == -1) { in sisfb_save_pdc_emi()
3053 ivideo->SiS_Pr.PDCA = ivideo->detectedpdca; in sisfb_save_pdc_emi()
3070 ivideo->SiS_Pr.EMI_30 = SiS_GetReg(SISPART4, 0x30); in sisfb_save_pdc_emi()
3071 ivideo->SiS_Pr.EMI_31 = SiS_GetReg(SISPART4, 0x31); in sisfb_save_pdc_emi()
3072 ivideo->SiS_Pr.EMI_32 = SiS_GetReg(SISPART4, 0x32); in sisfb_save_pdc_emi()
3073 ivideo->SiS_Pr.EMI_33 = SiS_GetReg(SISPART4, 0x33); in sisfb_save_pdc_emi()
3074 ivideo->SiS_Pr.HaveEMI = true; in sisfb_save_pdc_emi()
3076 ivideo->SiS_Pr.HaveEMILCD = true; in sisfb_save_pdc_emi()
3083 if((ivideo->SiS_Pr.PDC != -1) && in sisfb_save_pdc_emi()
3084 (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { in sisfb_save_pdc_emi()
3086 ivideo->SiS_Pr.PDC); in sisfb_save_pdc_emi()
3088 if((ivideo->SiS_Pr.PDCA != -1) && in sisfb_save_pdc_emi()
3089 (ivideo->SiS_Pr.PDCA != ivideo->detectedpdca)) { in sisfb_save_pdc_emi()
3091 ivideo->SiS_Pr.PDCA); in sisfb_save_pdc_emi()
3558 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3559 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_pre_setmode()
3640 SiS_SetEnableDstn(&ivideo->SiS_Pr, ivideo->sisfb_dstn); in sisfb_pre_setmode()
3641 SiS_SetEnableFstn(&ivideo->SiS_Pr, ivideo->sisfb_fstn); in sisfb_pre_setmode()
3676 ivideo->SiS_Pr.SiS_UseOEM = ivideo->sisfb_useoem; in sisfb_pre_setmode()
3724 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0a, (x & 0xff)); in sisfb_set_TVxposoffset()
3725 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((x & 0x0100) >> 7), 0xFD); in sisfb_set_TVxposoffset()
3782 SiS_SetCH700x(&ivideo->SiS_Pr, 0x0b, (y & 0xff)); in sisfb_set_TVyposoffset()
3783 SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((y & 0x0100) >> 8), 0xFE); in sisfb_set_TVyposoffset()
3861 SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); in sisfb_post_setmode()
3891 ivideo->tvx = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0a); in sisfb_post_setmode()
3892 ivideo->tvx |= (((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x02) >> 1) << 8); in sisfb_post_setmode()
3893 ivideo->tvy = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0b); in sisfb_post_setmode()
3894 ivideo->tvy |= ((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x01) << 8); in sisfb_post_setmode()
4350 unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; in sisfb_post_sis300()
4355 if(!ivideo->SiS_Pr.UseROM) in sisfb_post_sis300()
4466 if (ivideo->SiS_Pr.UseROM && bios) { in sisfb_post_sis300()
4536 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_sis300()
4537 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4538 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_sis300()
4540 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_sis300()
4541 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_sis300()
5760 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5761 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5762 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5764 ivideo->SiS_Pr.VideoMemorySize = 8 << 20; in sisfb_post_xgi()
5765 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5809 ivideo->SiS_Pr.SiS_UseOEM = false; in sisfb_post_xgi()
5810 SiS_SetEnableDstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5811 SiS_SetEnableFstn(&ivideo->SiS_Pr, false); in sisfb_post_xgi()
5813 SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); in sisfb_post_xgi()
5876 ivideo->SiS_Pr.ChipRevision = ivideo->revision_id; in sisfb_probe()
5946 ivideo->SiS_Pr.UsePanelScaler = sisfb_scalelcd; in sisfb_probe()
5947 ivideo->SiS_Pr.CenterScreen = -1; in sisfb_probe()
5948 ivideo->SiS_Pr.SiS_CustomT = sisfb_specialtiming; in sisfb_probe()
5949 ivideo->SiS_Pr.LVDSHL = sisfb_lvdshl; in sisfb_probe()
5951 ivideo->SiS_Pr.SiS_Backup70xx = 0xff; in sisfb_probe()
5952 ivideo->SiS_Pr.SiS_CHOverScan = -1; in sisfb_probe()
5953 ivideo->SiS_Pr.SiS_ChSW = false; in sisfb_probe()
5954 ivideo->SiS_Pr.SiS_UseLCDA = false; in sisfb_probe()
5955 ivideo->SiS_Pr.HaveEMI = false; in sisfb_probe()
5956 ivideo->SiS_Pr.HaveEMILCD = false; in sisfb_probe()
5957 ivideo->SiS_Pr.OverruleEMI = false; in sisfb_probe()
5958 ivideo->SiS_Pr.SiS_SensibleSR11 = false; in sisfb_probe()
5959 ivideo->SiS_Pr.SiS_MyCR63 = 0x63; in sisfb_probe()
5960 ivideo->SiS_Pr.PDC = -1; in sisfb_probe()
5961 ivideo->SiS_Pr.PDCA = -1; in sisfb_probe()
5962 ivideo->SiS_Pr.DDCPortMixup = false; in sisfb_probe()
5965 ivideo->SiS_Pr.SiS_MyCR63 = 0x53; in sisfb_probe()
5967 ivideo->SiS_Pr.SiS_SensibleSR11 = true; in sisfb_probe()
6016 ivideo->SiS_Pr.ChipType = ivideo->chip; in sisfb_probe()
6018 ivideo->SiS_Pr.ivideo = (void *)ivideo; in sisfb_probe()
6021 if((ivideo->SiS_Pr.ChipType == SIS_315PRO) || in sisfb_probe()
6022 (ivideo->SiS_Pr.ChipType == SIS_315)) { in sisfb_probe()
6023 ivideo->SiS_Pr.ChipType = SIS_315H; in sisfb_probe()
6039 ivideo->SiS_Pr.RelIO = pci_resource_start(pdev, 2) + 0x30; in sisfb_probe()
6040 ivideo->SiS_Pr.IOAddress = ivideo->vga_base = ivideo->SiS_Pr.RelIO; in sisfb_probe()
6042 SiSRegInit(&ivideo->SiS_Pr, ivideo->SiS_Pr.IOAddress); in sisfb_probe()
6051 ivideo->SiS_Pr.SiS_ChSW = true; in sisfb_probe()
6099 ivideo->SiS_Pr.VirtualRomBase = NULL; in sisfb_probe()
6100 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6101 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = false; in sisfb_probe()
6103 ivideo->SiS_Pr.VirtualRomBase = sisfb_find_rom(pdev); in sisfb_probe()
6104 ivideo->bios_abase = ivideo->SiS_Pr.VirtualRomBase; in sisfb_probe()
6105 ivideo->SiS_Pr.UseROM = (bool)(ivideo->SiS_Pr.VirtualRomBase); in sisfb_probe()
6107 ivideo->SiS_Pr.UseROM ? "" : "not "); in sisfb_probe()
6108 if((ivideo->SiS_Pr.UseROM) && (ivideo->chip >= XGI_20)) { in sisfb_probe()
6109 ivideo->SiS_Pr.UseROM = false; in sisfb_probe()
6110 ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = true; in sisfb_probe()
6113 ivideo->SiS_Pr.DDCPortMixup = true; in sisfb_probe()
6121 if(ivideo->SiS_Pr.SiS_CustomT == CUT_NONE) { in sisfb_probe()
6203 ivideo->SiS_Pr.PDC = sisfb_pdc; in sisfb_probe()
6208 ivideo->SiS_Pr.PDCA = sisfb_pdca & 0x1f; in sisfb_probe()
6227 ivideo->SiS_Pr.VideoMemoryAddress = ivideo->video_vbase; in sisfb_probe()
6291 ivideo->SiS_Pr.VideoMemoryAddress += ivideo->video_offset; in sisfb_probe()
6292 ivideo->SiS_Pr.VideoMemorySize = ivideo->sisfb_mem; in sisfb_probe()
6302 ivideo->newrom = SiSDetermineROMLayout661(&ivideo->SiS_Pr); in sisfb_probe()
6432 sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo->mode_no, ivideo->rate_idx)); in sisfb_probe()
6434 if(sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo->mode_no, in sisfb_probe()