Lines Matching refs:vbflags
77 static int sisfb_validate_mode(struct sis_video_info *ivideo, int modeindex, u32 vbflags);
547 if(ivideo->vbflags & CRT2_LCD) realcrtno = 1; in sisfb_handle_ddc()
548 else if(ivideo->vbflags & CRT2_VGA) realcrtno = 2; in sisfb_handle_ddc()
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()
648 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
667 switch (vbflags & VB_DISPTYPE_DISP2) { in sisfb_validate_mode()
692 if (SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
700 if (SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
707 if (SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
1766 ivideo->sisfb_infoblock.sisfb_vbflags = ivideo->vbflags; in sisfb_ioctl()
2084 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN))) { in sisfb_detect_VB_connect()
2087 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2089 ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2103 ivideo->vbflags &= ~(CRT2_TV | CRT2_LCD | CRT2_VGA); in sisfb_detect_VB_connect()
2105 if(cr32 & SIS_VB_TV) ivideo->vbflags |= CRT2_TV; in sisfb_detect_VB_connect()
2106 if(cr32 & SIS_VB_LCD) ivideo->vbflags |= CRT2_LCD; in sisfb_detect_VB_connect()
2107 if(cr32 & SIS_VB_CRT2) ivideo->vbflags |= CRT2_VGA; in sisfb_detect_VB_connect()
2149 ivideo->vbflags |= ivideo->sisfb_tvplug; in sisfb_detect_VB_connect()
2151 if(cr32 & SIS_VB_YPBPR) ivideo->vbflags |= (TV_YPBPR|TV_YPBPR525I); /* default: 480i */ in sisfb_detect_VB_connect()
2152 else if(cr32 & SIS_VB_HIVISION) ivideo->vbflags |= TV_HIVISION; in sisfb_detect_VB_connect()
2153 else if(cr32 & SIS_VB_SCART) ivideo->vbflags |= TV_SCART; in sisfb_detect_VB_connect()
2155 if(cr32 & SIS_VB_SVIDEO) ivideo->vbflags |= TV_SVIDEO; in sisfb_detect_VB_connect()
2156 if(cr32 & SIS_VB_COMPOSITE) ivideo->vbflags |= TV_AVIDEO; in sisfb_detect_VB_connect()
2160 if(!(ivideo->vbflags & (TV_YPBPR | TV_HIVISION))) { in sisfb_detect_VB_connect()
2162 ivideo->vbflags &= ~(TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2163 ivideo->vbflags |= ivideo->sisfb_tvstd; in sisfb_detect_VB_connect()
2165 if(ivideo->vbflags & TV_SCART) { in sisfb_detect_VB_connect()
2166 ivideo->vbflags &= ~(TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2167 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2169 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ))) { in sisfb_detect_VB_connect()
2172 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2173 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2176 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2177 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2180 if(temp & 0x20) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2181 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2270 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
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()
2438 if(ivideo->vbflags & (VB2_301LV|VB2_302LV|VB2_302ELV|VB2_307LV)) { in SiS_Sense30x()
2519 if(!(ivideo->vbflags & TV_YPBPR)) { in SiS_Sense30x()
2610 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2615 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2654 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2660 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2692 ivideo->vbflags |= VB_301; /* Deprecated */ in sisfb_get_VB_type()
2696 ivideo->vbflags |= VB_301B; /* Deprecated */ in sisfb_get_VB_type()
2700 ivideo->vbflags |= VB_30xBDH; /* Deprecated */ in sisfb_get_VB_type()
2707 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2711 ivideo->vbflags |= VB_301LV; /* Deprecated */ in sisfb_get_VB_type()
2717 ivideo->vbflags |= VB_302LV; /* Deprecated */ in sisfb_get_VB_type()
2721 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2725 ivideo->vbflags |= VB_302ELV; /* Deprecated */ in sisfb_get_VB_type()
2733 ivideo->vbflags |= VB_302B; /* Deprecated */ in sisfb_get_VB_type()
2747 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2751 ivideo->vbflags |= (VB_LVDS | VB_TRUMPION); /* Deprecated */ in sisfb_get_VB_type()
2755 ivideo->vbflags |= VB_CHRONTEL; /* Deprecated */ in sisfb_get_VB_type()
2759 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2769 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2773 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2785 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2789 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2793 ivideo->vbflags |= (VB_LVDS | VB_CONEXANT); /* Deprecated */ in sisfb_get_VB_type()
3576 if((ivideo->vbflags & TV_YPBPR) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { in sisfb_pre_setmode()
3580 if(ivideo->vbflags & TV_YPBPR525P) cr35 |= 0x20; in sisfb_pre_setmode()
3581 else if(ivideo->vbflags & TV_YPBPR750P) cr35 |= 0x40; in sisfb_pre_setmode()
3582 else if(ivideo->vbflags & TV_YPBPR1080I) cr35 |= 0x60; in sisfb_pre_setmode()
3585 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3589 if(ivideo->vbflags & TV_YPBPR525P) cr38 |= 0x10; in sisfb_pre_setmode()
3590 else if(ivideo->vbflags & TV_YPBPR750P) cr38 |= 0x20; in sisfb_pre_setmode()
3591 else if(ivideo->vbflags & TV_YPBPR1080I) cr38 |= 0x30; in sisfb_pre_setmode()
3593 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3596 } else if((ivideo->vbflags & TV_HIVISION) && in sisfb_pre_setmode()
3608 } else if(ivideo->vbflags & TV_SCART) { in sisfb_pre_setmode()
3614 if(ivideo->vbflags & TV_SVIDEO) { in sisfb_pre_setmode()
3618 if(ivideo->vbflags & TV_AVIDEO) { in sisfb_pre_setmode()
3625 if(ivideo->vbflags & (TV_AVIDEO | TV_SVIDEO)) { in sisfb_pre_setmode()
3626 if(ivideo->vbflags & TV_PAL) { in sisfb_pre_setmode()
3629 if(ivideo->vbflags & TV_PALM) { in sisfb_pre_setmode()
3632 } else if(ivideo->vbflags & TV_PALN) { in sisfb_pre_setmode()
3639 if(ivideo->vbflags & TV_NTSCJ) { in sisfb_pre_setmode()
6307 ivideo->vbflags = 0; in sisfb_probe()
6330 ivideo->currentvbflags = ivideo->vbflags & (VB_VIDEOBRIDGE | TV_STANDARD); in sisfb_probe()
6336 (ivideo->vbflags & CRT2_LCD)) { in sisfb_probe()
6347 if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6349 else if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6351 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6354 if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6356 else if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6358 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6364 if(ivideo->vbflags & CRT2_LCD) { in sisfb_probe()
6374 (ivideo->vbflags & (CRT2_VGA | CRT2_LCD))) { in sisfb_probe()
6492 printk(KERN_DEBUG "sisfb: Initial vbflags 0x%x\n", (int)ivideo->vbflags); in sisfb_probe()