sisfb: replace SiS_SetMemory with memset_io
Get rid of one more wrapper. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Thomas Winischhofer <thomas@winischhofer.net> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Родитель
2ad2847269
Коммит
ec49ec33e2
|
@ -1578,7 +1578,7 @@ SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
|
|||
|
||||
if(SiS_Pr->SiS_ModeType >= ModeEGA) {
|
||||
if(ModeNo > 0x13) {
|
||||
SiS_SetMemory(memaddr, memsize, 0);
|
||||
memset_io(memaddr, 0, memsize);
|
||||
} else {
|
||||
pBuffer = (unsigned short SISIOMEMTYPE *)memaddr;
|
||||
for(i = 0; i < 0x4000; i++) writew(0x0000, &pBuffer[i]);
|
||||
|
@ -1587,7 +1587,7 @@ SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
|
|||
pBuffer = (unsigned short SISIOMEMTYPE *)memaddr;
|
||||
for(i = 0; i < 0x4000; i++) writew(0x0720, &pBuffer[i]);
|
||||
} else {
|
||||
SiS_SetMemory(memaddr, 0x8000, 0);
|
||||
memset_io(memaddr, 0, 0x8000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -63,6 +63,4 @@
|
|||
#warning sisfb will not work!
|
||||
#endif
|
||||
|
||||
#define SiS_SetMemory(MemoryAddress,MemorySize,value) memset_io(MemoryAddress, value, MemorySize)
|
||||
|
||||
#endif /* _OSDEF_H_ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче