diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c index 32c857d3d827..8a167ac390cc 100644 --- a/sys/arch/mac68k/dev/grf.c +++ b/sys/arch/mac68k/dev/grf.c @@ -1,4 +1,4 @@ -/* $NetBSD: grf.c,v 1.24 1995/07/02 00:49:52 briggs Exp $ */ +/* $NetBSD: grf.c,v 1.25 1995/07/02 05:26:27 briggs Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -255,6 +255,9 @@ grfioctl(dev, cmd, data, flag, p) error = grfunmap(dev, *(caddr_t *) data, p); break; + case GRFIOCGMODE: + bcopy(&gp->curr_mode, data, sizeof(struct grfmode)); + break; case GRFIOCGETMODE: error = (*grfdev[gp->g_type].gd_mode)(gp, GM_CURRMODE, data); break; diff --git a/sys/arch/mac68k/include/grfioctl.h b/sys/arch/mac68k/include/grfioctl.h index 17e869a3fb3a..2b743f0600f5 100644 --- a/sys/arch/mac68k/include/grfioctl.h +++ b/sys/arch/mac68k/include/grfioctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: grfioctl.h,v 1.4 1995/07/02 00:29:03 briggs Exp $ */ +/* $NetBSD: grfioctl.h,v 1.5 1995/07/02 05:26:45 briggs Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -75,6 +75,7 @@ struct grfmodes { #define GRFIOCLISTMODES _IOWR('G', 16, struct grfmodes) /* Get list of modes */ #define GRFIOCGETMODE _IOR('G', 17, int) /* Get list of modes */ #define GRFIOCSETMODE _IOW('G', 18, int) /* Set to mode_id mode */ +#define GRFIOCGMODE _IOR('G', 19, struct grfmode) /* Get list of modes */ /* * Obsolete structure. @@ -96,4 +97,3 @@ struct grfinfo { int gd_dheight; /* displayed part height */ int gd_pad[6]; /* for future expansion */ }; -