Lines Matching refs:vbflags
517 if(ivideo->vbflags & CRT2_LCD) realcrtno = 1; in sisfb_handle_ddc()
518 else if(ivideo->vbflags & CRT2_VGA) realcrtno = 2; in sisfb_handle_ddc()
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()
618 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
637 switch(vbflags & VB_DISPTYPE_DISP2) { in sisfb_validate_mode()
662 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
670 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
677 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
1749 ivideo->sisfb_infoblock.sisfb_vbflags = ivideo->vbflags; in sisfb_ioctl()
2067 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN))) { in sisfb_detect_VB_connect()
2070 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2072 ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2086 ivideo->vbflags &= ~(CRT2_TV | CRT2_LCD | CRT2_VGA); in sisfb_detect_VB_connect()
2088 if(cr32 & SIS_VB_TV) ivideo->vbflags |= CRT2_TV; in sisfb_detect_VB_connect()
2089 if(cr32 & SIS_VB_LCD) ivideo->vbflags |= CRT2_LCD; in sisfb_detect_VB_connect()
2090 if(cr32 & SIS_VB_CRT2) ivideo->vbflags |= CRT2_VGA; in sisfb_detect_VB_connect()
2132 ivideo->vbflags |= ivideo->sisfb_tvplug; in sisfb_detect_VB_connect()
2134 if(cr32 & SIS_VB_YPBPR) ivideo->vbflags |= (TV_YPBPR|TV_YPBPR525I); /* default: 480i */ in sisfb_detect_VB_connect()
2135 else if(cr32 & SIS_VB_HIVISION) ivideo->vbflags |= TV_HIVISION; in sisfb_detect_VB_connect()
2136 else if(cr32 & SIS_VB_SCART) ivideo->vbflags |= TV_SCART; in sisfb_detect_VB_connect()
2138 if(cr32 & SIS_VB_SVIDEO) ivideo->vbflags |= TV_SVIDEO; in sisfb_detect_VB_connect()
2139 if(cr32 & SIS_VB_COMPOSITE) ivideo->vbflags |= TV_AVIDEO; in sisfb_detect_VB_connect()
2143 if(!(ivideo->vbflags & (TV_YPBPR | TV_HIVISION))) { in sisfb_detect_VB_connect()
2145 ivideo->vbflags &= ~(TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2146 ivideo->vbflags |= ivideo->sisfb_tvstd; in sisfb_detect_VB_connect()
2148 if(ivideo->vbflags & TV_SCART) { in sisfb_detect_VB_connect()
2149 ivideo->vbflags &= ~(TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2150 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2152 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ))) { in sisfb_detect_VB_connect()
2155 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2156 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2159 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2160 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2163 if(temp & 0x20) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2164 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2247 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
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()
2417 if(ivideo->vbflags & (VB2_301LV|VB2_302LV|VB2_302ELV|VB2_307LV)) { in SiS_Sense30x()
2498 if(!(ivideo->vbflags & TV_YPBPR)) { in SiS_Sense30x()
2590 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2595 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2634 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2640 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2673 ivideo->vbflags |= VB_301; /* Deprecated */ in sisfb_get_VB_type()
2677 ivideo->vbflags |= VB_301B; /* Deprecated */ in sisfb_get_VB_type()
2681 ivideo->vbflags |= VB_30xBDH; /* Deprecated */ in sisfb_get_VB_type()
2688 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2692 ivideo->vbflags |= VB_301LV; /* Deprecated */ in sisfb_get_VB_type()
2698 ivideo->vbflags |= VB_302LV; /* Deprecated */ in sisfb_get_VB_type()
2702 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2706 ivideo->vbflags |= VB_302ELV; /* Deprecated */ in sisfb_get_VB_type()
2714 ivideo->vbflags |= VB_302B; /* Deprecated */ in sisfb_get_VB_type()
2728 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2732 ivideo->vbflags |= (VB_LVDS | VB_TRUMPION); /* Deprecated */ in sisfb_get_VB_type()
2736 ivideo->vbflags |= VB_CHRONTEL; /* Deprecated */ in sisfb_get_VB_type()
2740 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2750 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2754 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2766 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2770 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2774 ivideo->vbflags |= (VB_LVDS | VB_CONEXANT); /* Deprecated */ in sisfb_get_VB_type()
3562 if((ivideo->vbflags & TV_YPBPR) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { in sisfb_pre_setmode()
3566 if(ivideo->vbflags & TV_YPBPR525P) cr35 |= 0x20; in sisfb_pre_setmode()
3567 else if(ivideo->vbflags & TV_YPBPR750P) cr35 |= 0x40; in sisfb_pre_setmode()
3568 else if(ivideo->vbflags & TV_YPBPR1080I) cr35 |= 0x60; in sisfb_pre_setmode()
3571 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3575 if(ivideo->vbflags & TV_YPBPR525P) cr38 |= 0x10; in sisfb_pre_setmode()
3576 else if(ivideo->vbflags & TV_YPBPR750P) cr38 |= 0x20; in sisfb_pre_setmode()
3577 else if(ivideo->vbflags & TV_YPBPR1080I) cr38 |= 0x30; in sisfb_pre_setmode()
3579 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3582 } else if((ivideo->vbflags & TV_HIVISION) && in sisfb_pre_setmode()
3594 } else if(ivideo->vbflags & TV_SCART) { in sisfb_pre_setmode()
3600 if(ivideo->vbflags & TV_SVIDEO) { in sisfb_pre_setmode()
3604 if(ivideo->vbflags & TV_AVIDEO) { in sisfb_pre_setmode()
3611 if(ivideo->vbflags & (TV_AVIDEO | TV_SVIDEO)) { in sisfb_pre_setmode()
3612 if(ivideo->vbflags & TV_PAL) { in sisfb_pre_setmode()
3615 if(ivideo->vbflags & TV_PALM) { in sisfb_pre_setmode()
3618 } else if(ivideo->vbflags & TV_PALN) { in sisfb_pre_setmode()
3625 if(ivideo->vbflags & TV_NTSCJ) { in sisfb_pre_setmode()
6312 ivideo->vbflags = 0; in sisfb_probe()
6335 ivideo->currentvbflags = ivideo->vbflags & (VB_VIDEOBRIDGE | TV_STANDARD); in sisfb_probe()
6341 (ivideo->vbflags & CRT2_LCD)) { in sisfb_probe()
6352 if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6354 else if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6356 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6359 if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6361 else if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6363 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6369 if(ivideo->vbflags & CRT2_LCD) { in sisfb_probe()
6379 (ivideo->vbflags & (CRT2_VGA | CRT2_LCD))) { in sisfb_probe()
6497 printk(KERN_DEBUG "sisfb: Initial vbflags 0x%x\n", (int)ivideo->vbflags); in sisfb_probe()