summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-01-11 23:50:04 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 15:46:52 +0900
commite2fade2c146ec718796049104b45267ddbfdf7a1 (patch)
treeb456b5451b5cdb6590e62bfbd3112974ec7f904b /drivers
parentdc6aff3a5d3e4f565cb07cd5f3b6983850971da7 (diff)
downloadblackbird-op-linux-e2fade2c146ec718796049104b45267ddbfdf7a1.tar.gz
blackbird-op-linux-e2fade2c146ec718796049104b45267ddbfdf7a1.zip
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')
-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 a54dbf4c7836..e09694f58c2c 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -653,7 +653,7 @@ static int arkfb_set_par(struct fb_info *info)
svga_wcrt_mask(0x17, 0x00, 0x80);
/* Set default values */
- svga_set_default_gfx_regs();
+ svga_set_default_gfx_regs(par->state.vgabase);
svga_set_default_atc_regs();
svga_set_default_seq_regs();
svga_set_default_crt_regs();
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index 3984dcf7ba67..7e34e5a163c4 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -514,7 +514,7 @@ static int s3fb_set_par(struct fb_info *info)
svga_wcrt_mask(0x17, 0x00, 0x80);
/* Set default values */
- svga_set_default_gfx_regs();
+ svga_set_default_gfx_regs(par->state.vgabase);
svga_set_default_atc_regs();
svga_set_default_seq_regs();
svga_set_default_crt_regs();
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c
index ed190aa09653..25f9f87f73dd 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)
/* Set graphics controller registers to sane values */
-void svga_set_default_gfx_regs(void)
+void svga_set_default_gfx_regs(void __iomem *regbase)
{
/* All standard GFX registers (GR00 - GR08) */
- vga_wgfx(NULL, VGA_GFX_SR_VALUE, 0x00);
- vga_wgfx(NULL, VGA_GFX_SR_ENABLE, 0x00);
- vga_wgfx(NULL, VGA_GFX_COMPARE_VALUE, 0x00);
- vga_wgfx(NULL, VGA_GFX_DATA_ROTATE, 0x00);
- vga_wgfx(NULL, VGA_GFX_PLANE_READ, 0x00);
- vga_wgfx(NULL, VGA_GFX_MODE, 0x00);
-/* vga_wgfx(NULL, VGA_GFX_MODE, 0x20); */
-/* vga_wgfx(NULL, VGA_GFX_MODE, 0x40); */
- vga_wgfx(NULL, VGA_GFX_MISC, 0x05);
-/* vga_wgfx(NULL, VGA_GFX_MISC, 0x01); */
- vga_wgfx(NULL, VGA_GFX_COMPARE_MASK, 0x0F);
- vga_wgfx(NULL, VGA_GFX_BIT_MASK, 0xFF);
+ vga_wgfx(regbase, VGA_GFX_SR_VALUE, 0x00);
+ vga_wgfx(regbase, VGA_GFX_SR_ENABLE, 0x00);
+ vga_wgfx(regbase, VGA_GFX_COMPARE_VALUE, 0x00);
+ vga_wgfx(regbase, VGA_GFX_DATA_ROTATE, 0x00);
+ vga_wgfx(regbase, VGA_GFX_PLANE_READ, 0x00);
+ vga_wgfx(regbase, VGA_GFX_MODE, 0x00);
+/* vga_wgfx(regbase, VGA_GFX_MODE, 0x20); */
+/* vga_wgfx(regbase, VGA_GFX_MODE, 0x40); */
+ vga_wgfx(regbase, VGA_GFX_MISC, 0x05);
+/* vga_wgfx(regbase, VGA_GFX_MISC, 0x01); */
+ vga_wgfx(regbase, VGA_GFX_COMPARE_MASK, 0x0F);
+ vga_wgfx(regbase, VGA_GFX_BIT_MASK, 0xFF);
}
/* Set attribute controller registers to sane values */
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index f303ea0341bc..ccb4a3e78fda 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -425,7 +425,7 @@ static int vt8623fb_set_par(struct fb_info *info)
svga_wcrt_mask(0x17, 0x00, 0x80);
/* Set default values */
- svga_set_default_gfx_regs();
+ svga_set_default_gfx_regs(par->state.vgabase);
svga_set_default_atc_regs();
svga_set_default_seq_regs();
svga_set_default_crt_regs();
OpenPOWER on IntegriCloud