Lines Matching refs:vbflags
76 static int sisfb_validate_mode(struct sis_video_info *ivideo, int modeindex, u32 vbflags);
546 if(ivideo->vbflags & CRT2_LCD) realcrtno = 1; in sisfb_handle_ddc()
547 else if(ivideo->vbflags & CRT2_VGA) realcrtno = 2; in sisfb_handle_ddc()
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()
647 sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) in sisfb_validate_mode() argument
666 switch(vbflags & VB_DISPTYPE_DISP2) { in sisfb_validate_mode()
691 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
699 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
706 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
1765 ivideo->sisfb_infoblock.sisfb_vbflags = ivideo->vbflags; in sisfb_ioctl()
2083 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN))) { in sisfb_detect_VB_connect()
2086 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2088 ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2102 ivideo->vbflags &= ~(CRT2_TV | CRT2_LCD | CRT2_VGA); in sisfb_detect_VB_connect()
2104 if(cr32 & SIS_VB_TV) ivideo->vbflags |= CRT2_TV; in sisfb_detect_VB_connect()
2105 if(cr32 & SIS_VB_LCD) ivideo->vbflags |= CRT2_LCD; in sisfb_detect_VB_connect()
2106 if(cr32 & SIS_VB_CRT2) ivideo->vbflags |= CRT2_VGA; in sisfb_detect_VB_connect()
2148 ivideo->vbflags |= ivideo->sisfb_tvplug; in sisfb_detect_VB_connect()
2150 if(cr32 & SIS_VB_YPBPR) ivideo->vbflags |= (TV_YPBPR|TV_YPBPR525I); /* default: 480i */ in sisfb_detect_VB_connect()
2151 else if(cr32 & SIS_VB_HIVISION) ivideo->vbflags |= TV_HIVISION; in sisfb_detect_VB_connect()
2152 else if(cr32 & SIS_VB_SCART) ivideo->vbflags |= TV_SCART; in sisfb_detect_VB_connect()
2154 if(cr32 & SIS_VB_SVIDEO) ivideo->vbflags |= TV_SVIDEO; in sisfb_detect_VB_connect()
2155 if(cr32 & SIS_VB_COMPOSITE) ivideo->vbflags |= TV_AVIDEO; in sisfb_detect_VB_connect()
2159 if(!(ivideo->vbflags & (TV_YPBPR | TV_HIVISION))) { in sisfb_detect_VB_connect()
2161 ivideo->vbflags &= ~(TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2162 ivideo->vbflags |= ivideo->sisfb_tvstd; in sisfb_detect_VB_connect()
2164 if(ivideo->vbflags & TV_SCART) { in sisfb_detect_VB_connect()
2165 ivideo->vbflags &= ~(TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ); in sisfb_detect_VB_connect()
2166 ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2168 if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ))) { in sisfb_detect_VB_connect()
2171 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2172 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2175 if(temp & 0x01) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2176 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2179 if(temp & 0x20) ivideo->vbflags |= TV_PAL; in sisfb_detect_VB_connect()
2180 else ivideo->vbflags |= TV_NTSC; in sisfb_detect_VB_connect()
2261 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, in sisfb_sense_crt1()
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()
2428 if(ivideo->vbflags & (VB2_301LV|VB2_302LV|VB2_302ELV|VB2_307LV)) { in SiS_Sense30x()
2509 if(!(ivideo->vbflags & TV_YPBPR)) { in SiS_Sense30x()
2600 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2605 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2644 ivideo->vbflags |= TV_AVIDEO; in SiS_SenseCh()
2650 ivideo->vbflags |= TV_SVIDEO; in SiS_SenseCh()
2682 ivideo->vbflags |= VB_301; /* Deprecated */ in sisfb_get_VB_type()
2686 ivideo->vbflags |= VB_301B; /* Deprecated */ in sisfb_get_VB_type()
2690 ivideo->vbflags |= VB_30xBDH; /* Deprecated */ in sisfb_get_VB_type()
2697 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2701 ivideo->vbflags |= VB_301LV; /* Deprecated */ in sisfb_get_VB_type()
2707 ivideo->vbflags |= VB_302LV; /* Deprecated */ in sisfb_get_VB_type()
2711 ivideo->vbflags |= VB_301C; /* Deprecated */ in sisfb_get_VB_type()
2715 ivideo->vbflags |= VB_302ELV; /* Deprecated */ in sisfb_get_VB_type()
2723 ivideo->vbflags |= VB_302B; /* Deprecated */ in sisfb_get_VB_type()
2737 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2741 ivideo->vbflags |= (VB_LVDS | VB_TRUMPION); /* Deprecated */ in sisfb_get_VB_type()
2745 ivideo->vbflags |= VB_CHRONTEL; /* Deprecated */ in sisfb_get_VB_type()
2749 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2759 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2763 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2775 ivideo->vbflags |= VB_LVDS; /* Deprecated */ in sisfb_get_VB_type()
2779 ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ in sisfb_get_VB_type()
2783 ivideo->vbflags |= (VB_LVDS | VB_CONEXANT); /* Deprecated */ in sisfb_get_VB_type()
3566 if((ivideo->vbflags & TV_YPBPR) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { in sisfb_pre_setmode()
3570 if(ivideo->vbflags & TV_YPBPR525P) cr35 |= 0x20; in sisfb_pre_setmode()
3571 else if(ivideo->vbflags & TV_YPBPR750P) cr35 |= 0x40; in sisfb_pre_setmode()
3572 else if(ivideo->vbflags & TV_YPBPR1080I) cr35 |= 0x60; in sisfb_pre_setmode()
3575 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3579 if(ivideo->vbflags & TV_YPBPR525P) cr38 |= 0x10; in sisfb_pre_setmode()
3580 else if(ivideo->vbflags & TV_YPBPR750P) cr38 |= 0x20; in sisfb_pre_setmode()
3581 else if(ivideo->vbflags & TV_YPBPR1080I) cr38 |= 0x30; in sisfb_pre_setmode()
3583 ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); in sisfb_pre_setmode()
3586 } else if((ivideo->vbflags & TV_HIVISION) && in sisfb_pre_setmode()
3598 } else if(ivideo->vbflags & TV_SCART) { in sisfb_pre_setmode()
3604 if(ivideo->vbflags & TV_SVIDEO) { in sisfb_pre_setmode()
3608 if(ivideo->vbflags & TV_AVIDEO) { in sisfb_pre_setmode()
3615 if(ivideo->vbflags & (TV_AVIDEO | TV_SVIDEO)) { in sisfb_pre_setmode()
3616 if(ivideo->vbflags & TV_PAL) { in sisfb_pre_setmode()
3619 if(ivideo->vbflags & TV_PALM) { in sisfb_pre_setmode()
3622 } else if(ivideo->vbflags & TV_PALN) { in sisfb_pre_setmode()
3629 if(ivideo->vbflags & TV_NTSCJ) { in sisfb_pre_setmode()
6294 ivideo->vbflags = 0; in sisfb_probe()
6317 ivideo->currentvbflags = ivideo->vbflags & (VB_VIDEOBRIDGE | TV_STANDARD); in sisfb_probe()
6323 (ivideo->vbflags & CRT2_LCD)) { in sisfb_probe()
6334 if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6336 else if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6338 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6341 if(ivideo->vbflags & CRT2_TV) in sisfb_probe()
6343 else if(ivideo->vbflags & CRT2_LCD) in sisfb_probe()
6345 else if(ivideo->vbflags & CRT2_VGA) in sisfb_probe()
6351 if(ivideo->vbflags & CRT2_LCD) { in sisfb_probe()
6361 (ivideo->vbflags & (CRT2_VGA | CRT2_LCD))) { in sisfb_probe()
6479 printk(KERN_DEBUG "sisfb: Initial vbflags 0x%x\n", (int)ivideo->vbflags); in sisfb_probe()