Module Name:    src
Committed By:   macallan
Date:           Tue Feb  5 21:45:40 UTC 2013

Modified Files:
        src/sys/arch/sparc/dev: cgfourteen.c cgfourteenvar.h

Log Message:
throw out RASTERCONSOLE goo


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/sparc/dev/cgfourteen.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sparc/dev/cgfourteenvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/dev/cgfourteen.c
diff -u src/sys/arch/sparc/dev/cgfourteen.c:1.68 src/sys/arch/sparc/dev/cgfourteen.c:1.69
--- src/sys/arch/sparc/dev/cgfourteen.c:1.68	Sat Oct 27 17:18:11 2012
+++ src/sys/arch/sparc/dev/cgfourteen.c	Tue Feb  5 21:45:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgfourteen.c,v 1.68 2012/10/27 17:18:11 chs Exp $ */
+/*	$NetBSD: cgfourteen.c,v 1.69 2013/02/05 21:45:39 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -128,8 +128,6 @@ static struct fbdriver cgfourteenfbdrive
 	cgfourteenpoll, cgfourteenmmap, nokqfilter
 };
 
-extern struct tty *fbconstty;
-
 static void cg14_set_video(struct cgfourteen_softc *, int);
 static int  cg14_get_video(struct cgfourteen_softc *);
 static int  cg14_get_cmap(struct fbcmap *, union cg14cmap *, int);
@@ -149,10 +147,6 @@ static int  cg14_do_cursor(struct cgfour
                            struct wsdisplay_cursor *);
 #endif
 
-#if defined(RASTERCONSOLE) && (NWSDISPLAY > 0)
-#error "You can't have it both ways - either RASTERCONSOLE or wsdisplay"
-#endif
-
 /*
  * Match a cgfourteen.
  */
@@ -184,18 +178,6 @@ cgfourteenmatch(device_t parent, struct 
  */
 #define COLOUR_OFFSET (256*1024)
 
-#ifdef RASTERCONSOLE
-static void cg14_set_rcons_luts(struct cgfourteen_softc *sc)
-{
-	int i;
-
-	for (i=0;i<CG14_CLUT_SIZE;i++) sc->sc_xlut->xlut_lut[i] = 0x22;
-	for (i=0;i<CG14_CLUT_SIZE;i++) sc->sc_clut2->clut_lut[i] = 0x00ffffff;
-	sc->sc_clut2->clut_lut[0] = 0x00ffffff;
-	sc->sc_clut2->clut_lut[255] = 0;
-}
-#endif /* RASTERCONSOLE */
-
 #if NWSDISPLAY > 0
 static int	cg14_ioctl(void *, void *, u_long, void *, int, struct lwp *);
 static paddr_t	cg14_mmap(void *, void *, off_t, int);
@@ -315,40 +297,6 @@ cgfourteenattach(device_t parent, device
 	/* See if we're the console */
         isconsole = fb_is_console(node);
 
-#if defined(RASTERCONSOLE)
-	if (isconsole) {
-		printf(" (console)\n");
-		/* *sbus*_bus_map?  but that's how we map the regs... */
-		if (sbus_bus_map( sc->sc_bustag,
-				  sc->sc_physadr[CG14_PXL_IDX].sbr_slot,
-				  sc->sc_physadr[CG14_PXL_IDX].sbr_offset +
-				    0x03800000,
-				  1152 * 900, BUS_SPACE_MAP_LINEAR,
-				  &bh) != 0) {
-			printf("%s: cannot map pixels\n",
-			    device_xname(sc->sc_dev));
-			return;
-		}
-		sc->sc_rcfb = sc->sc_fb;
-		sc->sc_rcfb.fb_type.fb_type = FBTYPE_SUN3COLOR;
-		sc->sc_rcfb.fb_type.fb_depth = 8;
-		sc->sc_rcfb.fb_linebytes = 1152;
-		sc->sc_rcfb.fb_type.fb_size = roundup(1152*900,NBPG);
-		sc->sc_rcfb.fb_pixels = (void *)bh;
-
-		printf("vram at %p\n",(void *)bh);
-		/* XXX should use actual screen size */
-
-		for (i = 0; i < ramsize; i++)
-		    ((unsigned char *)bh)[i] = 0;
-		fbrcons_init(&sc->sc_rcfb);
-		cg14_set_rcons_luts(sc);
-		sc->sc_ctl->ctl_mctl = CG14_MCTL_ENABLEVID | 
-		    CG14_MCTL_PIXMODE_32 | CG14_MCTL_POWERCTL;
-	} else
-		printf("\n");
-#endif
-
 #if NWSDISPLAY > 0
 	prom_getprop(sa->sa_node, "address", 4, &items, &ptr);
 	if (fbva[1] == 0) {

Index: src/sys/arch/sparc/dev/cgfourteenvar.h
diff -u src/sys/arch/sparc/dev/cgfourteenvar.h:1.13 src/sys/arch/sparc/dev/cgfourteenvar.h:1.14
--- src/sys/arch/sparc/dev/cgfourteenvar.h:1.13	Tue Aug 31 21:14:57 2010
+++ src/sys/arch/sparc/dev/cgfourteenvar.h	Tue Feb  5 21:45:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgfourteenvar.h,v 1.13 2010/08/31 21:14:57 macallan Exp $ */
+/*	$NetBSD: cgfourteenvar.h,v 1.14 2013/02/05 21:45:39 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -74,9 +74,6 @@ struct cg14_cursor {		/* cg14 hardware c
 struct cgfourteen_softc {
 	device_t	sc_dev;		/* base device */
 	struct fbdevice	sc_fb;		/* frame buffer device */
-#ifdef RASTERCONSOLE
-	struct fbdevice	sc_rcfb;	/* sc_fb variant for rcons */
-#endif
 	bus_space_tag_t	sc_bustag;
 	struct sbus_reg	sc_physadr[2];	/* phys addrs of h/w */
 	bus_space_handle_t sc_regh;	/* register space */

Reply via email to