Handle interrupts on the Radius DirectColor/GX (id 0x27c). From
Alastair Bridgewater <nyef@softhome.net>.
This commit is contained in:
parent
6e24d735f0
commit
b8d22c0d39
sys/arch/mac68k/nubus
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: grf_nubus.c,v 1.60 2000/12/09 05:14:31 briggs Exp $ */
|
||||
/* $NetBSD: grf_nubus.c,v 1.61 2001/01/22 18:23:14 briggs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Allen Briggs. All rights reserved.
|
||||
@ -65,6 +65,7 @@ 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 void grfmv_intr_radius_gsc __P((void *vsc));
|
||||
static void grfmv_intr_radius_gx __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 *));
|
||||
@ -281,6 +282,9 @@ bad:
|
||||
case NUBUS_DRHW_RADGSC:
|
||||
add_nubus_intr(na->slot, grfmv_intr_radius_gsc, sc);
|
||||
break;
|
||||
case NUBUS_DRHW_RDCGX:
|
||||
add_nubus_intr(na->slot, grfmv_intr_radius_gx, sc);
|
||||
break;
|
||||
case NUBUS_DRHW_FIILX:
|
||||
case NUBUS_DRHW_FIISXDSP:
|
||||
case NUBUS_DRHW_FUTURASX:
|
||||
@ -712,3 +716,16 @@ grfmv_intr_radius_gsc(vsc)
|
||||
bus_space_write_1(sc->sc_tag, sc->sc_handle, 0xfb802, 0xff);
|
||||
}
|
||||
|
||||
/*
|
||||
* Routine to clear interrupts for the Radius GS/C
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
grfmv_intr_radius_gx(vsc)
|
||||
void *vsc;
|
||||
{
|
||||
struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
|
||||
|
||||
bus_space_write_1(sc->sc_tag, sc->sc_handle, 0x600000, 0x00);
|
||||
bus_space_write_1(sc->sc_tag, sc->sc_handle, 0x600000, 0x20);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nubus.h,v 1.53 2000/12/08 14:28:44 briggs Exp $ */
|
||||
/* $NetBSD: nubus.h,v 1.54 2001/01/22 18:23:14 briggs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Allen Briggs. All rights reserved.
|
||||
@ -69,6 +69,7 @@
|
||||
#define NUBUS_DRHW_VIMAGE 0x026E /* Interware Co., Ltd. Vimage */
|
||||
#define NUBUS_DRHW_CB364 0x026F /* RasterOps ColorBoard 364 */
|
||||
#define NUBUS_DRHW_LVIEW 0x0278 /* Sigma Designs L-View */
|
||||
#define NUBUS_DRHW_RDCGX 0x027C /* Radius DirectColor/GX */
|
||||
#define NUBUS_DRHW_RPC8 0x0291 /* Radius PrecisionColor 8 */
|
||||
#define NUBUS_DRHW_LAPIS 0x0292 /* SE/30 Lapis ProColorServer 8 PDS */
|
||||
#define NUBUS_DRHW_ROPS24LXI 0x02A0 /* RasterOps 8/24 XLi */
|
||||
|
Loading…
x
Reference in New Issue
Block a user