patch-2.2.3 linux/include/asm-alpha/vga.h

Next file: linux/include/asm-mips/vga.h
Previous file: linux/include/asm-alpha/semaphore.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.2/linux/include/asm-alpha/vga.h linux/include/asm-alpha/vga.h
@@ -21,7 +21,7 @@
 		writew(val, (unsigned long) addr);
 }
 
-extern inline u16 scr_readw(u16 *addr)
+extern inline u16 scr_readw(const u16 *addr)
 {
 	if ((long) addr < 0)
 		return *addr;
@@ -37,12 +37,12 @@
 		memsetw_io(s, c, count);
 }
 
-extern inline void scr_memcpyw_from(u16 *d, u16 *s, unsigned int count)
+extern inline void scr_memcpyw_from(u16 *d, const u16 *s, unsigned int count)
 {
 	memcpy_fromio(d, s, count);
 }
 
-extern inline void scr_memcpyw_to(u16 *d, u16 *s, unsigned int count)
+extern inline void scr_memcpyw_to(u16 *d, const u16 *s, unsigned int count)
 {
 	memcpy_toio(d, s, count);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)