#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
isr.isr_intr = clockintr;
isr.isr_ipl = 6;
- isr.isr_mapped_ipl = 4;
+ isr.isr_mapped_ipl = IPL_CLOCK;
add_isr(&isr);
#else
/*
*/
void
delay(mic)
- int mic;
+ u_int mic;
{
u_int temp;
int s;
*/
void
DELAY(mic)
- int mic;
+ u_int mic;
{
u_long n;
short hpos;
#include <sys/kernel.h>
#include <sys/syslog.h>
#include <sys/queue.h>
+#include <machine/psl.h>
#include <machine/cpu.h>
#include <amiga/amiga/device.h>
#include <amiga/amiga/isr.h>
scc->sc_isr.isr_arg = scc;
scc->sc_isr.isr_ipl = 6;
#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
- scc->sc_isr.isr_mapped_ipl = 3;
+ scc->sc_isr.isr_mapped_ipl = IPL_TTY;
#endif
add_isr(&scc->sc_isr);
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
scc->imask &= ~0x01;
regs->du_imr = scc->imask;
+#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
+ if (tp->t_line)
+ (*linesw[tp->t_line].l_start)(tp);
+ else
+ mfcsstart(tp);
+#else
add_sicallback (tp->t_line ?
(sifunc_t)linesw[tp->t_line].l_start
: (sifunc_t)mfcsstart, tp, NULL);
-
+#endif
}
else
regs->du_tba = *sc->ptr++;
tp->t_state &= ~(TS_BUSY | TS_FLUSH);
scc->imask &= ~0x10;
regs->du_imr = scc->imask;
+#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
+ if (tp->t_line)
+ (*linesw[tp->t_line].l_start)(tp);
+ else
+ mfcsstart(tp);
+#else
add_sicallback (tp->t_line ?
(sifunc_t)linesw[tp->t_line].l_start
: (sifunc_t)mfcsstart, tp, NULL);
+#endif
}
else
regs->du_tbb = *sc->ptr++;
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/device.h>
+#include <machine/psl.h>
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
#include <amiga/amiga/custom.h>
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 6;
#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
- /* XXX Don't remap it yet, the driver uses a sicallback still. */
- sc->sc_isr.isr_mapped_ipl = 6;
+ sc->sc_isr.isr_mapped_ipl = IPL_BIO;
#endif
add_isr (&sc->sc_isr);
rp->siop_sien = 0;
rp->siop_dien = 0;
sc->sc_flags |= SIOP_INTDEFER | SIOP_INTSOFF;
+#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
+ siopintr(sc);
+#else
add_sicallback((sifunc_t)siopintr, sc, NULL);
- return (1);
+#endif return (1);
}
#ifdef DEBUG
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * @(#)dma.c
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/device.h>
+#include <machine/psl.h>
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
#include <amiga/amiga/custom.h>
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 6;
#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
- /* XXX Don't remap it yet, the driver uses a sicallback still. */
- sc->sc_isr.isr_mapped_ipl = 6;
+ sc->sc_isr.isr_mapped_ipl = IPL_BIO;
#endif
add_isr(&sc->sc_isr);
rp->siop_sien = 0;
rp->siop_dien = 0;
sc->sc_flags |= SIOP_INTDEFER | SIOP_INTSOFF;
+#if defined(IPL_REMAP_1) || defined(IPL_REMAP_2)
+ siopintr(sc);
+#else
add_sicallback((sifunc_t)siopintr, sc, NULL);
+#endif
return(1);
}