Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/dev RASTERCONSOLE is no more



details:   https://anonhg.NetBSD.org/src/rev/283ac7146b51
branches:  trunk
changeset: 344802:283ac7146b51
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Apr 21 17:59:18 2016 +0000

description:
RASTERCONSOLE is no more

diffstat:

 sys/arch/sparc/dev/cgsix_obio.c |  22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diffs (44 lines):

diff -r 431c33978786 -r 283ac7146b51 sys/arch/sparc/dev/cgsix_obio.c
--- a/sys/arch/sparc/dev/cgsix_obio.c   Thu Apr 21 16:09:16 2016 +0000
+++ b/sys/arch/sparc/dev/cgsix_obio.c   Thu Apr 21 17:59:18 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix_obio.c,v 1.26 2012/10/27 17:18:11 chs Exp $ */
+/*     $NetBSD: cgsix_obio.c,v 1.27 2016/04/21 17:59:18 macallan Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.26 2012/10/27 17:18:11 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.27 2016/04/21 17:59:18 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -204,17 +204,15 @@
        else
                isconsole = 0;
 
-       if (isconsole && cgsix_use_rasterconsole) {
-               if (bus_space_map(oba->oba_bustag,
-                                 oba->oba_paddr + CGSIX_RAM_OFFSET,
-                                 sc->sc_ramsize,
-                                 BUS_SPACE_MAP_LINEAR,
-                                 &bh) != 0) {
-                       printf("%s: cannot map pixels\n", device_xname(self));
-                       return;
-               }
-               sc->sc_fb.fb_pixels = (void *)bh;
+       if (bus_space_map(oba->oba_bustag,
+                         oba->oba_paddr + CGSIX_RAM_OFFSET,
+                         sc->sc_ramsize,
+                         BUS_SPACE_MAP_LINEAR,
+                         &bh) != 0) {
+               printf("%s: cannot map pixels\n", device_xname(self));
+               return;
        }
+       sc->sc_fb.fb_pixels = (void *)bh;
 
        cg6attach(sc, name, isconsole);
 }



Home | Main Index | Thread Index | Old Index