diff options
-rw-r--r-- | drivers/video/s3fb.c | 2 | ||||
-rw-r--r-- | drivers/video/svgalib.c | 18 | ||||
-rw-r--r-- | include/linux/svga.h | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 75738a928610..bcbf098a41c7 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c | |||
@@ -552,7 +552,7 @@ static int s3fb_set_par(struct fb_info *info) | |||
552 | } | 552 | } |
553 | 553 | ||
554 | vga_wcrt(NULL, 0x3A, 0x35); | 554 | vga_wcrt(NULL, 0x3A, 0x35); |
555 | svga_wattr(0x33, 0x00); | 555 | svga_wattr(par->state.vgabase, 0x33, 0x00); |
556 | 556 | ||
557 | if (info->var.vmode & FB_VMODE_DOUBLE) | 557 | if (info->var.vmode & FB_VMODE_DOUBLE) |
558 | svga_wcrt_mask(0x09, 0x80, 0x80); | 558 | svga_wcrt_mask(0x09, 0x80, 0x80); |
diff --git a/drivers/video/svgalib.c b/drivers/video/svgalib.c index fdb45674e2f6..59c99fd4901b 100644 --- a/drivers/video/svgalib.c +++ b/drivers/video/svgalib.c | |||
@@ -102,14 +102,14 @@ void svga_set_default_atc_regs(void) | |||
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(count, count); | 105 | svga_wattr(NULL, count, count); |
106 | 106 | ||
107 | svga_wattr(VGA_ATC_MODE, 0x01); | 107 | svga_wattr(NULL, VGA_ATC_MODE, 0x01); |
108 | /* svga_wattr(VGA_ATC_MODE, 0x41); */ | 108 | /* svga_wattr(NULL, VGA_ATC_MODE, 0x41); */ |
109 | svga_wattr(VGA_ATC_OVERSCAN, 0x00); | 109 | svga_wattr(NULL, VGA_ATC_OVERSCAN, 0x00); |
110 | svga_wattr(VGA_ATC_PLANE_ENABLE, 0x0F); | 110 | svga_wattr(NULL, VGA_ATC_PLANE_ENABLE, 0x0F); |
111 | svga_wattr(VGA_ATC_PEL, 0x00); | 111 | svga_wattr(NULL, VGA_ATC_PEL, 0x00); |
112 | svga_wattr(VGA_ATC_COLOR_PAGE, 0x00); | 112 | svga_wattr(NULL, VGA_ATC_COLOR_PAGE, 0x00); |
113 | 113 | ||
114 | vga_r(NULL, 0x3DA); | 114 | vga_r(NULL, 0x3DA); |
115 | vga_w(NULL, VGA_ATT_W, 0x20); | 115 | vga_w(NULL, VGA_ATT_W, 0x20); |
@@ -159,8 +159,8 @@ void svga_set_textmode_vga_regs(void) | |||
159 | vga_r(NULL, 0x3DA); | 159 | vga_r(NULL, 0x3DA); |
160 | vga_w(NULL, VGA_ATT_W, 0x00); | 160 | vga_w(NULL, VGA_ATT_W, 0x00); |
161 | 161 | ||
162 | svga_wattr(0x10, 0x0C); /* Attribute Mode Control Register - text mode, blinking and line graphics */ | 162 | svga_wattr(NULL, 0x10, 0x0C); /* Attribute Mode Control Register - text mode, blinking and line graphics */ |
163 | svga_wattr(0x13, 0x08); /* Horizontal Pixel Panning Register */ | 163 | svga_wattr(NULL, 0x13, 0x08); /* Horizontal Pixel Panning Register */ |
164 | 164 | ||
165 | vga_r(NULL, 0x3DA); | 165 | vga_r(NULL, 0x3DA); |
166 | vga_w(NULL, VGA_ATT_W, 0x20); | 166 | vga_w(NULL, VGA_ATT_W, 0x20); |
diff --git a/include/linux/svga.h b/include/linux/svga.h index 3fc52cb0bcb4..95d39412a3c2 100644 --- a/include/linux/svga.h +++ b/include/linux/svga.h | |||
@@ -67,11 +67,11 @@ struct svga_pll { | |||
67 | 67 | ||
68 | /* Write a value to the attribute register */ | 68 | /* Write a value to the attribute register */ |
69 | 69 | ||
70 | static inline void svga_wattr(u8 index, u8 data) | 70 | static inline void svga_wattr(void __iomem *regbase, u8 index, u8 data) |
71 | { | 71 | { |
72 | inb(VGA_IS1_RC); | 72 | vga_r(regbase, VGA_IS1_RC); |
73 | outb(index, VGA_ATT_IW); | 73 | vga_w(regbase, VGA_ATT_IW, index); |
74 | outb(data, VGA_ATT_W); | 74 | vga_w(regbase, VGA_ATT_W, data); |
75 | } | 75 | } |
76 | 76 | ||
77 | /* Write a value to a sequence register with a mask */ | 77 | /* Write a value to a sequence register with a mask */ |