diff options
-rw-r--r-- | drivers/video/arkfb.c | 2 | ||||
-rw-r--r-- | drivers/video/s3fb.c | 2 | ||||
-rw-r--r-- | drivers/video/svgalib.c | 26 | ||||
-rw-r--r-- | drivers/video/vt8623fb.c | 2 | ||||
-rw-r--r-- | include/linux/svga.h | 2 |
5 files changed, 17 insertions, 17 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) | |||
653 | svga_wcrt_mask(0x17, 0x00, 0x80); | 653 | svga_wcrt_mask(0x17, 0x00, 0x80); |
654 | 654 | ||
655 | /* Set default values */ | 655 | /* Set default values */ |
656 | svga_set_default_gfx_regs(); | 656 | svga_set_default_gfx_regs(par->state.vgabase); |
657 | svga_set_default_atc_regs(); | 657 | svga_set_default_atc_regs(); |
658 | svga_set_default_seq_regs(); | 658 | svga_set_default_seq_regs(); |
659 | svga_set_default_crt_regs(); | 659 | 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) | |||
514 | svga_wcrt_mask(0x17, 0x00, 0x80); | 514 | svga_wcrt_mask(0x17, 0x00, 0x80); |
515 | 515 | ||
516 | /* Set default values */ | 516 | /* Set default values */ |
517 | svga_set_default_gfx_regs(); | 517 | svga_set_default_gfx_regs(par->state.vgabase); |
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(); |
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 */ |
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) | |||
425 | svga_wcrt_mask(0x17, 0x00, 0x80); | 425 | svga_wcrt_mask(0x17, 0x00, 0x80); |
426 | 426 | ||
427 | /* Set default values */ | 427 | /* Set default values */ |
428 | svga_set_default_gfx_regs(); | 428 | svga_set_default_gfx_regs(par->state.vgabase); |
429 | svga_set_default_atc_regs(); | 429 | svga_set_default_atc_regs(); |
430 | svga_set_default_seq_regs(); | 430 | svga_set_default_seq_regs(); |
431 | svga_set_default_crt_regs(); | 431 | svga_set_default_crt_regs(); |
diff --git a/include/linux/svga.h b/include/linux/svga.h index 357e2bdac9aa..4591032247f2 100644 --- a/include/linux/svga.h +++ b/include/linux/svga.h | |||
@@ -99,7 +99,7 @@ static inline int svga_primary_device(struct pci_dev *dev) | |||
99 | void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value); | 99 | void svga_wcrt_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); | 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); | 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); |
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); |