Lines Matching refs:viaparinfo

717 		if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266)  in get_dvi_devices()
723 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices()
729 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices()
777 viaparinfo->crt_setting_info->iga_path = IGA1; in viafb_set_iga_path()
779 viaparinfo->crt_setting_info->iga_path = IGA2; in viafb_set_iga_path()
784 viaparinfo->tmds_setting_info->iga_path = IGA1; in viafb_set_iga_path()
786 viaparinfo->tmds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
792 (viaparinfo->chip_info->gfx_chip_name == in viafb_set_iga_path()
794 viaparinfo-> in viafb_set_iga_path()
796 viaparinfo-> in viafb_set_iga_path()
798 viaparinfo-> in viafb_set_iga_path()
801 viaparinfo-> in viafb_set_iga_path()
804 viaparinfo->lvds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
809 viaparinfo->lvds_setting_info2->iga_path = IGA1; in viafb_set_iga_path()
811 viaparinfo->lvds_setting_info2->iga_path = IGA2; in viafb_set_iga_path()
817 viaparinfo->crt_setting_info->iga_path = IGA1; in viafb_set_iga_path()
818 viaparinfo->lvds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
820 viaparinfo->crt_setting_info->iga_path = IGA1; in viafb_set_iga_path()
821 viaparinfo->tmds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
823 viaparinfo->tmds_setting_info->iga_path = IGA1; in viafb_set_iga_path()
824 viaparinfo->lvds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
826 viaparinfo->lvds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
827 viaparinfo->lvds_setting_info2->iga_path = IGA2; in viafb_set_iga_path()
829 viaparinfo->crt_setting_info->iga_path = IGA1; in viafb_set_iga_path()
831 viaparinfo->lvds_setting_info->iga_path = IGA2; in viafb_set_iga_path()
833 viaparinfo->tmds_setting_info->iga_path = IGA1; in viafb_set_iga_path()
837 viaparinfo->shared->iga1_devices = 0; in viafb_set_iga_path()
838 viaparinfo->shared->iga2_devices = 0; in viafb_set_iga_path()
840 if (viaparinfo->crt_setting_info->iga_path == IGA1) in viafb_set_iga_path()
841 viaparinfo->shared->iga1_devices |= VIA_CRT; in viafb_set_iga_path()
843 viaparinfo->shared->iga2_devices |= VIA_CRT; in viafb_set_iga_path()
847 if (viaparinfo->tmds_setting_info->iga_path == IGA1) in viafb_set_iga_path()
848 viaparinfo->shared->iga1_devices |= get_dvi_devices( in viafb_set_iga_path()
849 viaparinfo->chip_info-> in viafb_set_iga_path()
852 viaparinfo->shared->iga2_devices |= get_dvi_devices( in viafb_set_iga_path()
853 viaparinfo->chip_info-> in viafb_set_iga_path()
858 if (viaparinfo->lvds_setting_info->iga_path == IGA1) in viafb_set_iga_path()
859 viaparinfo->shared->iga1_devices |= get_lcd_devices( in viafb_set_iga_path()
860 viaparinfo->chip_info-> in viafb_set_iga_path()
863 viaparinfo->shared->iga2_devices |= get_lcd_devices( in viafb_set_iga_path()
864 viaparinfo->chip_info-> in viafb_set_iga_path()
869 if (viaparinfo->lvds_setting_info2->iga_path == IGA1) in viafb_set_iga_path()
870 viaparinfo->shared->iga1_devices |= get_lcd_devices( in viafb_set_iga_path()
871 viaparinfo->chip_info-> in viafb_set_iga_path()
874 viaparinfo->shared->iga2_devices |= get_lcd_devices( in viafb_set_iga_path()
875 viaparinfo->chip_info-> in viafb_set_iga_path()
1186 if ((viaparinfo->chip_info->gfx_chip_name == UNICHROME_K800) in load_fix_bit_crtc_reg()
1187 || (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K8M890)) in load_fix_bit_crtc_reg()
1189 if ((viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in load_fix_bit_crtc_reg()
1190 && (viaparinfo->chip_info->gfx_chip_revision == CLE266_REVISION_AX)) in load_fix_bit_crtc_reg()
1279 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K800) { in viafb_load_FIFO_reg()
1294 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_PM800) { in viafb_load_FIFO_reg()
1311 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CN700) { in viafb_load_FIFO_reg()
1326 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CX700) { in viafb_load_FIFO_reg()
1335 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K8M890) { in viafb_load_FIFO_reg()
1344 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_P4M890) { in viafb_load_FIFO_reg()
1353 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_P4M900) { in viafb_load_FIFO_reg()
1362 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX800) { in viafb_load_FIFO_reg()
1371 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX855) { in viafb_load_FIFO_reg()
1380 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX900) { in viafb_load_FIFO_reg()
1430 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K800) { in viafb_load_FIFO_reg()
1445 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_PM800) { in viafb_load_FIFO_reg()
1460 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CN700) { in viafb_load_FIFO_reg()
1475 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CX700) { in viafb_load_FIFO_reg()
1484 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K8M890) { in viafb_load_FIFO_reg()
1493 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_P4M890) { in viafb_load_FIFO_reg()
1502 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_P4M900) { in viafb_load_FIFO_reg()
1511 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX800) { in viafb_load_FIFO_reg()
1520 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX855) { in viafb_load_FIFO_reg()
1529 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_VX900) { in viafb_load_FIFO_reg()
1538 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_K800) { in viafb_load_FIFO_reg()
1656 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_get_clk_value()
1695 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_set_vclock()
1722 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_set_vclock()
1922 viaparinfo->chip_info->gfx_chip_name) in viafb_load_crtc_timing()
2056 if ((viaparinfo->chip_info->gfx_chip_name != UNICHROME_CLE266) in viafb_fill_crtc_timing()
2057 && (viaparinfo->chip_info->gfx_chip_name != UNICHROME_K400)) in viafb_fill_crtc_timing()
2074 viaparinfo->crt_setting_info->iga_path = IGA1; in viafb_init_chip_info()
2079 viaparinfo->lvds_setting_info->display_method = viafb_lcd_dsp_method; in viafb_init_chip_info()
2080 viaparinfo->lvds_setting_info->lcd_mode = viafb_lcd_mode; in viafb_init_chip_info()
2081 viaparinfo->lvds_setting_info2->display_method = in viafb_init_chip_info()
2082 viaparinfo->lvds_setting_info->display_method; in viafb_init_chip_info()
2083 viaparinfo->lvds_setting_info2->lcd_mode = in viafb_init_chip_info()
2084 viaparinfo->lvds_setting_info->lcd_mode; in viafb_init_chip_info()
2090 viaparinfo->tmds_setting_info->h_active = hres; in viafb_update_device_setting()
2091 viaparinfo->tmds_setting_info->v_active = vres; in viafb_update_device_setting()
2093 viaparinfo->lvds_setting_info->h_active = hres; in viafb_update_device_setting()
2094 viaparinfo->lvds_setting_info->v_active = vres; in viafb_update_device_setting()
2095 viaparinfo->lvds_setting_info->bpp = bpp; in viafb_update_device_setting()
2096 viaparinfo->lvds_setting_info2->h_active = hres; in viafb_update_device_setting()
2097 viaparinfo->lvds_setting_info2->v_active = vres; in viafb_update_device_setting()
2098 viaparinfo->lvds_setting_info2->bpp = bpp; in viafb_update_device_setting()
2101 if (viaparinfo->tmds_setting_info->iga_path == IGA2) { in viafb_update_device_setting()
2102 viaparinfo->tmds_setting_info->h_active = hres; in viafb_update_device_setting()
2103 viaparinfo->tmds_setting_info->v_active = vres; in viafb_update_device_setting()
2106 if (viaparinfo->lvds_setting_info->iga_path == IGA2) { in viafb_update_device_setting()
2107 viaparinfo->lvds_setting_info->h_active = hres; in viafb_update_device_setting()
2108 viaparinfo->lvds_setting_info->v_active = vres; in viafb_update_device_setting()
2109 viaparinfo->lvds_setting_info->bpp = bpp; in viafb_update_device_setting()
2111 if (IGA2 == viaparinfo->lvds_setting_info2->iga_path) { in viafb_update_device_setting()
2112 viaparinfo->lvds_setting_info2->h_active = hres; in viafb_update_device_setting()
2113 viaparinfo->lvds_setting_info2->v_active = vres; in viafb_update_device_setting()
2114 viaparinfo->lvds_setting_info2->bpp = bpp; in viafb_update_device_setting()
2123 viaparinfo->chip_info->gfx_chip_name = chip_type; in init_gfx_chip_info()
2126 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) { in init_gfx_chip_info()
2131 viaparinfo->chip_info->gfx_chip_revision = in init_gfx_chip_info()
2134 viaparinfo->chip_info->gfx_chip_revision = in init_gfx_chip_info()
2140 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CX700) { in init_gfx_chip_info()
2144 viaparinfo->chip_info->gfx_chip_revision = in init_gfx_chip_info()
2147 viaparinfo->chip_info->gfx_chip_revision = in init_gfx_chip_info()
2150 viaparinfo->chip_info->gfx_chip_revision = in init_gfx_chip_info()
2156 switch (viaparinfo->chip_info->gfx_chip_name) { in init_gfx_chip_info()
2160 viaparinfo->chip_info->twod_engine = VIA_2D_ENG_M1; in init_gfx_chip_info()
2164 viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H5; in init_gfx_chip_info()
2167 viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H2; in init_gfx_chip_info()
2176 if (INTERFACE_NONE == viaparinfo->chip_info->tmds_chip_info. in init_tmds_chip_info()
2178 switch (viaparinfo->chip_info->gfx_chip_name) { in init_tmds_chip_info()
2186 viaparinfo->chip_info->tmds_chip_info. in init_tmds_chip_info()
2189 viaparinfo->chip_info->tmds_chip_info. in init_tmds_chip_info()
2199 viaparinfo->chip_info->tmds_chip_info.output_interface = in init_tmds_chip_info()
2205 viaparinfo->chip_info->tmds_chip_info in init_tmds_chip_info()
2212 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name); in init_tmds_chip_info()
2213 viafb_init_dvi_size(&viaparinfo->shared->chip_info.tmds_chip_info, in init_tmds_chip_info()
2214 &viaparinfo->shared->tmds_setting_info); in init_tmds_chip_info()
2221 viafb_init_lvds_output_interface(&viaparinfo->chip_info->lvds_chip_info, in init_lvds_chip_info()
2222 viaparinfo->lvds_setting_info); in init_lvds_chip_info()
2223 if (viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name) { in init_lvds_chip_info()
2224 viafb_init_lvds_output_interface(&viaparinfo->chip_info-> in init_lvds_chip_info()
2225 lvds_chip_info2, viaparinfo->lvds_setting_info2); in init_lvds_chip_info()
2229 if ((UNICHROME_CX700 == viaparinfo->chip_info->gfx_chip_name) in init_lvds_chip_info()
2231 if ((INTEGRATED_LVDS == viaparinfo->chip_info->lvds_chip_info. in init_lvds_chip_info()
2233 viaparinfo->chip_info-> in init_lvds_chip_info()
2235 viaparinfo->chip_info->lvds_chip_info.output_interface = in init_lvds_chip_info()
2237 viaparinfo->chip_info->lvds_chip_info2. in init_lvds_chip_info()
2244 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name); in init_lvds_chip_info()
2246 viaparinfo->chip_info->lvds_chip_info.output_interface); in init_lvds_chip_info()
2248 viaparinfo->chip_info->lvds_chip_info.output_interface); in init_lvds_chip_info()
2301 viaparinfo->lvds_setting_info2->device_lcd_dualedge) { in set_display_channel()
2313 if (viaparinfo->lvds_setting_info->device_lcd_dualedge) { in set_display_channel()
2340 u32 devices = viaparinfo->shared->iga1_devices in viafb_setmode()
2341 | viaparinfo->shared->iga2_devices; in viafb_setmode()
2357 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_setmode()
2422 if ((viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266 in viafb_setmode()
2423 || viaparinfo->chip_info->gfx_chip_name == UNICHROME_K400) in viafb_setmode()
2438 via_set_primary_color_depth(viaparinfo->depth); in viafb_setmode()
2440 : viaparinfo->depth); in viafb_setmode()
2441 via_set_source(viaparinfo->shared->iga1_devices, IGA1); in viafb_setmode()
2442 via_set_source(viaparinfo->shared->iga2_devices, IGA2); in viafb_setmode()
2443 if (viaparinfo->shared->iga2_devices) in viafb_setmode()
2454 if (viafb_SAMM_ON && (viaparinfo->crt_setting_info->iga_path == in viafb_setmode()
2458 viaparinfo->crt_setting_info->iga_path); in viafb_setmode()
2462 viaparinfo->crt_setting_info->iga_path); in viafb_setmode()
2478 (viaparinfo->tmds_setting_info->iga_path == IGA2)) { in viafb_setmode()
2480 (viaparinfo->tmds_setting_info->h_active, in viafb_setmode()
2481 viaparinfo->tmds_setting_info-> in viafb_setmode()
2483 video_bpp1, viaparinfo-> in viafb_setmode()
2487 (viaparinfo->tmds_setting_info->h_active, in viafb_setmode()
2488 viaparinfo-> in viafb_setmode()
2490 video_bpp, viaparinfo-> in viafb_setmode()
2497 (viaparinfo->lvds_setting_info->iga_path == IGA2)) { in viafb_setmode()
2498 viaparinfo->lvds_setting_info->bpp = video_bpp1; in viafb_setmode()
2499 viafb_lcd_set_mode(crt_timing1, viaparinfo-> in viafb_setmode()
2501 &viaparinfo->chip_info->lvds_chip_info); in viafb_setmode()
2504 if (viaparinfo->lvds_setting_info->iga_path == IGA1) { in viafb_setmode()
2505 viaparinfo->lvds_setting_info->display_method = in viafb_setmode()
2508 viaparinfo->lvds_setting_info->bpp = video_bpp; in viafb_setmode()
2509 viafb_lcd_set_mode(crt_timing, viaparinfo-> in viafb_setmode()
2511 &viaparinfo->chip_info->lvds_chip_info); in viafb_setmode()
2516 (viaparinfo->lvds_setting_info2->iga_path == IGA2)) { in viafb_setmode()
2517 viaparinfo->lvds_setting_info2->bpp = video_bpp1; in viafb_setmode()
2518 viafb_lcd_set_mode(crt_timing1, viaparinfo-> in viafb_setmode()
2520 &viaparinfo->chip_info->lvds_chip_info2); in viafb_setmode()
2523 if (viaparinfo->lvds_setting_info2->iga_path == IGA1) { in viafb_setmode()
2524 viaparinfo->lvds_setting_info2->display_method = in viafb_setmode()
2527 viaparinfo->lvds_setting_info2->bpp = video_bpp; in viafb_setmode()
2528 viafb_lcd_set_mode(crt_timing, viaparinfo-> in viafb_setmode()
2530 &viaparinfo->chip_info->lvds_chip_info2); in viafb_setmode()
2534 if ((viaparinfo->chip_info->gfx_chip_name == UNICHROME_CX700) in viafb_setmode()
2554 via_set_sync_polarity(viaparinfo->shared->iga1_devices, in viafb_setmode()
2556 via_set_sync_polarity(viaparinfo->shared->iga2_devices, in viafb_setmode()