Support video interrupt for GrandVimage 17iL video card.

This commit is contained in:
briggs 1998-08-09 18:19:09 +00:00
parent e9ef31ed72
commit 64e4a1fa7d
2 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_nubus.c,v 1.47 1998/07/01 14:49:08 scottr Exp $ */
/* $NetBSD: grf_nubus.c,v 1.48 1998/08/09 18:19:09 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -68,6 +68,7 @@ static void grfmv_intr_supermacgfx __P((void *vsc));
static void grfmv_intr_lapis __P((void *vsc));
static void grfmv_intr_formac __P((void *vsc));
static void grfmv_intr_vimage __P((void *vsc));
static void grfmv_intr_gvimage __P((void *vsc));
static int grfmv_mode __P((struct grf_softc *gp, int cmd, void *arg));
static int grfmv_match __P((struct device *, struct cfdata *, void *));
@ -311,6 +312,9 @@ bad:
case NUBUS_DRHW_VIMAGE:
add_nubus_intr(na->slot, grfmv_intr_vimage, sc);
break;
case NUBUS_DRHW_GVIMAGE:
add_nubus_intr(na->slot, grfmv_intr_gvimage, sc);
break;
case NUBUS_DRHW_MICRON:
/* What do we know about this one? */
default:
@ -667,3 +671,17 @@ grfmv_intr_vimage(vsc)
bus_space_write_1(sc->sc_tag, sc->sc_handle, 0x800000, 0x67);
bus_space_write_1(sc->sc_tag, sc->sc_handle, 0x800000, 0xE7);
}
/*
* Routine to clear interrupts for the Vimage by Interware Co., Ltd.
*/
/*ARGSUSED*/
static void
grfmv_intr_gvimage(vsc)
void *vsc;
{
struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
u_int8_t dummy;
dummy = bus_space_read_1(sc->sc_tag, sc->sc_handle, 0xf00000);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: nubus.h,v 1.39 1998/05/23 22:08:41 briggs Exp $ */
/* $NetBSD: nubus.h,v 1.40 1998/08/09 18:19:10 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -71,6 +71,7 @@
#define NUBUS_DRHW_ROPS24LXI 0x02A0 /* RasterOps 8/24 XLi */
#define NUBUS_DRHW_FUTURASX 0x02AE /* E-Machines Futura-SX */
#define NUBUS_DRHW_THUNDER24 0x02CB /* SuperMac Thunder/24 */
#define NUBUS_DRHW_GVIMAGE 0x03FB /* SuperMac Thunder/24 */
#define NUBUS_DRHW_RPC24XP 0x0406 /* Radius PrecisionColor 24Xp */
#define NUBUS_DRHW_RPC24X 0x040A /* Radius PrecisionColor 24X */
#define NUBUS_DRHW_RPC8XJ 0x040B /* Radius PrecisionColor 8xj */
@ -95,6 +96,7 @@
#define NUBUS_DRHW_CABLETRON 0x0109
#define NUBUS_DRHW_ASANTE_LC 0x010F
#define NUBUS_DRHW_SONIC 0x0110
#define NUBUS_DRHW_TECHWORKS 0x0112
#define NUBUS_DRHW_APPLE_SNT 0x0118
#define NUBUS_DRHW_APPLE_SN 0x0119