Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/nubus Clear interrupts on a Radius GS/C card...
details: https://anonhg.NetBSD.org/src/rev/483dbd9b58c1
branches: trunk
changeset: 473673:483dbd9b58c1
user: briggs <briggs%NetBSD.org@localhost>
date: Mon Jun 14 03:11:34 1999 +0000
description:
Clear interrupts on a Radius GS/C card. Thanks go to Yasufumi Suzuki
<yattin%sco.bekkoame.ne.jp@localhost> for doing the MacsBug "leg"work for me.
diffstat:
sys/arch/mac68k/nubus/grf_nubus.c | 22 +++++++++++++++++++++-
sys/arch/mac68k/nubus/nubus.h | 3 ++-
2 files changed, 23 insertions(+), 2 deletions(-)
diffs (64 lines):
diff -r 5b1e09ceaef4 -r 483dbd9b58c1 sys/arch/mac68k/nubus/grf_nubus.c
--- a/sys/arch/mac68k/nubus/grf_nubus.c Sun Jun 13 22:40:51 1999 +0000
+++ b/sys/arch/mac68k/nubus/grf_nubus.c Mon Jun 14 03:11:34 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf_nubus.c,v 1.54 1999/06/10 03:24:38 briggs Exp $ */
+/* $NetBSD: grf_nubus.c,v 1.55 1999/06/14 03:11:34 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@@ -69,6 +69,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 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 @@
case NUBUS_DRHW_RPC24XP:
add_nubus_intr(na->slot, grfmv_intr_radius24, sc);
break;
+ case NUBUS_DRHW_RADGSC:
+ add_nubus_intr(na->slot, grfmv_intr_radius_gsc, sc);
+ break;
case NUBUS_DRHW_FIILX:
case NUBUS_DRHW_FIISXDSP:
case NUBUS_DRHW_FUTURASX:
@@ -695,3 +699,19 @@
dummy = bus_space_read_1(sc->sc_tag, sc->sc_handle, 0xf00000);
}
+
+/*
+ * Routine to clear interrupts for the Radius GS/C
+ */
+/*ARGSUSED*/
+static void
+grfmv_intr_radius_gsc(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, 0xfb802);
+ bus_space_write_1(sc->sc_tag, sc->sc_handle, 0xfb802, 0xff);
+}
+
diff -r 5b1e09ceaef4 -r 483dbd9b58c1 sys/arch/mac68k/nubus/nubus.h
--- a/sys/arch/mac68k/nubus/nubus.h Sun Jun 13 22:40:51 1999 +0000
+++ b/sys/arch/mac68k/nubus/nubus.h Mon Jun 14 03:11:34 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nubus.h,v 1.47 1999/06/10 03:25:18 briggs Exp $ */
+/* $NetBSD: nubus.h,v 1.48 1999/06/14 03:11:34 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@@ -62,6 +62,7 @@
#define NUBUS_DRHW_FORMAC 0x013A /* Formac color card II */
#define NUBUS_DRHW_CB264 0x013B /* RasterOps ColorBoard 264 */
#define NUBUS_DRHW_MICRON 0x0146 /* Micron Exceed color */
+#define NUBUS_DRHW_RADGSC 0x0153 /* Radius GS/C */
#define NUBUS_DRHW_SPECTRM8 0x017b /* SuperMac Spectrum/8 Series III */
#define NUBUS_DRHW_SPECTRUM 0x017c /* SuperMac Spectrum/24 Series III */
#define NUBUS_DRHW_VIMAGE 0x026E /* Interware Co., Ltd. Vimage */
Home |
Main Index |
Thread Index |
Old Index