Do not use `rasterconsole' by default on this framebuffer.

This commit is contained in:
pk 1997-08-07 19:12:30 +00:00
parent c03541be22
commit dd07701791
1 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgsix.c,v 1.32 1997/07/29 09:58:04 fair Exp $ */
/* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */
/*
* Copyright (c) 1993
@ -141,8 +141,12 @@ static struct fbdriver cg6_fbdriver = {
/*
* Unlike the bw2 and cg3 drivers, we do not need to provide an rconsole
* interface, as the cg6 is fast enough.
* interface, as the cg6 is fast enough.. but provide a knob to turn it
* on anyway.
*/
#ifdef RASTERCONSOLE
int cgsix_use_rasterconsole = 0;
#endif
extern int fbnode;
@ -323,9 +327,12 @@ cgsixattach(parent, self, args)
if (isconsole) {
printf(" (console)\n");
#ifdef RASTERCONSOLE
sc->sc_fb.fb_pixels = (caddr_t)
mapiodev(ca->ca_ra.ra_reg, O(cg6_ram[0]), ramsize);
fbrcons_init(&sc->sc_fb);
if (cgsix_use_rasterconsole) {
sc->sc_fb.fb_pixels = (caddr_t)
mapiodev(ca->ca_ra.ra_reg,
O(cg6_ram[0]), ramsize);
fbrcons_init(&sc->sc_fb);
}
#endif
} else
printf("\n");