summaryrefslogtreecommitdiffstats
path: root/include/linux/selection.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1997-08-06 19:14:48 +0000
committerMiguel de Icaza <miguel@nuclecu.unam.mx>1997-08-06 19:14:48 +0000
commite2819e52a162873ff5061de81bb749831bdb5de9 (patch)
tree6067ea700202750ba335a423696f2972700e5f76 /include/linux/selection.h
parent17a005074429bbf143e40401f405ae4363e56828 (diff)
Merge to 2.1.38.
IMPORTANT NOTE: I could not figure out what information is the one that should be used for the following files (ie, those that were in our tree, or those that came from Linus' patch), please, check these: include/asm-mips/jazz.h include/asm-mips/jazzdma.h include/asm-mips/ioctls.h
Diffstat (limited to 'include/linux/selection.h')
-rw-r--r--include/linux/selection.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/selection.h b/include/linux/selection.h
index cad2a29b0..e41e9ebef 100644
--- a/include/linux/selection.h
+++ b/include/linux/selection.h
@@ -23,11 +23,11 @@ extern unsigned long get_video_size_row(unsigned int console);
#define get_video_num_columns(dummy) video_num_columns
#define get_video_num_lines(dummy) video_num_lines
#define get_video_size_row(dummy) video_size_row
+#endif
+
extern unsigned long video_num_columns;
extern unsigned long video_num_lines;
extern unsigned long video_size_row;
-#endif
-
extern unsigned char video_type;
extern unsigned long video_mem_base;
extern unsigned long video_mem_term;
@@ -73,8 +73,6 @@ extern void putconsxy(int currcons, char *p);
/* how to access screen memory */
-#include <linux/config.h>
-
#if defined(CONFIG_TGA_CONSOLE)
extern int tga_blitc(unsigned int, unsigned long);
@@ -244,17 +242,25 @@ static inline unsigned char scr_readb(unsigned char * addr)
static inline void scr_writew(unsigned short val, unsigned short * addr)
{
+#ifdef __powerpc__
+ st_le16(addr, val);
+#else
if ((long) addr < 0)
*addr = val;
else
writew(val, (unsigned long) addr);
+#endif /* !__powerpc__ */
}
static inline unsigned short scr_readw(unsigned short * addr)
{
+#ifdef __powerpc__
+ return ld_le16(addr);
+#else
if ((long) addr < 0)
return *addr;
return readw((unsigned long) addr);
+#endif /* !__powerpc__ */
}
#endif /* CONFIG_TGA_CONSOLE */