mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
1284e49cf1
commit
f6b0cc477d
3 changed files with 14 additions and 14 deletions
|
@ -67,11 +67,11 @@ struct svga_pll {
|
|||
|
||||
/* Write a value to the attribute register */
|
||||
|
||||
static inline void svga_wattr(u8 index, u8 data)
|
||||
static inline void svga_wattr(void __iomem *regbase, u8 index, u8 data)
|
||||
{
|
||||
inb(VGA_IS1_RC);
|
||||
outb(index, VGA_ATT_IW);
|
||||
outb(data, VGA_ATT_W);
|
||||
vga_r(regbase, VGA_IS1_RC);
|
||||
vga_w(regbase, VGA_ATT_IW, index);
|
||||
vga_w(regbase, VGA_ATT_W, data);
|
||||
}
|
||||
|
||||
/* Write a value to a sequence register with a mask */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue