aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-06-26 17:19:40 -0400
committerAnton Altaparmakov <aia21@cantab.net>2005-06-26 17:19:40 -0400
commit2a322e4c08be4e7cb0c04b427ddaaa679fd88863 (patch)
treead8cc17bfd3b5e57e36f07a249028667d72f0b96 /drivers/video
parentba6d2377c85c9b8a793f455d8c9b6cf31985d70f (diff)
parent8678887e7fb43cd6c9be6c9807b05e77848e0920 (diff)
Automatic merge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/au1100fb.c18
-rw-r--r--drivers/video/console/Kconfig5
-rw-r--r--drivers/video/fbsysfs.c2
-rw-r--r--drivers/video/matrox/matroxfb_misc.c5
-rw-r--r--drivers/video/vesafb.c9
5 files changed, 17 insertions, 22 deletions
diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c
index cacd88cc84ab..b6fe30c3ad62 100644
--- a/drivers/video/au1100fb.c
+++ b/drivers/video/au1100fb.c
@@ -111,15 +111,15 @@ static int au1100fb_ioctl(struct inode *inode, struct file *file, u_int cmd,
111void au1100_nocursor(struct display *p, int mode, int xx, int yy){}; 111void au1100_nocursor(struct display *p, int mode, int xx, int yy){};
112 112
113static struct fb_ops au1100fb_ops = { 113static struct fb_ops au1100fb_ops = {
114 owner: THIS_MODULE, 114 .owner = THIS_MODULE,
115 fb_get_fix: fbgen_get_fix, 115 .fb_get_fix = fbgen_get_fix,
116 fb_get_var: fbgen_get_var, 116 .fb_get_var = fbgen_get_var,
117 fb_set_var: fbgen_set_var, 117 .fb_set_var = fbgen_set_var,
118 fb_get_cmap: fbgen_get_cmap, 118 .fb_get_cmap = fbgen_get_cmap,
119 fb_set_cmap: fbgen_set_cmap, 119 .fb_set_cmap = fbgen_set_cmap,
120 fb_pan_display: fbgen_pan_display, 120 .fb_pan_display = fbgen_pan_display,
121 fb_ioctl: au1100fb_ioctl, 121 .fb_ioctl = au1100fb_ioctl,
122 fb_mmap: au1100fb_mmap, 122 .fb_mmap = au1100fb_mmap,
123}; 123};
124 124
125static void au1100_detect(void) 125static void au1100_detect(void)
diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig
index e4b91a4b936c..cbff98337aa6 100644
--- a/drivers/video/console/Kconfig
+++ b/drivers/video/console/Kconfig
@@ -156,7 +156,6 @@ config FONT_6x11
156config FONT_7x14 156config FONT_7x14
157 bool "console 7x14 font (not supported by all drivers)" if FONTS 157 bool "console 7x14 font (not supported by all drivers)" if FONTS
158 depends on FRAMEBUFFER_CONSOLE 158 depends on FRAMEBUFFER_CONSOLE
159 default y if !SPARC32 && !SPARC64 && !FONTS
160 help 159 help
161 Console font with characters just a bit smaller than the default. 160 Console font with characters just a bit smaller than the default.
162 If the standard 8x16 font is a little too big for you, say Y. 161 If the standard 8x16 font is a little too big for you, say Y.
@@ -197,8 +196,8 @@ config FONT_SUN12x22
197 standard font is unreadable for you, say Y, otherwise say N. 196 standard font is unreadable for you, say Y, otherwise say N.
198 197
199config FONT_10x18 198config FONT_10x18
200 bool "console 10x18 font (not supported by all drivers)" 199 bool "console 10x18 font (not supported by all drivers)" if FONTS
201 depends on FONTS 200 depends on FRAMEBUFFER_CONSOLE
202 help 201 help
203 This is a high resolution console font for machines with very 202 This is a high resolution console font for machines with very
204 big letters. It fits between the sun 12x22 and the normal 8x16 font. 203 big letters. It fits between the sun 12x22 and the normal 8x16 font.
diff --git a/drivers/video/fbsysfs.c b/drivers/video/fbsysfs.c
index 277d733c6d00..7dfbf39b4ed3 100644
--- a/drivers/video/fbsysfs.c
+++ b/drivers/video/fbsysfs.c
@@ -228,8 +228,6 @@ static ssize_t store_virtual(struct class_device *class_device,
228 if (last - buf >= count) 228 if (last - buf >= count)
229 return -EINVAL; 229 return -EINVAL;
230 var.yres_virtual = simple_strtoul(last, &last, 0); 230 var.yres_virtual = simple_strtoul(last, &last, 0);
231 printk(KERN_ERR "fb: xres %d yres %d\n", var.xres_virtual,
232 var.yres_virtual);
233 231
234 if ((err = activate(fb_info, &var))) 232 if ((err = activate(fb_info, &var)))
235 return err; 233 return err;
diff --git a/drivers/video/matrox/matroxfb_misc.c b/drivers/video/matrox/matroxfb_misc.c
index 76fd3a519b8a..a18dd024fc86 100644
--- a/drivers/video/matrox/matroxfb_misc.c
+++ b/drivers/video/matrox/matroxfb_misc.c
@@ -197,10 +197,7 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
197 DBG(__FUNCTION__) 197 DBG(__FUNCTION__)
198 198
199 hw->SEQ[0] = 0x00; 199 hw->SEQ[0] = 0x00;
200 if (fwidth == 9) 200 hw->SEQ[1] = 0x01; /* or 0x09 */
201 hw->SEQ[1] = 0x00;
202 else
203 hw->SEQ[1] = 0x01; /* or 0x09 */
204 hw->SEQ[2] = 0x0F; /* bitplanes */ 201 hw->SEQ[2] = 0x0F; /* bitplanes */
205 hw->SEQ[3] = 0x00; 202 hw->SEQ[3] = 0x00;
206 hw->SEQ[4] = 0x0E; 203 hw->SEQ[4] = 0x0E;
diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c
index f3069b01e248..9ed1a931dd31 100644
--- a/drivers/video/vesafb.c
+++ b/drivers/video/vesafb.c
@@ -389,10 +389,11 @@ static int __init vesafb_probe(struct device *device)
389 unsigned int temp_size = size_total; 389 unsigned int temp_size = size_total;
390 /* Find the largest power-of-two */ 390 /* Find the largest power-of-two */
391 while (temp_size & (temp_size - 1)) 391 while (temp_size & (temp_size - 1))
392 temp_size &= (temp_size - 1); 392 temp_size &= (temp_size - 1);
393 393
394 /* Try and find a power of two to add */ 394 /* Try and find a power of two to add */
395 while (temp_size && mtrr_add(vesafb_fix.smem_start, temp_size, MTRR_TYPE_WRCOMB, 1)==-EINVAL) { 395 while (temp_size > PAGE_SIZE &&
396 mtrr_add(vesafb_fix.smem_start, temp_size, MTRR_TYPE_WRCOMB, 1)==-EINVAL) {
396 temp_size >>= 1; 397 temp_size >>= 1;
397 } 398 }
398 } 399 }