diff options
author | David Miller <davem@davemloft.net> | 2011-01-11 18:50:36 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-22 02:46:56 -0400 |
commit | f51a14dded14457e45b1f026a6af5ca6a51e4502 (patch) | |
tree | b381cd69fcd34cd0ef7d71baf2e2bc96ff00bbc7 | |
parent | e2fade2c146ec718796049104b45267ddbfdf7a1 (diff) |
svga: Make svga_set_default_atc_regs take an iomem regbase pointer.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | drivers/video/arkfb.c | 2 | ||||
-rw-r--r-- | drivers/video/s3fb.c | 2 | ||||
-rw-r--r-- | drivers/video/svgalib.c | 24 | ||||
-rw-r--r-- | drivers/video/vt8623fb.c | 2 | ||||
-rw-r--r-- | include/linux/svga.h | 2 |
5 files changed, 16 insertions, 16 deletions
diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c index e09694f58c2c..1028e329c46b 100644 --- a/drivers/video/arkfb.c +++ b/drivers/video/arkfb.c | |||
@@ -654,7 +654,7 @@ static int arkfb_set_par(struct fb_info *info) | |||
654 | 654 | ||
655 | /* Set default values */ | 655 | /* Set default values */ |
656 | svga_set_default_gfx_regs(par->state.vgabase); | 656 | svga_set_default_gfx_regs(par->state.vgabase); |
657 | svga_set_default_atc_regs(); | 657 | svga_set_default_atc_regs(par->state.vgabase); |
658 | svga_set_default_seq_regs(); | 658 | svga_set_default_seq_regs(); |
659 | svga_set_default_crt_regs(); | 659 | svga_set_default_crt_regs(); |
660 | svga_wcrt_multi(par->state.vgabase, ark_line_compare_regs, 0xFFFFFFFF); | 660 | svga_wcrt_multi(par->state.vgabase, ark_line_compare_regs, 0xFFFFFFFF); |
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 7e34e5a163c4..7073cf904ccd 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c | |||
@@ -515,7 +515,7 @@ static int s3fb_set_par(struct fb_info *info) | |||
515 | 515 | ||
516 | /* Set default values */ | 516 | /* Set default values */ |
517 | svga_set_default_gfx_regs(par->state.vgabase); | 517 | svga_set_default_gfx_regs(par->state.vgabase); |
518 | svga_set_default_atc_regs(); | 518 | svga_set_default_atc_regs(par->state.vgabase); |
519 | svga_set_default_seq_regs(); | 519 | svga_set_default_seq_regs(); |
520 | svga_set_default_crt_regs(); | 520 | svga_set_default_crt_regs(); |
521 | svga_wcrt_multi(par->state.vgabase, s3_line_compare_regs, 0xFFFFFFFF); | 521 | svga_wcrt_multi(par->state.vgabase, s3_line_compare_regs, 0xFFFFFFFF); |
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c index 25f9f87f73dd..8b97359db502 100644 --- a/drivers/video/svgalib.c +++ b/drivers/video/svgalib.c | |||
@@ -93,26 +93,26 @@ void svga_set_default_gfx_regs(void __iomem *regbase) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | /* Set attribute controller registers to sane values */ | 95 | /* Set attribute controller registers to sane values */ |
96 | void svga_set_default_atc_regs(void) | 96 | void svga_set_default_atc_regs(void __iomem *regbase) |
97 | { | 97 | { |
98 | u8 count; | 98 | u8 count; |
99 | 99 | ||
100 | vga_r(NULL, 0x3DA); | 100 | vga_r(regbase, 0x3DA); |
101 | vga_w(NULL, VGA_ATT_W, 0x00); | 101 | vga_w(regbase, VGA_ATT_W, 0x00); |
102 | 102 | ||
103 | /* All standard ATC registers (AR00 - AR14) */ | 103 | /* All standard ATC registers (AR00 - AR14) */ |
104 | for (count = 0; count <= 0xF; count ++) | 104 | for (count = 0; count <= 0xF; count ++) |
105 | svga_wattr(NULL, count, count); | 105 | svga_wattr(regbase, count, count); |
106 | 106 | ||
107 | svga_wattr(NULL, VGA_ATC_MODE, 0x01); | 107 | svga_wattr(regbase, VGA_ATC_MODE, 0x01); |
108 | /* svga_wattr(NULL, VGA_ATC_MODE, 0x41); */ | 108 | /* svga_wattr(regbase, VGA_ATC_MODE, 0x41); */ |
109 | svga_wattr(NULL, VGA_ATC_OVERSCAN, 0x00); | 109 | svga_wattr(regbase, VGA_ATC_OVERSCAN, 0x00); |
110 | svga_wattr(NULL, VGA_ATC_PLANE_ENABLE, 0x0F); | 110 | svga_wattr(regbase, VGA_ATC_PLANE_ENABLE, 0x0F); |
111 | svga_wattr(NULL, VGA_ATC_PEL, 0x00); | 111 | svga_wattr(regbase, VGA_ATC_PEL, 0x00); |
112 | svga_wattr(NULL, VGA_ATC_COLOR_PAGE, 0x00); | 112 | svga_wattr(regbase, VGA_ATC_COLOR_PAGE, 0x00); |
113 | 113 | ||
114 | vga_r(NULL, 0x3DA); | 114 | vga_r(regbase, 0x3DA); |
115 | vga_w(NULL, VGA_ATT_W, 0x20); | 115 | vga_w(regbase, VGA_ATT_W, 0x20); |
116 | } | 116 | } |
117 | 117 | ||
118 | /* Set sequencer registers to sane values */ | 118 | /* Set sequencer registers to sane values */ |
diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c index ccb4a3e78fda..310af2dc43cd 100644 --- a/drivers/video/vt8623fb.c +++ b/drivers/video/vt8623fb.c | |||
@@ -426,7 +426,7 @@ static int vt8623fb_set_par(struct fb_info *info) | |||
426 | 426 | ||
427 | /* Set default values */ | 427 | /* Set default values */ |
428 | svga_set_default_gfx_regs(par->state.vgabase); | 428 | svga_set_default_gfx_regs(par->state.vgabase); |
429 | svga_set_default_atc_regs(); | 429 | svga_set_default_atc_regs(par->state.vgabase); |
430 | svga_set_default_seq_regs(); | 430 | svga_set_default_seq_regs(); |
431 | svga_set_default_crt_regs(); | 431 | svga_set_default_crt_regs(); |
432 | svga_wcrt_multi(par->state.vgabase, vt8623_line_compare_regs, 0xFFFFFFFF); | 432 | svga_wcrt_multi(par->state.vgabase, vt8623_line_compare_regs, 0xFFFFFFFF); |
diff --git a/include/linux/svga.h b/include/linux/svga.h index 4591032247f2..87a41641caeb 100644 --- a/include/linux/svga.h +++ b/include/linux/svga.h | |||
@@ -100,7 +100,7 @@ void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 | |||
100 | void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value); | 100 | void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value); |
101 | 101 | ||
102 | void svga_set_default_gfx_regs(void __iomem *regbase); | 102 | void svga_set_default_gfx_regs(void __iomem *regbase); |
103 | void svga_set_default_atc_regs(void); | 103 | void svga_set_default_atc_regs(void __iomem *regbase); |
104 | void svga_set_default_seq_regs(void); | 104 | void svga_set_default_seq_regs(void); |
105 | void svga_set_default_crt_regs(void); | 105 | void svga_set_default_crt_regs(void); |
106 | void svga_set_textmode_vga_regs(void); | 106 | void svga_set_textmode_vga_regs(void); |