From ea706b7fb4ab26d9d5ae4830e3d99d589d52e2e5 Mon Sep 17 00:00:00 2001 From: briggs Date: Tue, 1 Apr 1997 13:52:34 +0000 Subject: [PATCH] Add DrHW for RasterOps CB264--From Scott Reynolds--and link it in to the proper interrupt routine. grfmv_intr_mystery changed to grfmv_intr_cb264. --- sys/arch/mac68k/dev/grf_mv.c | 14 ++++++-------- sys/arch/mac68k/dev/nubus.h | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/sys/arch/mac68k/dev/grf_mv.c b/sys/arch/mac68k/dev/grf_mv.c index f498eef8ccc..a3a8bf072d2 100644 --- a/sys/arch/mac68k/dev/grf_mv.c +++ b/sys/arch/mac68k/dev/grf_mv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_mv.c,v 1.10 1997/03/29 23:47:13 briggs Exp $ */ +/* $OpenBSD: grf_mv.c,v 1.11 1997/04/01 13:52:34 briggs Exp $ */ /* $NetBSD: grf_mv.c,v 1.17 1997/02/24 06:20:06 scottr Exp $ */ /* @@ -56,10 +56,7 @@ static void load_image_data __P((caddr_t data, struct image_data *image)); static char zero = 0; static void grfmv_intr_generic __P((void *vsc, int slot)); static void grfmv_intr_cti __P((void *vsc, int slot)); - -#ifdef MYSTERY -static void grfmv_intr_mystery __P((void *vsc, int slot)); -#endif +static void grfmv_intr_cb264 __P((void *vsc, int slot)); static int grfmv_mode __P((struct grf_softc *gp, int cmd, void *arg)); static caddr_t grfmv_phys __P((struct grf_softc *gp, vm_offset_t addr)); @@ -231,6 +228,9 @@ grfmv_attach(parent, self, aux) case NUBUS_DRHW_SAM768: add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cti, sc); break; + case NUBUS_DRHW_CB264: + add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cb264, sc); + break; case NUBUS_DRHW_MICRON: /* What do we know about this one? */ default: @@ -316,10 +316,9 @@ grfmv_intr_cti(vsc, slot) *slotbase = (*slotbase & 0xFD); } -#ifdef MYSTERY /*ARGSUSED*/ static void -grfmv_intr_mystery(vsc, slot) +grfmv_intr_cb264(vsc, slot) void *vsc; int slot; { @@ -366,4 +365,3 @@ grfmv_intr_mystery(vsc, slot) movl #0x1,a0@(0xff6014)" : : "g" (slotbase) : "a0","d0","d1"); } -#endif diff --git a/sys/arch/mac68k/dev/nubus.h b/sys/arch/mac68k/dev/nubus.h index dc02e727d1a..22bef0d8c7a 100644 --- a/sys/arch/mac68k/dev/nubus.h +++ b/sys/arch/mac68k/dev/nubus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nubus.h,v 1.8 1997/03/29 23:20:43 briggs Exp $ */ +/* $OpenBSD: nubus.h,v 1.9 1997/04/01 13:52:34 briggs Exp $ */ /* $NetBSD: nubus.h,v 1.17 1997/02/24 06:20:07 scottr Exp $ */ /* @@ -55,6 +55,7 @@ #define NUBUS_DRHW_TFB 0x0001 #define NUBUS_DRHW_WVC 0x0006 #define NUBUS_DRHW_M2HRVC 0x0013 +#define NUBUS_DRHW_CB264 0x013B #define NUBUS_DRHW_MICRON 0x0146 /* False DrHW values for video cards masquerading as other cards */ -- 2.20.1