patch-2.2.10 linux/drivers/video/cgsixfb.c
Next file: linux/drivers/video/fbcon.c
Previous file: linux/drivers/sound/sound_core.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Sat May 29 11:10:15 1999
- Orig file:
v2.2.9/linux/drivers/video/cgsixfb.c
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.9/linux/drivers/video/cgsixfb.c linux/drivers/video/cgsixfb.c
@@ -1,4 +1,4 @@
-/* $Id: cgsixfb.c,v 1.16 1999/03/09 14:01:49 davem Exp $
+/* $Id: cgsixfb.c,v 1.16.2.1 1999/05/25 00:59:35 davem Exp $
* cgsixfb.c: CGsix (GX,GXplus) frame buffer driver
*
* Copyright (C) 1996,1998 Jakub Jelinek (jj@ultra.linux.cz)
@@ -588,7 +588,7 @@
p->screen_base += (y_margin - fb->y_margin) * p->line_length + (x_margin - fb->x_margin);
}
-static char idstring[60] __initdata = { 0 };
+static char idstring[70] __initdata = { 0 };
__initfunc(char *cgsixfb_init(struct fb_info_sbusfb *fb))
{
@@ -599,6 +599,7 @@
unsigned long phys = fb->sbdp->reg_addrs[0].phys_addr;
u32 conf;
char *p;
+ char *cardtype;
struct bt_regs *bt;
strcpy(fb->info.modename, "CGsix");
@@ -656,15 +657,29 @@
case CG6_FHC_CPU_68020: p = "68020"; break;
default: p = "i386"; break;
}
+
+ if (((conf >> CG6_FHC_REV_SHIFT) & CG6_FHC_REV_MASK) >= 11) {
+ if (fix->smem_len <= 0x100000) {
+ cardtype = "TurboGX";
+ } else {
+ cardtype = "TurboGX+";
+ }
+ } else {
+ if (fix->smem_len <= 0x100000) {
+ cardtype = "GX";
+ } else {
+ cardtype = "GX+";
+ }
+ }
sprintf(idstring,
#ifdef __sparc_v9__
- "cgsix at %016lx TEC Rev %x CPU %s Rev %x", phys,
+ "cgsix at %016lx TEC Rev %x CPU %s Rev %x [%s]", phys,
#else
- "cgsix at %x.%08lx TEC Rev %x CPU %s Rev %x", fb->iospace, phys,
+ "cgsix at %x.%08lx TEC Rev %x CPU %s Rev %x [%s]", fb->iospace, phys,
#endif
(fb->s.cg6.thc->thc_misc >> CG6_THC_MISC_REV_SHIFT) & CG6_THC_MISC_REV_MASK,
- p, conf >> CG6_FHC_REV_SHIFT & CG6_FHC_REV_MASK);
+ p, conf >> CG6_FHC_REV_SHIFT & CG6_FHC_REV_MASK, cardtype);
cg6_reset(fb);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)