Clear the interrupts properly on an E-Machines Futura II LX and make a wild

guess at clearing them on a Futura II SX/DSP and RasterOps ColorBoard 364.
Thanks to Michel Chalufour <michelc@tiac.net> for loaning me the II LX.
This commit is contained in:
briggs 1997-05-01 03:34:07 +00:00
parent ef185efb22
commit a64bc3c19c
3 changed files with 22 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_mv.c,v 1.21 1997/04/14 16:28:35 scottr Exp $ */
/* $NetBSD: grf_mv.c,v 1.22 1997/05/01 03:34:07 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -215,16 +215,25 @@ grfmv_attach(parent, self, aux)
case NUBUS_DRHW_M2HRVC:
case NUBUS_DRHW_TFB:
sc->cli_offset = 0xa0000;
sc->cli_value = 0;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_WVC:
sc->cli_offset = 0xa00000;
sc->cli_value = 0;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_FIILX:
case NUBUS_DRHW_FIISXDSP:
sc->cli_offset = 0xF05000;
sc->cli_value = 0x80;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_SAM768:
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cti, sc);
break;
case NUBUS_DRHW_CB264:
case NUBUS_DRHW_CB364:
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cb264, sc);
break;
case NUBUS_DRHW_SE30:

View File

@ -1,4 +1,4 @@
/* $NetBSD: grfvar.h,v 1.14 1997/04/01 05:42:01 briggs Exp $ */
/* $NetBSD: grfvar.h,v 1.15 1997/05/01 03:34:08 briggs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -59,6 +59,7 @@ struct grfbus_softc {
u_int32_t card_id; /* DrHW value for nubus cards */
u_int32_t cli_offset; /* Offset of byte to clear intr */
/* for cards where that's suff. */
unsigned char cli_value; /* Value to write at cli_offset */
nubus_dir board_dir; /* Nubus dir for curr board */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_nubus.c,v 1.21 1997/04/14 16:28:35 scottr Exp $ */
/* $NetBSD: grf_nubus.c,v 1.22 1997/05/01 03:34:07 briggs Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -215,16 +215,25 @@ grfmv_attach(parent, self, aux)
case NUBUS_DRHW_M2HRVC:
case NUBUS_DRHW_TFB:
sc->cli_offset = 0xa0000;
sc->cli_value = 0;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_WVC:
sc->cli_offset = 0xa00000;
sc->cli_value = 0;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_FIILX:
case NUBUS_DRHW_FIISXDSP:
sc->cli_offset = 0xF05000;
sc->cli_value = 0x80;
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_generic, sc);
break;
case NUBUS_DRHW_SAM768:
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cti, sc);
break;
case NUBUS_DRHW_CB264:
case NUBUS_DRHW_CB364:
add_nubus_intr(sc->sc_slot.slot, grfmv_intr_cb264, sc);
break;
case NUBUS_DRHW_SE30: