diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-12-20 23:50:12 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-12-22 12:56:41 +0900 |
commit | e68046b72e9b35d054e3d98d71dc2c69d7e88e1e (patch) | |
tree | fdada04a4b78266482e6794206883d8589cc67ff /drivers/video/sis/sis.h | |
parent | b5b7dda7b5d9126d531ffa212b6a89d72aeac90a (diff) | |
download | linux-3.10-e68046b72e9b35d054e3d98d71dc2c69d7e88e1e.tar.gz linux-3.10-e68046b72e9b35d054e3d98d71dc2c69d7e88e1e.tar.bz2 linux-3.10-e68046b72e9b35d054e3d98d71dc2c69d7e88e1e.zip |
sisfb: remove duplicate function declarations
Remove duplicate register I/O function declarations by moving them into
a common header file.
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/sis.h')
-rw-r--r-- | drivers/video/sis/sis.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/video/sis/sis.h b/drivers/video/sis/sis.h index 80d89d37c41..a94272d0126 100644 --- a/drivers/video/sis/sis.h +++ b/drivers/video/sis/sis.h @@ -307,7 +307,20 @@ #define VB2_LCDOVER1600BRIDGE (VB2_307T | VB2_307LV) #define VB2_RAMDAC202MHZBRIDGE (VB2_301C | VB2_307T) -/* I/O port access macros */ +/* I/O port access macros and functions */ + +void SiS_SetReg(SISIOADDRESS, unsigned short, unsigned short); +void SiS_SetRegByte(SISIOADDRESS, unsigned short); +void SiS_SetRegShort(SISIOADDRESS, unsigned short); +void SiS_SetRegLong(SISIOADDRESS, unsigned int); +void SiS_SetRegANDOR(SISIOADDRESS, unsigned short, unsigned short, unsigned short); +void SiS_SetRegAND(SISIOADDRESS, unsigned short, unsigned short); +void SiS_SetRegOR(SISIOADDRESS, unsigned short, unsigned short); +unsigned char SiS_GetReg(SISIOADDRESS, unsigned short); +unsigned char SiS_GetRegByte(SISIOADDRESS); +unsigned short SiS_GetRegShort(SISIOADDRESS); +unsigned int SiS_GetRegLong(SISIOADDRESS); + #define inSISREG(base) inb(base) #define outSISREG(base,val) outb(val,base) |