diff options
author | David Miller <davem@davemloft.net> | 2011-01-11 18:49:34 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-22 02:46:44 -0400 |
commit | 21da386d0e4c55f6f7482b4637532b942e22b70a (patch) | |
tree | 47bebd65b27086a9cd1ba0ee2f241234ba53b902 /drivers/video/s3fb.c | |
parent | f6b0cc477de99fe715f1071b13ab822daed9a34f (diff) |
svga: Make svga_wcrt_multi 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/s3fb.c')
-rw-r--r-- | drivers/video/s3fb.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index bcbf098a41c7..3984dcf7ba67 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c | |||
@@ -518,8 +518,8 @@ static int s3fb_set_par(struct fb_info *info) | |||
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(); |
521 | svga_wcrt_multi(s3_line_compare_regs, 0xFFFFFFFF); | 521 | svga_wcrt_multi(par->state.vgabase, s3_line_compare_regs, 0xFFFFFFFF); |
522 | svga_wcrt_multi(s3_start_address_regs, 0); | 522 | svga_wcrt_multi(par->state.vgabase, s3_start_address_regs, 0); |
523 | 523 | ||
524 | /* S3 specific initialization */ | 524 | /* S3 specific initialization */ |
525 | svga_wcrt_mask(0x58, 0x10, 0x10); /* enable linear framebuffer */ | 525 | svga_wcrt_mask(0x58, 0x10, 0x10); /* enable linear framebuffer */ |
@@ -540,7 +540,7 @@ static int s3fb_set_par(struct fb_info *info) | |||
540 | 540 | ||
541 | /* Set the offset register */ | 541 | /* Set the offset register */ |
542 | pr_debug("fb%d: offset register : %d\n", info->node, offset_value); | 542 | pr_debug("fb%d: offset register : %d\n", info->node, offset_value); |
543 | svga_wcrt_multi(s3_offset_regs, offset_value); | 543 | svga_wcrt_multi(par->state.vgabase, s3_offset_regs, offset_value); |
544 | 544 | ||
545 | if (par->chip != CHIP_360_TRIO3D_1X && | 545 | if (par->chip != CHIP_360_TRIO3D_1X && |
546 | par->chip != CHIP_362_TRIO3D_2X && | 546 | par->chip != CHIP_362_TRIO3D_2X && |
@@ -822,8 +822,9 @@ static int s3fb_blank(int blank_mode, struct fb_info *info) | |||
822 | 822 | ||
823 | /* Pan the display */ | 823 | /* Pan the display */ |
824 | 824 | ||
825 | static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) { | 825 | static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) |
826 | 826 | { | |
827 | struct s3fb_info *par = info->par; | ||
827 | unsigned int offset; | 828 | unsigned int offset; |
828 | 829 | ||
829 | /* Calculate the offset */ | 830 | /* Calculate the offset */ |
@@ -837,7 +838,7 @@ static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) | |||
837 | } | 838 | } |
838 | 839 | ||
839 | /* Set the offset */ | 840 | /* Set the offset */ |
840 | svga_wcrt_multi(s3_start_address_regs, offset); | 841 | svga_wcrt_multi(par->state.vgabase, s3_start_address_regs, offset); |
841 | 842 | ||
842 | return 0; | 843 | return 0; |
843 | } | 844 | } |