diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-11-19 21:58:48 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 16:03:03 +0900 |
commit | 2ad28472695a940bbda8fa1aec8286f0df8f6c4f (patch) | |
tree | c439d30c57c6b76a793176def80d3e58f3201bf1 /drivers/video/sis/init.c | |
parent | f7854e5df3f0828e942b089a82dfa5ce9baea428 (diff) |
sisfb: remove InPort/OutPort wrappers
Remove register IO wrappers.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sis/init.c')
-rw-r--r-- | drivers/video/sis/init.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/video/sis/init.c b/drivers/video/sis/init.c index 8351151e3f27..bfc6a1a8eaa2 100644 --- a/drivers/video/sis/init.c +++ b/drivers/video/sis/init.c @@ -882,51 +882,51 @@ SiS_GetModeID_VGA2(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDispl void SiS_SetReg(SISIOADDRESS port, unsigned short index, unsigned short data) { - OutPortByte(port, index); - OutPortByte(port + 1, data); + outb((u8)index, port); + outb((u8)data, port + 1); } void SiS_SetRegByte(SISIOADDRESS port, unsigned short data) { - OutPortByte(port, data); + outb((u8)data, port); } void SiS_SetRegShort(SISIOADDRESS port, unsigned short data) { - OutPortWord(port, data); + outw((u16)data, port); } void SiS_SetRegLong(SISIOADDRESS port, unsigned int data) { - OutPortLong(port, data); + outl((u32)data, port); } unsigned char SiS_GetReg(SISIOADDRESS port, unsigned short index) { - OutPortByte(port, index); - return(InPortByte(port + 1)); + outb((u8)index, port); + return inb(port + 1); } unsigned char SiS_GetRegByte(SISIOADDRESS port) { - return(InPortByte(port)); + return inb(port); } unsigned short SiS_GetRegShort(SISIOADDRESS port) { - return(InPortWord(port)); + return inw(port); } unsigned int SiS_GetRegLong(SISIOADDRESS port) { - return(InPortLong(port)); + return inl(port); } void |