diff options
author | briggs <briggs@cvs.openbsd.org> | 1997-04-01 13:52:35 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1997-04-01 13:52:35 +0000 |
commit | d45211f42554922c1afd8c51b8449246222f16b4 (patch) | |
tree | 14b40b2a80406f626dba2b352066862ee145373b /sys/arch | |
parent | ff38b273c1e881036049aa7eb6d8784875b19b48 (diff) |
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.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mac68k/dev/grf_mv.c | 14 | ||||
-rw-r--r-- | 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 */ |