summaryrefslogtreecommitdiffstats
path: root/drivers/video/via/hw.h
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat2011-10-19 22:32:50 +0200
committerFlorian Tobias Schandinat2012-02-10 20:28:39 +0100
commit532f9169db21fbffd07cc44075c7ea1859c07806 (patch)
tree2d8a5eb0e44592f1ee91da056d86acff9085de30 /drivers/video/via/hw.h
parentviafb: fill xres and yres (diff)
downloadkernel-qcow2-linux-532f9169db21fbffd07cc44075c7ea1859c07806.tar.gz
kernel-qcow2-linux-532f9169db21fbffd07cc44075c7ea1859c07806.tar.xz
kernel-qcow2-linux-532f9169db21fbffd07cc44075c7ea1859c07806.zip
viafb: make single framebuffer multiple adapter mode work
This patch implementes this mode (viafb_SAMM_ON set and viafb_dual_fb not set) in a useful way for CRT and DVI devices. The same content is shown on both devices in different video modes. The first (primary) resolution must not be bigger than the secondary one and determines the visible region. The same content is shown centered on the secondary output. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/hw.h')
-rw-r--r--drivers/video/via/hw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h
index 4db5b6e8d8d0..f8129e49aa2c 100644
--- a/drivers/video/via/hw.h
+++ b/drivers/video/via/hw.h
@@ -637,7 +637,8 @@ extern int viafb_LCD_ON;
extern int viafb_DVI_ON;
extern int viafb_hotplug;
-void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var, int iga);
+void viafb_fill_crtc_timing(const struct fb_var_screeninfo *var,
+ u16 cxres, u16 cyres, int iga);
void viafb_set_vclock(u32 CLK, int set_iga);
void viafb_load_reg(int timing_value, int viafb_load_reg_num,
struct io_register *reg,