patch-2.1.109 linux/drivers/video/fbcon.h

Next file: linux/drivers/video/font_sun8x16.c
Previous file: linux/drivers/video/fbcon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/drivers/video/fbcon.h linux/drivers/video/fbcon.h
@@ -26,7 +26,7 @@
 		  int height, int width);
     void (*putc)(struct vc_data *conp, struct display *p, int c, int yy,
     		 int xx);
-    void (*putcs)(struct vc_data *conp, struct display *p, const char *s,
+    void (*putcs)(struct vc_data *conp, struct display *p, const unsigned short *s,
 		  int count, int yy, int xx);     
     void (*revc)(struct display *p, int xx, int yy);
     void (*cursor)(struct display *p, int mode, int xx, int yy);
@@ -38,22 +38,31 @@
      */
 
 /* Color */
-#define attr_fgcol(p,conp)    \
-	(((conp)->vc_attr >> ((p)->inverse ? 4 : 0)) & 0x0f)
-#define attr_bgcol(p,conp)    \
-	(((conp)->vc_attr >> ((p)->inverse ? 0 : 4)) & 0x0f)
+#define attr_fgcol(p,s)    \
+	(((s) >> ((p)->inverse ? 12 : 8)) & 0x0f)
+#define attr_bgcol(p,s)    \
+	(((s) >> ((p)->inverse ? 8 : 12)) & 0x0f)
 #define	attr_bgcol_ec(p,conp) \
 	(((conp)->vc_video_erase_char >> ((p)->inverse ? 8 : 12)) & 0x0f)
 
 /* Monochrome */
-#define attr_bold(p,conp) \
-	((conp)->vc_attr & 2)
-#define attr_reverse(p,conp) \
-	(((conp)->vc_attr & 8) ^ ((p)->inverse ? 8 : 0))
-#define attr_underline(p,conp) \
-	((conp)->vc_attr & 4)
-#define attr_blink(p,conp) \
-	((conp)->vc_attr & 0x80)
+#define attr_bold(p,s) \
+	((s) & 0x200)
+#define attr_reverse(p,s) \
+	(((s) & 0x800) ^ ((p)->inverse ? 0x800 : 0))
+#define attr_underline(p,s) \
+	((s) & 0x400)
+#define attr_blink(p,s) \
+	((s) & 0x8000)
+	
+    /*
+     *  Scroll Method
+     */
+
+#define SCROLL_YWRAP	(0)
+#define SCROLL_YPAN	(1)
+#define SCROLL_YMOVE	(2)
+#define SCROLL_YREDRAW	(3)
 
 
 /* ================================================================= */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov