diff --git a/sys/arch/amiga/dev/grf.c b/sys/arch/amiga/dev/grf.c index 1e311334ea3f..707d62cb6087 100644 --- a/sys/arch/amiga/dev/grf.c +++ b/sys/arch/amiga/dev/grf.c @@ -1,4 +1,4 @@ -/* $NetBSD: grf.c,v 1.33 1998/01/12 10:39:29 thorpej Exp $ */ +/* $NetBSD: grf.c,v 1.34 1999/08/16 19:55:27 is Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -268,7 +268,6 @@ grfioctl(dev, cmd, data, flag, p) case GRFIOCGSPRITEMAX: case GRFIOCBITBLT: case GRFIOCSETMON: - case GRFIOCBLANK: /* blank ioctl, IOCON/OFF will turn ite on */ case GRFTOGGLE: /* Toggles between Cirrus boards and native ECS on Amiga. 15/11/94 ill */ /* @@ -277,8 +276,16 @@ grfioctl(dev, cmd, data, flag, p) */ return(gp->g_mode(gp, GM_GRFIOCTL, data, cmd, dev)); + case GRFIOCBLANK: /* blank ioctl, IOCON/OFF will turn ite on */ case FBIOSVIDEO: - return(gp->g_mode(gp, GM_GRFIOCTL, data, GRFIOCBLANK, dev)); + error = gp->g_mode(gp, GM_GRFIOCTL, data, GRFIOCBLANK, dev); + if (!error) + gp->g_blank = *(int *)data; + return (error); + + case FBIOGVIDEO: + *(int *)data = gp->g_blank; + return (0); default: #if NVIEW > 0 diff --git a/sys/arch/amiga/dev/grfvar.h b/sys/arch/amiga/dev/grfvar.h index cec1964a134d..5159b045cf66 100644 --- a/sys/arch/amiga/dev/grfvar.h +++ b/sys/arch/amiga/dev/grfvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: grfvar.h,v 1.15 1997/10/19 19:08:00 veego Exp $ */ +/* $NetBSD: grfvar.h,v 1.16 1999/08/16 19:55:27 is Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -68,6 +68,7 @@ struct grf_softc { void (*g_iteputc) __P((struct ite_softc *,int,int,int,int)); void (*g_itecursor) __P((struct ite_softc *,int)); void (*g_itescroll) __P((struct ite_softc *,int,int,int,int)); + int g_blank; /* shadow copy of blank value */ }; /* flags */