summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/hyper.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-01-22 22:26:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-01-22 22:26:48 +0000
commit136b827179fda4900a63b42898dc1cb8a99eaf6b (patch)
tree5d14a89fbffb5011e95654c98cbc05540b2197b9 /sys/arch/hp300/dev/hyper.c
parent57d8db0e2455ee60867a4aba05055c2eca1d7a2d (diff)
Honour wsconsctl display.vblank setting.
Diffstat (limited to 'sys/arch/hp300/dev/hyper.c')
-rw-r--r--sys/arch/hp300/dev/hyper.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/hyper.c b/sys/arch/hp300/dev/hyper.c
index eaf798490fb..79c7b8cf7b9 100644
--- a/sys/arch/hp300/dev/hyper.c
+++ b/sys/arch/hp300/dev/hyper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hyper.c,v 1.7 2005/01/21 16:24:12 miod Exp $ */
+/* $OpenBSD: hyper.c,v 1.8 2005/01/22 22:26:47 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat.
@@ -197,7 +197,7 @@ hyper_reset(struct diofb *fb, int scode, struct diofbreg *fbr)
/*
* Enable display.
*/
- hy->nblank = 0x05;
+ hy->nblank = DISP_VIDEO_ENABLE | DISP_SYNC_ENABLE;
return (0);
}
@@ -241,9 +241,12 @@ hyper_burner(void *v, u_int on, u_int flags)
volatile struct hyboxfb *hy = (struct hyboxfb *)fb->regkva;
if (on) {
- hy->nblank = 0x05;
+ hy->nblank = DISP_VIDEO_ENABLE | DISP_SYNC_ENABLE;
} else {
- hy->nblank = 0x00;
+ if (flags & WSDISPLAY_BURN_VBLANK)
+ hy->nblank = 0;
+ else
+ hy->nblank = DISP_SYNC_ENABLE;
}
}