summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-06-02 19:51:04 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-06-02 19:51:04 +0000
commit8c7a91c38f582950fd5386dba1e1be5c911f2aff (patch)
tree39b310356e371a429aa629580c3e0b21a962a8a3 /sys/dev
parent0afd87567cee441f46043bbe24a0f8e37ac1935a (diff)
Turn off timing if WSDISPLAY_BURN_VBLANK is set (which in turn puts most
monitors in standby).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sbus/cgthree.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/sbus/cgthree.c b/sys/dev/sbus/cgthree.c
index 8e82e22c860..3add41cdb64 100644
--- a/sys/dev/sbus/cgthree.c
+++ b/sys/dev/sbus/cgthree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgthree.c,v 1.16 2002/05/21 20:25:28 jason Exp $ */
+/* $OpenBSD: cgthree.c,v 1.17 2002/06/02 19:51:03 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -634,14 +634,17 @@ cgthree_burner(vsc, on, flags)
{
struct cgthree_softc *sc = vsc;
int s;
- u_int32_t fbc;
+ u_int8_t fbc;
s = splhigh();
fbc = FBC_READ(sc, CG3_FBC_CTRL);
if (on)
- fbc |= FBC_CTRL_VENAB;
- else
+ fbc |= FBC_CTRL_VENAB | FBC_CTRL_TIME;
+ else {
fbc &= ~FBC_CTRL_VENAB;
+ if (flags & WSDISPLAY_BURN_VBLANK)
+ fbc &= ~FBC_CTRL_TIME;
+ }
FBC_WRITE(sc, CG3_FBC_CTRL, fbc);
splx(s);
}