aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-01-11 18:51:41 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 02:47:10 -0400
commit1d28fcadb0e277844ebffb528cdfd25d44591035 (patch)
tree7b46b14bb2706d5260b6822dfc74dbe5a59bed62 /drivers/video
parentea770789dce2d27afab39c3891a475624acbd82f (diff)
svga: Make svga_set_default_crt_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.c12
-rw-r--r--drivers/video/vt8623fb.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c
index f24151e01da3..51fd8affe0c7 100644
--- a/drivers/video/arkfb.c
+++ b/drivers/video/arkfb.c
@@ -656,7 +656,7 @@ static int arkfb_set_par(struct fb_info *info)
656 svga_set_default_gfx_regs(par->state.vgabase); 656 svga_set_default_gfx_regs(par->state.vgabase);
657 svga_set_default_atc_regs(par->state.vgabase); 657 svga_set_default_atc_regs(par->state.vgabase);
658 svga_set_default_seq_regs(par->state.vgabase); 658 svga_set_default_seq_regs(par->state.vgabase);
659 svga_set_default_crt_regs(); 659 svga_set_default_crt_regs(par->state.vgabase);
660 svga_wcrt_multi(par->state.vgabase, ark_line_compare_regs, 0xFFFFFFFF); 660 svga_wcrt_multi(par->state.vgabase, ark_line_compare_regs, 0xFFFFFFFF);
661 svga_wcrt_multi(par->state.vgabase, ark_start_address_regs, 0); 661 svga_wcrt_multi(par->state.vgabase, ark_start_address_regs, 0);
662 662
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index ece99f2044f4..a7a2463663c4 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -517,7 +517,7 @@ static int s3fb_set_par(struct fb_info *info)
517 svga_set_default_gfx_regs(par->state.vgabase); 517 svga_set_default_gfx_regs(par->state.vgabase);
518 svga_set_default_atc_regs(par->state.vgabase); 518 svga_set_default_atc_regs(par->state.vgabase);
519 svga_set_default_seq_regs(par->state.vgabase); 519 svga_set_default_seq_regs(par->state.vgabase);
520 svga_set_default_crt_regs(); 520 svga_set_default_crt_regs(par->state.vgabase);
521 svga_wcrt_multi(par->state.vgabase, s3_line_compare_regs, 0xFFFFFFFF); 521 svga_wcrt_multi(par->state.vgabase, s3_line_compare_regs, 0xFFFFFFFF);
522 svga_wcrt_multi(par->state.vgabase, s3_start_address_regs, 0); 522 svga_wcrt_multi(par->state.vgabase, s3_start_address_regs, 0);
523 523
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c
index 3d07287e9322..b0464977ed9b 100644
--- a/drivers/video/svgalib.c
+++ b/drivers/video/svgalib.c
@@ -127,14 +127,14 @@ void svga_set_default_seq_regs(void __iomem *regbase)
127} 127}
128 128
129/* Set CRTC registers to sane values */ 129/* Set CRTC registers to sane values */
130void svga_set_default_crt_regs(void) 130void svga_set_default_crt_regs(void __iomem *regbase)
131{ 131{
132 /* Standard CRT registers CR03 CR08 CR09 CR14 CR17 */ 132 /* Standard CRT registers CR03 CR08 CR09 CR14 CR17 */
133 svga_wcrt_mask(NULL, 0x03, 0x80, 0x80); /* Enable vertical retrace EVRA */ 133 svga_wcrt_mask(regbase, 0x03, 0x80, 0x80); /* Enable vertical retrace EVRA */
134 vga_wcrt(NULL, VGA_CRTC_PRESET_ROW, 0); 134 vga_wcrt(regbase, VGA_CRTC_PRESET_ROW, 0);
135 svga_wcrt_mask(NULL, VGA_CRTC_MAX_SCAN, 0, 0x1F); 135 svga_wcrt_mask(regbase, VGA_CRTC_MAX_SCAN, 0, 0x1F);
136 vga_wcrt(NULL, VGA_CRTC_UNDERLINE, 0); 136 vga_wcrt(regbase, VGA_CRTC_UNDERLINE, 0);
137 vga_wcrt(NULL, VGA_CRTC_MODE, 0xE3); 137 vga_wcrt(regbase, VGA_CRTC_MODE, 0xE3);
138} 138}
139 139
140void svga_set_textmode_vga_regs(void) 140void svga_set_textmode_vga_regs(void)
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c
index bc54b57db985..a2624a841ecc 100644
--- a/drivers/video/vt8623fb.c
+++ b/drivers/video/vt8623fb.c
@@ -429,7 +429,7 @@ static int vt8623fb_set_par(struct fb_info *info)
429 svga_set_default_gfx_regs(par->state.vgabase); 429 svga_set_default_gfx_regs(par->state.vgabase);
430 svga_set_default_atc_regs(par->state.vgabase); 430 svga_set_default_atc_regs(par->state.vgabase);
431 svga_set_default_seq_regs(par->state.vgabase); 431 svga_set_default_seq_regs(par->state.vgabase);
432 svga_set_default_crt_regs(); 432 svga_set_default_crt_regs(par->state.vgabase);
433 svga_wcrt_multi(par->state.vgabase, vt8623_line_compare_regs, 0xFFFFFFFF); 433 svga_wcrt_multi(par->state.vgabase, vt8623_line_compare_regs, 0xFFFFFFFF);
434 svga_wcrt_multi(par->state.vgabase, vt8623_start_address_regs, 0); 434 svga_wcrt_multi(par->state.vgabase, vt8623_start_address_regs, 0);
435 435