Lines Matching refs:sisbios_mode
167 while(sisbios_mode[i++].mode_no[0] != 0) { in sisfb_search_vesamode()
168 if( (sisbios_mode[i-1].vesa_mode_no_1 == vesamode) || in sisfb_search_vesamode()
169 (sisbios_mode[i-1].vesa_mode_no_2 == vesamode) ) { in sisfb_search_vesamode()
171 if(sisbios_mode[i-1].mode_no[1] == 0x50 || in sisfb_search_vesamode()
172 sisbios_mode[i-1].mode_no[1] == 0x56 || in sisfb_search_vesamode()
173 sisbios_mode[i-1].mode_no[1] == 0x53) continue; in sisfb_search_vesamode()
175 if(sisbios_mode[i-1].mode_no[1] == 0x5a || in sisfb_search_vesamode()
176 sisbios_mode[i-1].mode_no[1] == 0x5b) continue; in sisfb_search_vesamode()
205 if(!strnicmp(name, sisbios_mode[MODE_INDEX_NONE].name, strlen(name))) { in sisfb_search_mode()
243 while(sisbios_mode[i].mode_no[0] != 0) { in sisfb_search_mode()
244 if(!strnicmp(nameptr, sisbios_mode[i++].name, strlen(nameptr))) { in sisfb_search_mode()
246 if(sisbios_mode[i-1].mode_no[1] == 0x50 || in sisfb_search_mode()
247 sisbios_mode[i-1].mode_no[1] == 0x56 || in sisfb_search_mode()
248 sisbios_mode[i-1].mode_no[1] == 0x53) continue; in sisfb_search_mode()
250 if(sisbios_mode[i-1].mode_no[1] == 0x5a || in sisfb_search_mode()
251 sisbios_mode[i-1].mode_no[1] == 0x5b) continue; in sisfb_search_mode()
543 sisbios_mode[mode_idx].mode_no[ivideo->mni], in sisfb_verify_rate()
563 if(!(sisbios_mode[myindex].chipset & MD_SIS300)) return(-1); in sisfb_validate_mode()
568 if(!(sisbios_mode[myindex].chipset & MD_SIS315)) return(-1); in sisfb_validate_mode()
572 myres = sisbios_mode[myindex].yres; in sisfb_validate_mode()
581 if(sisbios_mode[myindex].xres > xres) return(-1); in sisfb_validate_mode()
586 if(sisbios_mode[myindex].xres == 320) { in sisfb_validate_mode()
589 if(sisbios_mode[myindex].mode_no[1] == 0x5a || in sisfb_validate_mode()
590 sisbios_mode[myindex].mode_no[1] == 0x5b) in sisfb_validate_mode()
593 if(sisbios_mode[myindex].mode_no[1] == 0x50 || in sisfb_validate_mode()
594 sisbios_mode[myindex].mode_no[1] == 0x56 || in sisfb_validate_mode()
595 sisbios_mode[myindex].mode_no[1] == 0x53) in sisfb_validate_mode()
602 if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
603 sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, in sisfb_validate_mode()
610 if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
611 sisbios_mode[myindex].yres, 0) < 0x14) { in sisfb_validate_mode()
617 if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, in sisfb_validate_mode()
618 sisbios_mode[myindex].yres, 0) < 0x14) { in sisfb_validate_mode()
633 xres = sisbios_mode[mode_idx].xres; in sisfb_search_refresh_rate()
634 yres = sisbios_mode[mode_idx].yres; in sisfb_search_refresh_rate()
1035 while( (sisbios_mode[ivideo->sisfb_mode_idx].mode_no[0] != 0) &&
1036 (sisbios_mode[ivideo->sisfb_mode_idx].xres <= var->xres) ) {
1037 if( (sisbios_mode[ivideo->sisfb_mode_idx].xres == var->xres) &&
1038 (sisbios_mode[ivideo->sisfb_mode_idx].yres == var->yres) &&
1039 (sisbios_mode[ivideo->sisfb_mode_idx].bpp == var->bits_per_pixel)) {
1040 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni];
1062 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx;
1091 ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp;
1092 ivideo->video_vwidth = ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres;
1093 ivideo->video_vheight = ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres;
1549 cols = sisbios_mode[ivideo->sisfb_mode_idx].cols;
1550 rows = sisbios_mode[ivideo->sisfb_mode_idx].rows;
1676 cols = sisbios_mode[ivideo->sisfb_mode_idx].cols;
1677 rows = sisbios_mode[ivideo->sisfb_mode_idx].rows;
1793 while( (sisbios_mode[search_idx].mode_no[0] != 0) &&
1794 (sisbios_mode[search_idx].xres <= var->xres) ) {
1795 if( (sisbios_mode[search_idx].xres == var->xres) &&
1796 (sisbios_mode[search_idx].yres == var->yres) &&
1797 (sisbios_mode[search_idx].bpp == var->bits_per_pixel)) {
1808 while(sisbios_mode[search_idx].mode_no[0] != 0) {
1809 if( (var->xres <= sisbios_mode[search_idx].xres) &&
1810 (var->yres <= sisbios_mode[search_idx].yres) &&
1811 (var->bits_per_pixel == sisbios_mode[search_idx].bpp) ) {
1822 sisbios_mode[search_idx].xres,
1823 sisbios_mode[search_idx].yres,
1825 var->xres = sisbios_mode[search_idx].xres;
1826 var->yres = sisbios_mode[search_idx].yres;
1850 if(ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]]) {
1851 refresh_rate = ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]];
1875 if(!myrateindex) myrateindex = sisbios_mode[search_idx].rate_idx;
1878 sisbios_mode[search_idx].mode_no[ivideo->mni],
1881 sisbios_mode[search_idx].mode_no[ivideo->mni], myrateindex, var);
3428 cr33 |= (sisbios_mode[ivideo->sisfb_mode_idx].rate_idx << 4);
4505 if((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF) {
4623 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) {
4639 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) {
4728 ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) {
4927 sisbios_mode[bu].xres,
4928 sisbios_mode[bu].yres,
4929 sisbios_mode[bu].bpp);
4947 ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni];
4954 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx;
4965 ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp;
4966 ivideo->video_vwidth = ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres;
4967 ivideo->video_vheight = ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres;