Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/amiga/dev Pull up revision 1.34 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/d7eaeb666e42
branches:  netbsd-1-4
changeset: 470376:d7eaeb666e42
user:      he <he%NetBSD.org@localhost>
date:      Fri Feb 18 19:34:03 2000 +0000

description:
Pull up revision 1.34 (requested by is):
  Implement GRFIOGLANK ioctl, which is nowadays needed by
  screenblank(8).

diffstat:

 sys/arch/amiga/dev/grf.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 96a24006e3b7 -r d7eaeb666e42 sys/arch/amiga/dev/grf.c
--- a/sys/arch/amiga/dev/grf.c  Fri Feb 18 19:32:00 2000 +0000
+++ b/sys/arch/amiga/dev/grf.c  Fri Feb 18 19:34:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.33 1998/01/12 10:39:29 thorpej Exp $ */
+/*     $NetBSD: grf.c,v 1.33.8.1 2000/02/18 19:34:03 he Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -268,7 +268,6 @@
        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 @@
                 */
                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



Home | Main Index | Thread Index | Old Index