summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-05-18 13:31:13 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-05-18 13:31:13 +0000
commitf91d6bab7f52d69c80c813778f169971cee7a861 (patch)
tree841c9dcbe91b2d28cfb48c32f9b4809fd385f9b1 /sys/arch/sparc/dev
parent5f6bc7799cd98587b12f1c087a71a3c729eef23c (diff)
add machdep.vsyncblank sysctl for controlling whether vsync is disabled
when the monitor is blanked.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/cgsix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c
index 8ace1e00fcc..a0f3194672b 100644
--- a/sys/arch/sparc/dev/cgsix.c
+++ b/sys/arch/sparc/dev/cgsix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgsix.c,v 1.12 1999/05/08 01:15:58 jason Exp $ */
+/* $OpenBSD: cgsix.c,v 1.13 2000/05/18 13:31:12 jason Exp $ */
/* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */
/*
@@ -88,6 +88,8 @@
#include <sparc/dev/pfourreg.h>
#endif
+extern int sparc_vsyncblank;
+
union cursor_cmap { /* colormap, like bt_cmap, but tiny */
u_char cm_map[2][3]; /* 2 R/G/B entries */
u_int cm_chip[2]; /* 2 chip equivalents */
@@ -429,7 +431,8 @@ cgsixioctl(dev, cmd, data, flags, p)
cg6_unblank(&sc->sc_dev);
else if (!sc->sc_blanked) {
sc->sc_blanked = 1;
- sc->sc_thc->thc_misc &= ~(THC_MISC_VIDEN|THC_MISC_SYNCEN);
+ sc->sc_thc->thc_misc &= ~(THC_MISC_VIDEN |
+ (sparc_vsyncblank ? THC_MISC_SYNCEN : 0));
}
break;