diff options
author | David Miller <davem@davemloft.net> | 2011-01-11 18:50:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-22 02:46:52 -0400 |
commit | e2fade2c146ec718796049104b45267ddbfdf7a1 (patch) | |
tree | b456b5451b5cdb6590e62bfbd3112974ec7f904b /drivers/video/svgalib.c | |
parent | dc6aff3a5d3e4f565cb07cd5f3b6983850971da7 (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/svgalib.c')
-rw-r--r-- | drivers/video/svgalib.c | 26 |
1 files changed, 13 insertions, 13 deletions
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) | |||
75 | 75 | ||
76 | 76 | ||
77 | /* Set graphics controller registers to sane values */ | 77 | /* Set graphics controller registers to sane values */ |
78 | void svga_set_default_gfx_regs(void) | 78 | void 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 */ |