patch-2.1.111 linux/drivers/video/creatorfb.c

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

diff -u --recursive --new-file v2.1.110/linux/drivers/video/creatorfb.c linux/drivers/video/creatorfb.c
@@ -1,4 +1,4 @@
-/* $Id: creatorfb.c,v 1.5 1998/07/13 12:47:12 jj Exp $
+/* $Id: creatorfb.c,v 1.7 1998/07/21 10:36:48 jj Exp $
  * creatorfb.c: Creator/Creator3D frame buffer driver
  *
  * Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
@@ -191,7 +191,6 @@
 	fbc->pmask = 0xffffffff;
 	fbc->unk2 = 8;
 
-	/* FIXME: Optimize this by allowing 8/16 fontheigh only and introduce p->fontheightlog */
 	if (p->fontheightlog) {
 		y = sy << p->fontheightlog; h = height << p->fontheightlog;
 	} else {
@@ -390,7 +389,7 @@
 
 static struct display_switch ffb_dispsw __initdata = {
 	ffb_setup, fbcon_redraw_bmove, ffb_clear, ffb_putc, ffb_putcs, ffb_revc, 
-	NULL, NULL, FONTWIDTHRANGE(1,16) /* Allow fontwidths up to 16 */
+	NULL, NULL, NULL, FONTWIDTHRANGE(1,16) /* Allow fontwidths up to 16 */
 };
 
 static void ffb_margins (struct fb_info_sbusfb *fb, struct display *p, int x_margin, int y_margin)
@@ -477,6 +476,7 @@
 	fix->line_length = 8192;
 	fix->mmio_start = (char *)(regs[0].phys_addr) + FFB_FBC_REGS_POFF;
 	fix->mmio_len = PAGE_SIZE;
+	fix->accel = FB_ACCEL_SUN_CREATOR;
 	
 	var->bits_per_pixel = 32;
 	var->green.offset = 8;

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