summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-06-24 19:41:34 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-06-24 19:41:34 +0000
commited3904ebe7a16294b13a9be31d2db6d33b5f5467 (patch)
tree5d0e1739ee53d2896b44137aa9d6b84d1ac4c34f /sys/arch
parent1255ee5368c4c74e0f8254df0dc1d73d92c07dc4 (diff)
Revert the addition of the blanking code - it will corrupt displays after long
blanking periods...
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/creator.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c
index 8d625951539..be9a0203042 100644
--- a/sys/arch/sparc64/dev/creator.c
+++ b/sys/arch/sparc64/dev/creator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: creator.c,v 1.28 2003/06/23 16:49:44 jason Exp $ */
+/* $OpenBSD: creator.c,v 1.29 2003/06/24 19:41:33 miod Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -67,7 +67,6 @@ int creator_alloc_screen(void *, const struct wsscreen_descr *, void **,
void creator_free_screen(void *, void *);
int creator_show_screen(void *, void *, int, void (*cb)(void *, int, int),
void *);
-void creator_burner(void *, u_int, u_int);
paddr_t creator_mmap(void *, off_t, int);
void creator_ras_fifo_wait(struct creator_softc *, int);
void creator_ras_wait(struct creator_softc *);
@@ -91,7 +90,7 @@ struct wsdisplay_accessops creator_accessops = {
NULL, /* load font */
NULL, /* scrollback */
NULL, /* getchar */
- creator_burner
+ NULL, /* burner */
};
struct cfdriver creator_cd = {
@@ -160,7 +159,7 @@ creator_attach(struct creator_softc *sc)
if (sc->sc_console) {
sc->sc_sunfb.sf_ro.ri_updatecursor = creator_ras_updatecursor;
fbwscons_console_init(&sc->sc_sunfb, &creator_stdscreen, -1,
- creator_burner);
+ NULL);
}
waa.console = sc->sc_console;
@@ -428,29 +427,6 @@ creator_show_screen(v, cookie, waitok, cb, cbarg)
return (0);
}
-void
-creator_burner(void *v, u_int on, u_int flags)
-{
- struct creator_softc *sc = v;
- u_int32_t tgen;
-
- DAC_WRITE(sc, FFB_DAC_TYPE, DAC_TYPE_BLANK);
- tgen = DAC_READ(sc, FFB_DAC_VALUE);
- if (on) {
- tgen |= DAC_BLANK_VIDEO_ENABLE;
- tgen &= ~(DAC_BLANK_HSYNC_DISABLE | DAC_BLANK_VSYNC_DISABLE);
- } else {
- tgen &= ~DAC_BLANK_VIDEO_ENABLE;
-#if 0 /* yields very strange results sometimes when unblanking... */
- if (flags & WSDISPLAY_BURN_VBLANK)
- tgen |= DAC_BLANK_HSYNC_DISABLE |
- DAC_BLANK_VSYNC_DISABLE;
-#endif
- }
- DAC_WRITE(sc, FFB_DAC_TYPE, DAC_TYPE_BLANK);
- DAC_WRITE(sc, FFB_DAC_VALUE, tgen);
-}
-
const struct creator_mappings {
bus_addr_t uoff;
bus_addr_t poff;