aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-01-11 18:50:04 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 02:46:52 -0400
commite2fade2c146ec718796049104b45267ddbfdf7a1 (patch)
treeb456b5451b5cdb6590e62bfbd3112974ec7f904b /drivers/video
parentdc6aff3a5d3e4f565cb07cd5f3b6983850971da7 (diff)
svga: Make svga_set_default_gfx_regs take an iomem regbase pointer.
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/arkfb.c2
-rw-r--r--drivers/video/s3fb.c2
-rw-r--r--drivers/video/svgalib.c26
-rw-r--r--drivers/video/vt8623fb.c2
4 files changed, 16 insertions, 16 deletions
diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c
index a54dbf4c783..e09694f58c2 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -653,7 +653,7 @@ static int arkfb_set_par(struct fb_info *info)
653 svga_wcrt_mask(0x17, 0x00, 0x80); 653 svga_wcrt_mask(0x17, 0x00, 0x80);
654 654
655 /* Set default values */ 655 /* Set default values */
656 svga_set_default_gfx_regs(); 656 svga_set_default_gfx_regs(par->state.vgabase);
657 svga_set_default_atc_regs(); 657 svga_set_default_atc_regs();
658 svga_set_default_seq_regs(); 658 svga_set_default_seq_regs();
659 svga_set_default_crt_regs(); 659 svga_set_default_crt_regs();
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index 3984dcf7ba6..7e34e5a163c 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -514,7 +514,7 @@ static int s3fb_set_par(struct fb_info *info)
514 svga_wcrt_mask(0x17, 0x00, 0x80); 514 svga_wcrt_mask(0x17, 0x00, 0x80);
515 515
516 /* Set default values */ 516 /* Set default values */
517 svga_set_default_gfx_regs(); 517 svga_set_default_gfx_regs(par->state.vgabase);
518 svga_set_default_atc_regs(); 518 svga_set_default_atc_regs();
519 svga_set_default_seq_regs(); 519 svga_set_default_seq_regs();
520 svga_set_default_crt_regs(); 520 svga_set_default_crt_regs();
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c
index ed190aa0965..25f9f87f73d 100644
--- a/drivers/video/svgalib.c
+++ b/drivers/video/svgalib.c
@@ -75,21 +75,21 @@ static unsigned int svga_regset_size(const struct vga_regset *regset)
75 75
76 76
77/* Set graphics controller registers to sane values */ 77/* Set graphics controller registers to sane values */
78void svga_set_default_gfx_regs(void) 78void svga_set_default_gfx_regs(void __iomem *regbase)
79{ 79{
80 /* All standard GFX registers (GR00 - GR08) */ 80 /* All standard GFX registers (GR00 - GR08) */
81 vga_wgfx(NULL, VGA_GFX_SR_VALUE, 0x00); 81 vga_wgfx(regbase, VGA_GFX_SR_VALUE, 0x00);
82 vga_wgfx(NULL, VGA_GFX_SR_ENABLE, 0x00); 82 vga_wgfx(regbase, VGA_GFX_SR_ENABLE, 0x00);
83 vga_wgfx(NULL, VGA_GFX_COMPARE_VALUE, 0x00); 83 vga_wgfx(regbase, VGA_GFX_COMPARE_VALUE, 0x00);
84 vga_wgfx(NULL, VGA_GFX_DATA_ROTATE, 0x00); 84 vga_wgfx(regbase, VGA_GFX_DATA_ROTATE, 0x00);
85 vga_wgfx(NULL, VGA_GFX_PLANE_READ, 0x00); 85 vga_wgfx(regbase, VGA_GFX_PLANE_READ, 0x00);
86 vga_wgfx(NULL, VGA_GFX_MODE, 0x00); 86 vga_wgfx(regbase, VGA_GFX_MODE, 0x00);
87/* vga_wgfx(NULL, VGA_GFX_MODE, 0x20); */ 87/* vga_wgfx(regbase, VGA_GFX_MODE, 0x20); */
88/* vga_wgfx(NULL, VGA_GFX_MODE, 0x40); */ 88/* vga_wgfx(regbase, VGA_GFX_MODE, 0x40); */
89 vga_wgfx(NULL, VGA_GFX_MISC, 0x05); 89 vga_wgfx(regbase, VGA_GFX_MISC, 0x05);
90/* vga_wgfx(NULL, VGA_GFX_MISC, 0x01); */ 90/* vga_wgfx(regbase, VGA_GFX_MISC, 0x01); */
91 vga_wgfx(NULL, VGA_GFX_COMPARE_MASK, 0x0F); 91 vga_wgfx(regbase, VGA_GFX_COMPARE_MASK, 0x0F);
92 vga_wgfx(NULL, VGA_GFX_BIT_MASK, 0xFF); 92 vga_wgfx(regbase, VGA_GFX_BIT_MASK, 0xFF);
93} 93}
94 94
95/* Set attribute controller registers to sane values */ 95/* Set attribute controller registers to sane values */
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index f303ea0341b..ccb4a3e78fd 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -425,7 +425,7 @@ static int vt8623fb_set_par(struct fb_info *info)
425 svga_wcrt_mask(0x17, 0x00, 0x80); 425 svga_wcrt_mask(0x17, 0x00, 0x80);
426 426
427 /* Set default values */ 427 /* Set default values */
428 svga_set_default_gfx_regs(); 428 svga_set_default_gfx_regs(par->state.vgabase);
429 svga_set_default_atc_regs(); 429 svga_set_default_atc_regs();
430 svga_set_default_seq_regs(); 430 svga_set_default_seq_regs();
431 svga_set_default_crt_regs(); 431 svga_set_default_crt_regs();