Add interrupt sharing types.

This commit is contained in:
mycroft 1995-01-03 01:30:14 +00:00
parent 80c18810b0
commit b5cf1b5ddd
51 changed files with 123 additions and 103 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aha1542.c,v 1.39 1994/12/28 19:43:42 mycroft Exp $ */
/* $NetBSD: aha1542.c,v 1.40 1995/01/03 01:30:14 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -584,7 +584,7 @@ ahaattach(parent, self, aux)
aha->sc_ih.ih_fun = ahaintr;
aha->sc_ih.ih_arg = aha;
aha->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &aha->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &aha->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic6360.c,v 1.22 1994/12/31 05:34:00 mycroft Exp $ */
/* $NetBSD: aic6360.c,v 1.23 1995/01/03 01:30:18 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -752,7 +752,7 @@ aicattach(parent, self, aux)
aic->sc_ih.ih_fun = aicintr;
aic->sc_ih.ih_arg = aic;
aic->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &aic->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &aic->sc_ih);
config_found(self, &aic->sc_link, aicprint);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ast.c,v 1.13 1995/01/02 22:27:46 mycroft Exp $ */
/* $NetBSD: ast.c,v 1.14 1995/01/03 01:30:20 mycroft Exp $ */
/*
* Multi-port serial card interrupt demuxing support.
@ -117,7 +117,7 @@ astattach(parent, self, aux)
sc->sc_ih.ih_fun = astintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt742a.c,v 1.36 1994/12/28 19:43:49 mycroft Exp $ */
/* $NetBSD: bt742a.c,v 1.37 1995/01/03 01:30:24 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -611,7 +611,7 @@ btattach(parent, self, aux)
bt->sc_ih.ih_fun = btintr;
bt->sc_ih.ih_arg = bt;
bt->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &bt->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &bt->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.28 1994/11/04 19:01:39 mycroft Exp $ */
/* $NetBSD: clock.c,v 1.29 1995/01/03 01:30:26 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -280,7 +280,7 @@ cpu_initclocks()
clockhand.ih_fun = clockintr;
clockhand.ih_arg = 0;
clockhand.ih_level = IPL_CLOCK;
intr_establish(0, &clockhand);
intr_establish(0, IST_PULSE, &clockhand);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: com.c,v 1.42 1994/11/25 08:17:21 mycroft Exp $ */
/* $NetBSD: com.c,v 1.43 1995/01/03 01:30:28 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -216,7 +216,7 @@ comattach(parent, self, aux)
sc->sc_ih.ih_fun = comintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
#ifdef KGDB

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ed.c,v 1.65 1995/01/02 20:32:55 mycroft Exp $ */
/* $NetBSD: if_ed.c,v 1.66 1995/01/03 01:30:32 mycroft Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -1091,7 +1091,7 @@ edattach(parent, self, aux)
sc->sc_ih.ih_fun = edintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_eg.c,v 1.8 1994/11/18 22:03:15 mycroft Exp $ */
/* $NetBSD: if_eg.c,v 1.9 1995/01/03 01:30:35 mycroft Exp $ */
/*
* Copyright (c) 1993 Dean Huxley <dean@fsa.ca>
@ -409,7 +409,7 @@ egattach(parent, self, aux)
sc->sc_ih.ih_fun = egintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_el.c,v 1.19 1994/12/10 05:55:26 mycroft Exp $ */
/* $NetBSD: if_el.c,v 1.20 1995/01/03 01:30:37 mycroft Exp $ */
/*
* Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted
@ -210,7 +210,7 @@ elattach(parent, self, aux)
sc->sc_ih.ih_fun = elintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
dprintf(("elattach() finished.\n"));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ep.c,v 1.64 1994/12/28 16:47:50 hpeyerl Exp $ */
/* $NetBSD: if_ep.c,v 1.65 1995/01/03 01:30:40 mycroft Exp $ */
/*
* Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
@ -342,7 +342,7 @@ epattach(parent, self, aux)
sc->sc_ih.ih_fun = epintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie.c,v 1.25 1995/01/02 22:01:05 mycroft Exp $ */
/* $NetBSD: if_ie.c,v 1.26 1995/01/03 01:30:43 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -543,7 +543,7 @@ ieattach(parent, self, aux)
sc->sc_ih.ih_fun = ieintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.21 1995/01/02 20:39:37 mycroft Exp $ */
/* $NetBSD: if_le.c,v 1.22 1995/01/03 01:30:46 mycroft Exp $ */
/*
* LANCE Ethernet driver
@ -419,7 +419,7 @@ leattach(parent, self, aux)
sc->sc_ih.ih_fun = leintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.c,v 1.26 1994/11/18 22:22:40 mycroft Exp $ */
/* $NetBSD: intr.c,v 1.27 1995/01/03 01:30:47 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -136,7 +136,7 @@ isa_strayintr(irq)
}
int fastvec;
int intrmask[ICU_LEN], intrlevel[ICU_LEN];
int intrtype[ICU_LEN], intrmask[ICU_LEN], intrlevel[ICU_LEN];
struct intrhand *intrhand[ICU_LEN];
/*
@ -211,21 +211,38 @@ fakeintr(arg)
* Set up an interrupt handler to start being called.
*/
void
intr_establish(irq, ih)
int irq;
intr_establish(irq, type, ih)
int irq, type;
struct intrhand *ih;
{
int mask;
struct intrhand **p, *q;
static struct intrhand fakehand = {fakeintr};
static char *typename[] = {NULL, "pulsed", "edge-triggered",
"level-triggered"};
mask = 1 << irq;
if (irq < 0 || irq > ICU_LEN)
if (irq < 0 || irq > ICU_LEN || type == IST_NONE)
panic("intr_establish: bogus irq");
if (fastvec & mask)
panic("intr_establish: irq is already fast vector");
switch (intrtype[irq]) {
case IST_NONE:
intrtype[irq] = type;
break;
case IST_EDGE:
case IST_LEVEL:
if (type == intrtype[irq])
break;
case IST_PULSE:
if (type != IST_NONE)
panic("intr_establish: can't share %s with %s",
typename[intrtype[irq]], typename[type]);
break;
}
/*
* Figure out where to put the handler.
* This is O(N^2), but we want to preserve the order, and N is
@ -282,4 +299,7 @@ intr_disestablish(irq, ih)
panic("intr_disestablish: handler not registered");
intr_calculatemasks();
if (intrhand[irq] == NULL)
intrtype[irq] = IST_NONE;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: lms.c,v 1.17 1994/11/18 22:03:26 mycroft Exp $ */
/* $NetBSD: lms.c,v 1.18 1995/01/03 01:30:49 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -122,7 +122,7 @@ lmsattach(parent, self, aux)
sc->sc_ih.ih_fun = lmsintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_PULSE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpt.c,v 1.25 1994/11/18 22:03:28 mycroft Exp $ */
/* $NetBSD: lpt.c,v 1.26 1995/01/03 01:30:50 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -252,7 +252,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_fun = lptintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcd.c,v 1.25 1994/12/14 15:23:27 mycroft Exp $ */
/* $NetBSD: mcd.c,v 1.26 1995/01/03 01:31:45 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -204,7 +204,7 @@ mcdattach(parent, self, aux)
sc->sc_ih.ih_fun = mcdintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: mms.c,v 1.16 1994/11/18 22:03:32 mycroft Exp $ */
/* $NetBSD: mms.c,v 1.17 1995/01/03 01:30:51 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -112,7 +112,7 @@ mmsattach(parent, self, aux)
sc->sc_ih.ih_fun = mmsintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_PULSE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: npx.c,v 1.31 1994/11/30 04:42:07 mycroft Exp $ */
/* $NetBSD: npx.c,v 1.32 1995/01/03 01:30:53 mycroft Exp $ */
/*-
* Copyright (c) 1994 Charles Hannum.
@ -351,7 +351,7 @@ npxattach(parent, self, aux)
npxhand.ih_fun = npxintr;
npxhand.ih_arg = 0;
npxhand.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &npxhand);
intr_establish(ia->ia_irq, IST_EDGE, &npxhand);
break;
case NPX_EXCEPTION:
printf(": using exception 16\n");

View File

@ -1,4 +1,4 @@
/* $NetBSD: pccons.c,v 1.78 1994/12/13 13:42:56 mycroft Exp $ */
/* $NetBSD: pccons.c,v 1.79 1995/01/03 01:30:55 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -470,7 +470,7 @@ pcattach(parent, self, aux)
pchand.ih_fun = pcintr;
pchand.ih_arg = 0;
pchand.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &pchand);
intr_establish(ia->ia_irq, IST_EDGE, &pchand);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: pms.c,v 1.17 1994/11/18 22:03:35 mycroft Exp $ */
/* $NetBSD: pms.c,v 1.18 1995/01/03 01:30:58 mycroft Exp $ */
/*-
* Copyright (c) 1994 Charles Hannum.
@ -197,7 +197,7 @@ pmsattach(parent, self, aux)
sc->sc_ih.ih_fun = pmsintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtfps.c,v 1.8 1995/01/02 22:27:47 mycroft Exp $ */
/* $NetBSD: rtfps.c,v 1.9 1995/01/03 01:30:59 mycroft Exp $ */
/*
* Multi-port serial card interrupt demuxing support.
@ -125,7 +125,7 @@ rtfpsattach(parent, self, aux)
sc->sc_ih.ih_fun = rtfpsintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: sb.c,v 1.15 1994/12/17 18:45:11 mycroft Exp $ */
/* $NetBSD: sb.c,v 1.16 1995/01/03 01:31:01 mycroft Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -211,7 +211,7 @@ sbattach(parent, self, aux)
sc->sc_ih.ih_fun = sbintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
#ifdef NEWCONFIG
/*

View File

@ -433,7 +433,7 @@ seaattach(parent, self, aux)
sea->sc_ih.ih_fun = seaintr;
sea->sc_ih.ih_arg = sea;
sea->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sea->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sea->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultra14f.c,v 1.44 1994/12/28 19:43:55 mycroft Exp $ */
/* $NetBSD: ultra14f.c,v 1.45 1995/01/03 01:31:05 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -611,7 +611,7 @@ uhaattach(parent, self, aux)
uha->sc_ih.ih_fun = uha->intr;
uha->sc_ih.ih_arg = uha;
uha->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &uha->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &uha->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd.c,v 1.122 1994/12/14 15:23:49 mycroft Exp $ */
/* $NetBSD: wd.c,v 1.123 1995/01/03 01:31:10 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -278,7 +278,7 @@ wdcattach(parent, self, aux)
wdc->sc_ih.ih_fun = wdcintr;
wdc->sc_ih.ih_arg = wdc;
wdc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &wdc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &wdc->sc_ih);
for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++)
(void)config_found(self, (void *)&wa, wdprint);

View File

@ -1,4 +1,4 @@
/* $NetBSD: wt.c,v 1.21 1994/11/18 22:03:51 mycroft Exp $ */
/* $NetBSD: wt.c,v 1.22 1995/01/03 01:31:14 mycroft Exp $ */
/*
* Streamer tape driver.
@ -252,7 +252,7 @@ wtattach(parent, self, aux)
sc->sc_ih.ih_fun = wtintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd.c,v 1.122 1994/12/14 15:23:49 mycroft Exp $ */
/* $NetBSD: wd.c,v 1.123 1995/01/03 01:31:10 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -278,7 +278,7 @@ wdcattach(parent, self, aux)
wdc->sc_ih.ih_fun = wdcintr;
wdc->sc_ih.ih_arg = wdc;
wdc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &wdc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &wdc->sc_ih);
for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++)
(void)config_found(self, (void *)&wa, wdprint);

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic6360.c,v 1.22 1994/12/31 05:34:00 mycroft Exp $ */
/* $NetBSD: aic6360.c,v 1.23 1995/01/03 01:30:18 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -752,7 +752,7 @@ aicattach(parent, self, aux)
aic->sc_ih.ih_fun = aicintr;
aic->sc_ih.ih_arg = aic;
aic->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &aic->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &aic->sc_ih);
config_found(self, &aic->sc_link, aicprint);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: com.c,v 1.42 1994/11/25 08:17:21 mycroft Exp $ */
/* $NetBSD: com.c,v 1.43 1995/01/03 01:30:28 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -216,7 +216,7 @@ comattach(parent, self, aux)
sc->sc_ih.ih_fun = comintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
#ifdef KGDB

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpt.c,v 1.25 1994/11/18 22:03:28 mycroft Exp $ */
/* $NetBSD: lpt.c,v 1.26 1995/01/03 01:30:50 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -252,7 +252,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_fun = lptintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: lptvar.h,v 1.25 1994/11/18 22:03:28 mycroft Exp $ */
/* $NetBSD: lptvar.h,v 1.26 1995/01/03 01:30:50 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -252,7 +252,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_fun = lptintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: aha1542.c,v 1.39 1994/12/28 19:43:42 mycroft Exp $ */
/* $NetBSD: aha1542.c,v 1.40 1995/01/03 01:30:14 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -584,7 +584,7 @@ ahaattach(parent, self, aux)
aha->sc_ih.ih_fun = ahaintr;
aha->sc_ih.ih_arg = aha;
aha->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &aha->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &aha->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: aic6360.c,v 1.22 1994/12/31 05:34:00 mycroft Exp $ */
/* $NetBSD: aic6360.c,v 1.23 1995/01/03 01:30:18 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -752,7 +752,7 @@ aicattach(parent, self, aux)
aic->sc_ih.ih_fun = aicintr;
aic->sc_ih.ih_arg = aic;
aic->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &aic->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &aic->sc_ih);
config_found(self, &aic->sc_link, aicprint);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ast.c,v 1.13 1995/01/02 22:27:46 mycroft Exp $ */
/* $NetBSD: ast.c,v 1.14 1995/01/03 01:30:20 mycroft Exp $ */
/*
* Multi-port serial card interrupt demuxing support.
@ -117,7 +117,7 @@ astattach(parent, self, aux)
sc->sc_ih.ih_fun = astintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: bt742a.c,v 1.36 1994/12/28 19:43:49 mycroft Exp $ */
/* $NetBSD: bt742a.c,v 1.37 1995/01/03 01:30:24 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -611,7 +611,7 @@ btattach(parent, self, aux)
bt->sc_ih.ih_fun = btintr;
bt->sc_ih.ih_arg = bt;
bt->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &bt->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &bt->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: com.c,v 1.42 1994/11/25 08:17:21 mycroft Exp $ */
/* $NetBSD: com.c,v 1.43 1995/01/03 01:30:28 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -216,7 +216,7 @@ comattach(parent, self, aux)
sc->sc_ih.ih_fun = comintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
#ifdef KGDB

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ed.c,v 1.65 1995/01/02 20:32:55 mycroft Exp $ */
/* $NetBSD: if_ed.c,v 1.66 1995/01/03 01:30:32 mycroft Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -1091,7 +1091,7 @@ edattach(parent, self, aux)
sc->sc_ih.ih_fun = edintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_eg.c,v 1.8 1994/11/18 22:03:15 mycroft Exp $ */
/* $NetBSD: if_eg.c,v 1.9 1995/01/03 01:30:35 mycroft Exp $ */
/*
* Copyright (c) 1993 Dean Huxley <dean@fsa.ca>
@ -409,7 +409,7 @@ egattach(parent, self, aux)
sc->sc_ih.ih_fun = egintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_el.c,v 1.19 1994/12/10 05:55:26 mycroft Exp $ */
/* $NetBSD: if_el.c,v 1.20 1995/01/03 01:30:37 mycroft Exp $ */
/*
* Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted
@ -210,7 +210,7 @@ elattach(parent, self, aux)
sc->sc_ih.ih_fun = elintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
dprintf(("elattach() finished.\n"));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ep.c,v 1.64 1994/12/28 16:47:50 hpeyerl Exp $ */
/* $NetBSD: if_ep.c,v 1.65 1995/01/03 01:30:40 mycroft Exp $ */
/*
* Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
@ -342,7 +342,7 @@ epattach(parent, self, aux)
sc->sc_ih.ih_fun = epintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie.c,v 1.25 1995/01/02 22:01:05 mycroft Exp $ */
/* $NetBSD: if_ie.c,v 1.26 1995/01/03 01:30:43 mycroft Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum.
@ -543,7 +543,7 @@ ieattach(parent, self, aux)
sc->sc_ih.ih_fun = ieintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.21 1995/01/02 20:39:37 mycroft Exp $ */
/* $NetBSD: if_le.c,v 1.22 1995/01/03 01:30:46 mycroft Exp $ */
/*
* LANCE Ethernet driver
@ -419,7 +419,7 @@ leattach(parent, self, aux)
sc->sc_ih.ih_fun = leintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NET;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpt.c,v 1.25 1994/11/18 22:03:28 mycroft Exp $ */
/* $NetBSD: lpt.c,v 1.26 1995/01/03 01:30:50 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -252,7 +252,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_fun = lptintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpt_isa.c,v 1.25 1994/11/18 22:03:28 mycroft Exp $ */
/* $NetBSD: lpt_isa.c,v 1.26 1995/01/03 01:30:50 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -252,7 +252,7 @@ lptattach(parent, self, aux)
sc->sc_ih.ih_fun = lptintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_NONE;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcd.c,v 1.25 1994/12/14 15:23:27 mycroft Exp $ */
/* $NetBSD: mcd.c,v 1.26 1995/01/03 01:31:45 mycroft Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@ -204,7 +204,7 @@ mcdattach(parent, self, aux)
sc->sc_ih.ih_fun = mcdintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtfps.c,v 1.8 1995/01/02 22:27:47 mycroft Exp $ */
/* $NetBSD: rtfps.c,v 1.9 1995/01/03 01:30:59 mycroft Exp $ */
/*
* Multi-port serial card interrupt demuxing support.
@ -125,7 +125,7 @@ rtfpsattach(parent, self, aux)
sc->sc_ih.ih_fun = rtfpsintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_TTY;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: sb.c,v 1.15 1994/12/17 18:45:11 mycroft Exp $ */
/* $NetBSD: sb.c,v 1.16 1995/01/03 01:31:01 mycroft Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -211,7 +211,7 @@ sbattach(parent, self, aux)
sc->sc_ih.ih_fun = sbintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
#ifdef NEWCONFIG
/*

View File

@ -433,7 +433,7 @@ seaattach(parent, self, aux)
sea->sc_ih.ih_fun = seaintr;
sea->sc_ih.ih_arg = sea;
sea->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sea->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sea->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: ultra14f.c,v 1.44 1994/12/28 19:43:55 mycroft Exp $ */
/* $NetBSD: ultra14f.c,v 1.45 1995/01/03 01:31:05 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -611,7 +611,7 @@ uhaattach(parent, self, aux)
uha->sc_ih.ih_fun = uha->intr;
uha->sc_ih.ih_arg = uha;
uha->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &uha->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &uha->sc_ih);
/*
* ask the adapter what subunits are present

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd.c,v 1.122 1994/12/14 15:23:49 mycroft Exp $ */
/* $NetBSD: wd.c,v 1.123 1995/01/03 01:31:10 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@ -278,7 +278,7 @@ wdcattach(parent, self, aux)
wdc->sc_ih.ih_fun = wdcintr;
wdc->sc_ih.ih_arg = wdc;
wdc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &wdc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &wdc->sc_ih);
for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++)
(void)config_found(self, (void *)&wa, wdprint);

View File

@ -1,4 +1,4 @@
/* $NetBSD: wt.c,v 1.21 1994/11/18 22:03:51 mycroft Exp $ */
/* $NetBSD: wt.c,v 1.22 1995/01/03 01:31:14 mycroft Exp $ */
/*
* Streamer tape driver.
@ -252,7 +252,7 @@ wtattach(parent, self, aux)
sc->sc_ih.ih_fun = wtintr;
sc->sc_ih.ih_arg = sc;
sc->sc_ih.ih_level = IPL_BIO;
intr_establish(ia->ia_irq, &sc->sc_ih);
intr_establish(ia->ia_irq, IST_EDGE, &sc->sc_ih);
}
int