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>

authored by Aaro Koskinen and committed by Paul Mundt 2ad28472 f7854e5d

+10 -40
+10 -10
drivers/video/sis/init.c
··· 882 void 883 SiS_SetReg(SISIOADDRESS port, unsigned short index, unsigned short data) 884 { 885 - OutPortByte(port, index); 886 - OutPortByte(port + 1, data); 887 } 888 889 void 890 SiS_SetRegByte(SISIOADDRESS port, unsigned short data) 891 { 892 - OutPortByte(port, data); 893 } 894 895 void 896 SiS_SetRegShort(SISIOADDRESS port, unsigned short data) 897 { 898 - OutPortWord(port, data); 899 } 900 901 void 902 SiS_SetRegLong(SISIOADDRESS port, unsigned int data) 903 { 904 - OutPortLong(port, data); 905 } 906 907 unsigned char 908 SiS_GetReg(SISIOADDRESS port, unsigned short index) 909 { 910 - OutPortByte(port, index); 911 - return(InPortByte(port + 1)); 912 } 913 914 unsigned char 915 SiS_GetRegByte(SISIOADDRESS port) 916 { 917 - return(InPortByte(port)); 918 } 919 920 unsigned short 921 SiS_GetRegShort(SISIOADDRESS port) 922 { 923 - return(InPortWord(port)); 924 } 925 926 unsigned int 927 SiS_GetRegLong(SISIOADDRESS port) 928 { 929 - return(InPortLong(port)); 930 } 931 932 void
··· 882 void 883 SiS_SetReg(SISIOADDRESS port, unsigned short index, unsigned short data) 884 { 885 + outb((u8)index, port); 886 + outb((u8)data, port + 1); 887 } 888 889 void 890 SiS_SetRegByte(SISIOADDRESS port, unsigned short data) 891 { 892 + outb((u8)data, port); 893 } 894 895 void 896 SiS_SetRegShort(SISIOADDRESS port, unsigned short data) 897 { 898 + outw((u16)data, port); 899 } 900 901 void 902 SiS_SetRegLong(SISIOADDRESS port, unsigned int data) 903 { 904 + outl((u32)data, port); 905 } 906 907 unsigned char 908 SiS_GetReg(SISIOADDRESS port, unsigned short index) 909 { 910 + outb((u8)index, port); 911 + return inb(port + 1); 912 } 913 914 unsigned char 915 SiS_GetRegByte(SISIOADDRESS port) 916 { 917 + return inb(port); 918 } 919 920 unsigned short 921 SiS_GetRegShort(SISIOADDRESS port) 922 { 923 + return inw(port); 924 } 925 926 unsigned int 927 SiS_GetRegLong(SISIOADDRESS port) 928 { 929 + return inl(port); 930 } 931 932 void
-30
drivers/video/sis/osdef.h
··· 54 #ifndef _SIS_OSDEF_H_ 55 #define _SIS_OSDEF_H_ 56 57 - #ifdef OutPortByte 58 - #undef OutPortByte 59 - #endif 60 - 61 - #ifdef OutPortWord 62 - #undef OutPortWord 63 - #endif 64 - 65 - #ifdef OutPortLong 66 - #undef OutPortLong 67 - #endif 68 - 69 - #ifdef InPortByte 70 - #undef InPortByte 71 - #endif 72 - 73 - #ifdef InPortWord 74 - #undef InPortWord 75 - #endif 76 - 77 - #ifdef InPortLong 78 - #undef InPortLong 79 - #endif 80 - 81 /**********************************************************************/ 82 /* LINUX KERNEL */ 83 /**********************************************************************/ ··· 63 #warning sisfb will not work! 64 #endif 65 66 - #define OutPortByte(p,v) outb((u8)(v),(SISIOADDRESS)(p)) 67 - #define OutPortWord(p,v) outw((u16)(v),(SISIOADDRESS)(p)) 68 - #define OutPortLong(p,v) outl((u32)(v),(SISIOADDRESS)(p)) 69 - #define InPortByte(p) inb((SISIOADDRESS)(p)) 70 - #define InPortWord(p) inw((SISIOADDRESS)(p)) 71 - #define InPortLong(p) inl((SISIOADDRESS)(p)) 72 #define SiS_SetMemory(MemoryAddress,MemorySize,value) memset_io(MemoryAddress, value, MemorySize) 73 74 #endif /* _OSDEF_H_ */
··· 54 #ifndef _SIS_OSDEF_H_ 55 #define _SIS_OSDEF_H_ 56 57 /**********************************************************************/ 58 /* LINUX KERNEL */ 59 /**********************************************************************/ ··· 87 #warning sisfb will not work! 88 #endif 89 90 #define SiS_SetMemory(MemoryAddress,MemorySize,value) memset_io(MemoryAddress, value, MemorySize) 91 92 #endif /* _OSDEF_H_ */