diff options
-rw-r--r-- | share/man/man4/man4.sparc/pninek.4 | 27 | ||||
-rw-r--r-- | share/man/man4/man4.sparc/pnozz.4 | 26 | ||||
-rw-r--r-- | sys/arch/sparc/dev/p9000.c | 8 | ||||
-rw-r--r-- | sys/arch/sparc/dev/p9100.c | 11 |
4 files changed, 57 insertions, 15 deletions
diff --git a/share/man/man4/man4.sparc/pninek.4 b/share/man/man4/man4.sparc/pninek.4 index 3aa3a2bbf24..b7c8e6f6a2e 100644 --- a/share/man/man4/man4.sparc/pninek.4 +++ b/share/man/man4/man4.sparc/pninek.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pninek.4,v 1.4 2004/09/30 19:59:27 mickey Exp $ +.\" $OpenBSD: pninek.4,v 1.5 2007/02/25 18:14:46 miod Exp $ .\" .\" Copyright (c) 2003, Miodrag Vallat. .\" Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -25,7 +25,7 @@ .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 16, 2003 +.Dd February 25, 2007 .Dt PNINEK 4 sparc .Os .Sh NAME @@ -33,7 +33,7 @@ .Nd Weitek Power9000 accelerated frame buffer .Sh SYNOPSIS .Cd "btcham0 at obio?" -.Cd "pninek0 at sbus?" +.Cd "pninek0 at sbus? flags 0x0" .Cd "wsdisplay* at pninek?" .Sh DESCRIPTION The @@ -78,6 +78,22 @@ device is also configured, the .Nm will be powered down when the lid of the laptop is closed or the screen is blanked. +.Pp +The +.Nm +driver supports hardware acceleration to erase the screen and scroll text. +By default, acceleration is +.Em not +enabled. +By setting +.Ar flags +to +.Ar 1 +(via +.Xr config 8 +or +.Xr boot_config 8 ) +this acceleration can be enabled. .Sh SEE ALSO .Xr agten 4 , .Xr bwtwo 4 , @@ -99,8 +115,11 @@ is closed or the screen is blanked. .Xr vigra 4 , .Xr wscons 4 , .Xr wsdisplay 4 , -.Xr zx 4 +.Xr zx 4 , +.Xr boot_config 8 , +.Xr config 8 .Sh BUGS There is currently no way to switch back and forth from the onboard display to the external connector. +.Pp It is not possible to change resolutions. diff --git a/share/man/man4/man4.sparc/pnozz.4 b/share/man/man4/man4.sparc/pnozz.4 index cd3e3fa9566..da3036cc12a 100644 --- a/share/man/man4/man4.sparc/pnozz.4 +++ b/share/man/man4/man4.sparc/pnozz.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pnozz.4,v 1.23 2005/07/19 09:36:02 miod Exp $ +.\" $OpenBSD: pnozz.4,v 1.24 2007/02/25 18:14:46 miod Exp $ .\" .\" Copyright (c) 1999 Jason L. Wright (jason@thought.net) .\" All rights reserved. @@ -24,14 +24,14 @@ .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 19, 2005 +.Dd February 25, 2007 .Dt PNOZZ 4 sparc .Os .Sh NAME .Nm pnozz .Nd Weitek Power9100 accelerated frame buffer .Sh SYNOPSIS -.Cd "pnozz0 at sbus?" +.Cd "pnozz0 at sbus? flags 0x0" .Cd "wsdisplay* at pnozz?" .Sh DESCRIPTION The @@ -62,6 +62,22 @@ device is also configured, the .Nm will be powered down when the lid of the laptop is closed or the screen is blanked. +.Pp +The +.Nm +driver supports hardware acceleration to erase the screen and scroll text. +By default, acceleration is +.Em not +enabled. +By setting +.Ar flags +to +.Ar 1 +(via +.Xr config 8 +or +.Xr boot_config 8 ) +this acceleration can be enabled. .Sh EXTERNAL VIDEO If the .Xr tctrl 4 @@ -88,6 +104,8 @@ an external display is connected, even if the laptop lid is closed. .Xr vigra 4 , .Xr wscons 4 , .Xr wsdisplay 4 , -.Xr zx 4 +.Xr zx 4 , +.Xr boot_config 8 , +.Xr config 8 .Sh BUGS It is not possible yet to change resolutions or color depth. diff --git a/sys/arch/sparc/dev/p9000.c b/sys/arch/sparc/dev/p9000.c index 5c38a66ef9c..f957fb442e8 100644 --- a/sys/arch/sparc/dev/p9000.c +++ b/sys/arch/sparc/dev/p9000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p9000.c,v 1.19 2007/02/18 18:40:35 miod Exp $ */ +/* $OpenBSD: p9000.c,v 1.20 2007/02/25 18:14:48 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. @@ -263,7 +263,8 @@ p9000attach(struct device *parent, struct device *self, void *args) /* * Plug-in accelerated console operations. */ - p9000_ras_init(sc); + if (sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags != 0) + p9000_ras_init(sc); /* enable video */ p9000_burner(sc, 1, 0); @@ -300,7 +301,8 @@ p9000_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p) case WSDISPLAYIO_SMODE: /* Restore proper acceleration state upon leaving X11 */ if (*(u_int *)data == WSDISPLAYIO_MODE_EMUL) { - p9000_ras_init(sc); + if (sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags != 0) + p9000_ras_init(sc); } break; diff --git a/sys/arch/sparc/dev/p9100.c b/sys/arch/sparc/dev/p9100.c index e5247e16863..bddcd124e7c 100644 --- a/sys/arch/sparc/dev/p9100.c +++ b/sys/arch/sparc/dev/p9100.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p9100.c,v 1.43 2007/02/18 18:40:35 miod Exp $ */ +/* $OpenBSD: p9100.c,v 1.44 2007/02/25 18:14:48 miod Exp $ */ /* * Copyright (c) 2003, 2005, 2006, Miodrag Vallat. @@ -408,7 +408,8 @@ p9100attach(struct device *parent, struct device *self, void *args) /* * Plug-in accelerated console operations. */ - p9100_ras_init(sc); + if (sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags != 0) + p9100_ras_init(sc); /* enable video */ p9100_burner(sc, 1, 0); @@ -458,7 +459,8 @@ p9100_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p) #endif fbwscons_setcolormap(&sc->sc_sunfb, p9100_setcolor); /* Restore proper acceleration state as well */ - p9100_ras_init(sc); + if (sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags != 0) + p9100_ras_init(sc); break; } break; @@ -1349,7 +1351,8 @@ p9100_prom(void *v) sc->sc_mapmode != WSDISPLAYIO_MODE_EMUL) { p9100_initialize_ramdac(sc, LCD_WIDTH, 8); fbwscons_setcolormap(&sc->sc_sunfb, p9100_setcolor); - p9100_ras_init(sc); + if (sc->sc_sunfb.sf_dev.dv_cfdata->cf_flags != 0) + p9100_ras_init(sc); } } #endif /* NTCTRL > 0 */ |