aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/svga.h
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2011-01-11 18:49:18 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-22 02:46:40 -0400
commitf6b0cc477de99fe715f1071b13ab822daed9a34f (patch)
tree44c597c18899d1434c549cd3d3fb7a991537a406 /include/linux/svga.h
parent1284e49cf186eaa19056e85a76a443d4eca8995d (diff)
svga: Make svga_wattr take an iomem regbase pointer.
And use vga_{r,w}(). Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/svga.h')
-rw-r--r--include/linux/svga.h8
1 files changed, 4 insertions, 4 deletions
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
70static inline void svga_wattr(u8 index, u8 data) 70static 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 */