Screenblank support:

- new fbio.h in arch/amiga/include, defining only FBIOSVIDEO
- add an IOCTL translation to arch/amiga/dev/grf.c
- add screenblank to the list of specials to build on amiga.
This commit is contained in:
is 1996-05-19 20:06:02 +00:00
parent b416b21a6c
commit 83f62ea033
3 changed files with 52 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf.c,v 1.26 1996/04/21 21:11:07 veego Exp $ */
/* $NetBSD: grf.c,v 1.27 1996/05/19 20:06:20 is Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -62,6 +62,7 @@
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
#include <machine/cpu.h>
#include <machine/fbio.h>
#include <amiga/amiga/color.h> /* DEBUG */
#include <amiga/amiga/device.h>
#include <amiga/dev/grfioctl.h>
@ -278,6 +279,10 @@ grfioctl(dev, cmd, data, flag, p)
* information for grf_ul.
*/
return(gp->g_mode(gp, GM_GRFIOCTL, data, cmd, dev));
case FBIOSVIDEO:
return(gp->g_mode(gp, GM_GRFIOCTL, data, GRFIOCBLANK, dev));
default:
#if NVIEW > 0
/*

View File

@ -0,0 +1,42 @@
/* $NetBSD: fbio.h,v 1.1 1996/05/19 20:06:12 is Exp $ */
/*
* Copyright (c) 1996 Ignatios Souvatzis
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Ignatios Souvatzis
* for the NetBSD project.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*
* FBIO compatible video control.
*/
#define FBVIDEO_OFF 0
#define FBVIDEO_ON 1
#define FBIOSVIDEO _IOW('F', 7, int)
#define FBIOGVIDEO _IOR('F', 8, int)

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.61 1996/03/01 19:45:13 veego Exp $
# $NetBSD: Makefile,v 1.62 1996/05/19 20:06:02 is Exp $
# from: @(#)Makefile 5.6.1.2 (Berkeley) 5/8/91
# not yet done: catman
@ -10,7 +10,8 @@ SUBDIR= ac accton arp bootpd bootpgw bootpef bootptest \
netgroup_mkdb portmap pppd pstat pwd_mkdb quot quotaon \
rarpd rbootd rdconfig rdate repquota rmt \
rpc.bootparamd rpc.pcnfsd rwhod \
sa sendmail sliplogin slstats spray sysctl \
sa sendmail sliplogin
slstats spray sysctl \
syslogd tcpdump timed traceroute trpt trsp update \
vipw vnconfig ypbind yppoll ypset zdump zic
@ -23,7 +24,7 @@ SUBDIR+=amd
SUBDIR+=bad144 config.old dbsym eeprom grfconfig grfinfo hilinfo \
iteconfig screenblank videomode
.elif ${MACHINE} == "amiga"
SUBDIR+=grfconfig iteconfig videomode
SUBDIR+=grfconfig iteconfig screenblank videomode
.elif ${MACHINE} == "atari"
SUBDIR+=iteconfig
.elif ${MACHINE} == "hp300"