diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-12-24 02:29:35 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-12-24 02:29:35 +0000 |
| commit | 3da4b2a160a4a6da74faa992a498b4e4453471c9 (patch) | |
| tree | 1d8c1545a9941d1846bc7133e294bde85cbf142f /sys/dev/isa | |
| parent | 1ca89b7f9196cda848f1c282e36d81da24d2af6f (diff) | |
The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
Diffstat (limited to 'sys/dev/isa')
| -rw-r--r-- | sys/dev/isa/aha1542.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/aic6360.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/ast.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/boca.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/bt742a.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/com.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/gus.c | 8 | ||||
| -rw-r--r-- | sys/dev/isa/if_ate.c | 12 | ||||
| -rw-r--r-- | sys/dev/isa/if_ed.c | 12 | ||||
| -rw-r--r-- | sys/dev/isa/if_eg.c | 10 | ||||
| -rw-r--r-- | sys/dev/isa/if_el.c | 18 | ||||
| -rw-r--r-- | sys/dev/isa/if_ep.c | 18 | ||||
| -rw-r--r-- | sys/dev/isa/if_fe.c | 12 | ||||
| -rw-r--r-- | sys/dev/isa/if_fmv.c | 12 | ||||
| -rw-r--r-- | sys/dev/isa/if_hp.c | 10 | ||||
| -rw-r--r-- | sys/dev/isa/if_ie.c | 18 | ||||
| -rw-r--r-- | sys/dev/isa/if_le.c | 8 | ||||
| -rw-r--r-- | sys/dev/isa/isa.c | 12 | ||||
| -rw-r--r-- | sys/dev/isa/isavar.h | 24 | ||||
| -rw-r--r-- | sys/dev/isa/lpt.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/lpt_isa.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/mcd.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/pas.c | 4 | ||||
| -rw-r--r-- | sys/dev/isa/pss.c | 14 | ||||
| -rw-r--r-- | sys/dev/isa/rtfps.c | 5 | ||||
| -rw-r--r-- | sys/dev/isa/sb.c | 4 | ||||
| -rw-r--r-- | sys/dev/isa/seagate.c | 4 | ||||
| -rw-r--r-- | sys/dev/isa/ultra14f.c | 4 | ||||
| -rw-r--r-- | sys/dev/isa/wd.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/wss.c | 5 | ||||
| -rw-r--r-- | sys/dev/isa/wt.c | 6 |
31 files changed, 131 insertions, 149 deletions
diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index 6a94546f4f1..bc50dc5f689 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -1,4 +1,4 @@ -/* $NetBSD: aha1542.c,v 1.54 1995/11/10 04:41:58 mycroft Exp $ */ +/* $NetBSD: aha1542.c,v 1.55 1995/12/24 02:31:06 mycroft Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -585,8 +585,8 @@ ahaattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&aha->sc_id, &aha->sc_dev); #endif - aha->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - ahaintr, aha); + aha->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, ahaintr, + aha); /* * ask the adapter what subunits are present diff --git a/sys/dev/isa/aic6360.c b/sys/dev/isa/aic6360.c index 7a910b20a46..974f46693c1 100644 --- a/sys/dev/isa/aic6360.c +++ b/sys/dev/isa/aic6360.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic6360.c,v 1.37 1995/11/30 00:59:51 jtc Exp $ */ +/* $NetBSD: aic6360.c,v 1.38 1995/12/24 02:31:08 mycroft Exp $ */ /* * Copyright (c) 1994, 1995 Charles Hannum. All rights reserved. @@ -766,8 +766,8 @@ aicattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&sc->sc_id, &sc->sc_dev); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - aicintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, aicintr, + sc); config_found(self, &sc->sc_link, aicprint); } diff --git a/sys/dev/isa/ast.c b/sys/dev/isa/ast.c index 77abde08861..e18ba1abb7d 100644 --- a/sys/dev/isa/ast.c +++ b/sys/dev/isa/ast.c @@ -1,4 +1,4 @@ -/* $NetBSD: ast.c,v 1.18 1995/06/26 04:08:04 cgd Exp $ */ +/* $NetBSD: ast.c,v 1.19 1995/12/24 02:31:10 mycroft Exp $ */ /* * Copyright (c) 1995 Charles Hannum. All rights reserved. @@ -139,8 +139,8 @@ astattach(parent, self, aux) } } - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_TTY, - astintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_TTY, astintr, + sc); } int diff --git a/sys/dev/isa/boca.c b/sys/dev/isa/boca.c index 796fe0d3771..a17496ed74a 100644 --- a/sys/dev/isa/boca.c +++ b/sys/dev/isa/boca.c @@ -1,4 +1,4 @@ -/* $NetBSD: boca.c,v 1.5 1995/06/26 04:08:06 cgd Exp $ */ +/* $NetBSD: boca.c,v 1.6 1995/12/24 02:31:11 mycroft Exp $ */ /* * Copyright (c) 1995 Charles Hannum. All rights reserved. @@ -134,8 +134,8 @@ bocaattach(parent, self, aux) } } - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_TTY, - bocaintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_TTY, bocaintr, + sc); } int diff --git a/sys/dev/isa/bt742a.c b/sys/dev/isa/bt742a.c index e179c176066..1ae39c5055f 100644 --- a/sys/dev/isa/bt742a.c +++ b/sys/dev/isa/bt742a.c @@ -1,4 +1,4 @@ -/* $NetBSD: bt742a.c,v 1.49 1995/10/03 20:58:58 mycroft Exp $ */ +/* $NetBSD: bt742a.c,v 1.50 1995/12/24 02:31:13 mycroft Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -612,8 +612,8 @@ btattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&bt->sc_id, &bt->sc_dev); #endif - bt->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - btintr, bt); + bt->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, btintr, + bt); /* * ask the adapter what subunits are present diff --git a/sys/dev/isa/com.c b/sys/dev/isa/com.c index 52b8dfc06fb..4697f963c4b 100644 --- a/sys/dev/isa/com.c +++ b/sys/dev/isa/com.c @@ -1,4 +1,4 @@ -/* $NetBSD: com.c,v 1.62 1995/10/15 19:43:04 mycroft Exp $ */ +/* $NetBSD: com.c,v 1.63 1995/12/24 02:31:15 mycroft Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. @@ -223,8 +223,8 @@ comattach(parent, self, aux) outb(iobase + com_mcr, 0); if (ia->ia_irq != IRQUNK) - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, - ISA_IPL_TTY, comintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_TTY, + comintr, sc); #ifdef KGDB if (kgdb_dev == makedev(commajor, unit)) { diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index 7f1c415f434..416048a8acd 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $NetBSD: gus.c,v 1.3 1995/11/10 04:30:44 mycroft Exp $ */ +/* $NetBSD: gus.c,v 1.4 1995/12/24 02:31:17 mycroft Exp $ */ /* * Copyright (c) 1994, 1995 Ken Hornstein. All rights reserved. @@ -911,10 +911,10 @@ gusattach(parent, self, aux) */ /* XXX we shouldn't have to use splgus == splclock, nor should - * we use ISA_IPL_CLOCK. + * we use IPL_CLOCK. */ - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, - gusintr, sc /* sc->sc_gusdsp */); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_AUDIO, gusintr, + sc /* sc->sc_gusdsp */); /* * Set some default values diff --git a/sys/dev/isa/if_ate.c b/sys/dev/isa/if_ate.c index 4f10f48f143..2a853fe9d36 100644 --- a/sys/dev/isa/if_ate.c +++ b/sys/dev/isa/if_ate.c @@ -1124,8 +1124,8 @@ feattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - feintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, feintr, + sc); } /* @@ -1137,7 +1137,7 @@ fe_reset(sc) { int s; - s = splimp(); + s = splnet(); fe_stop(sc); fe_init(sc); splx(s); @@ -1410,7 +1410,7 @@ fe_xmit(sc) /* * Start output on interface. * We make two assumptions here: - * 1) that the current priority is set to splimp _before_ this code + * 1) that the current priority is set to splnet _before_ this code * is called *and* is returned to the appropriate priority after * return * 2) that the IFF_OACTIVE flag is checked before this code is called @@ -1928,7 +1928,7 @@ fe_ioctl(ifp, command, data) log(LOG_INFO, "%s: ioctl(%x)\n", sc->sc_dev.dv_xname, command); #endif - s = splimp(); + s = splnet(); switch (command) { @@ -2427,7 +2427,7 @@ fe_setmode(sc) /* * Load a new multicast address filter into MARs. * - * The caller must have splimp'ed befor fe_loadmar. + * The caller must have splnet'ed befor fe_loadmar. * This function starts the DLC upon return. So it can be called only * when the chip is working, i.e., from the driver's point of view, when * a device is RUNNING. (I mistook the point in previous versions.) diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c index 0c4fa0cd428..8918609f049 100644 --- a/sys/dev/isa/if_ed.c +++ b/sys/dev/isa/if_ed.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ed.c,v 1.85 1995/07/25 05:11:11 mycroft Exp $ */ +/* $NetBSD: if_ed.c,v 1.86 1995/12/24 02:31:21 mycroft Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -1092,8 +1092,8 @@ edattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - edintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, edintr, + sc); } /* @@ -1105,7 +1105,7 @@ edreset(sc) { int s; - s = splimp(); + s = splnet(); edstop(sc); edinit(sc); splx(s); @@ -1329,7 +1329,7 @@ ed_xmit(sc) /* * Start output on interface. * We make two assumptions here: - * 1) that the current priority is set to splimp _before_ this code + * 1) that the current priority is set to splnet _before_ this code * is called *and* is returned to the appropriate priority after * return * 2) that the IFF_OACTIVE flag is checked before this code is called @@ -1766,7 +1766,7 @@ edioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splimp(); + s = splnet(); switch (cmd) { diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c index 4f2e8402a2e..7f5f91a4376 100644 --- a/sys/dev/isa/if_eg.c +++ b/sys/dev/isa/if_eg.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_eg.c,v 1.20 1995/07/24 04:12:45 mycroft Exp $ */ +/* $NetBSD: if_eg.c,v 1.21 1995/12/24 02:31:24 mycroft Exp $ */ /* * Copyright (c) 1993 Dean Huxley <dean@fsa.ca> @@ -409,8 +409,8 @@ egattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - egintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, egintr, + sc); } void @@ -731,7 +731,7 @@ egioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splimp(); + s = splnet(); switch (cmd) { @@ -813,7 +813,7 @@ egreset(sc) int s; dprintf(("egreset()\n")); - s = splimp(); + s = splnet(); egstop(sc); eginit(sc); splx(s); diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index 0a6d9d27fc3..574c9452be7 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_el.c,v 1.33 1995/08/05 23:53:18 mycroft Exp $ */ +/* $NetBSD: if_el.c,v 1.34 1995/12/24 02:31:25 mycroft Exp $ */ /* * Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted @@ -205,8 +205,8 @@ elattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - elintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, elintr, + sc); dprintf(("elattach() finished.\n")); } @@ -221,7 +221,7 @@ elreset(sc) int s; dprintf(("elreset()\n")); - s = splimp(); + s = splnet(); elstop(sc); elinit(sc); splx(s); @@ -296,7 +296,7 @@ elinit(sc) /* * Start output on interface. Get datagrams from the queue and output them, - * giving the receiver a chance between datagrams. Call only from splimp or + * giving the receiver a chance between datagrams. Call only from splnet or * interrupt level! */ void @@ -309,7 +309,7 @@ elstart(ifp) int s, i, off, retries; dprintf(("elstart()...\n")); - s = splimp(); + s = splnet(); /* Don't do anything if output is active. */ if ((ifp->if_flags & IFF_OACTIVE) != 0) { @@ -392,7 +392,7 @@ elstart(ifp) outb(iobase+EL_AC, EL_AC_IRQE | EL_AC_RX); splx(s); /* Interrupt here. */ - s = splimp(); + s = splnet(); } (void)inb(iobase+EL_AS); @@ -403,7 +403,7 @@ elstart(ifp) /* * This function actually attempts to transmit a datagram downloaded to the - * board. Call at splimp or interrupt, after downloading data! Returns 0 on + * board. Call at splnet or interrupt, after downloading data! Returns 0 on * success, non-0 on failure. */ static int @@ -620,7 +620,7 @@ elioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splimp(); + s = splnet(); switch (cmd) { diff --git a/sys/dev/isa/if_ep.c b/sys/dev/isa/if_ep.c index f3edf1424b6..83bf1338352 100644 --- a/sys/dev/isa/if_ep.c +++ b/sys/dev/isa/if_ep.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ep.c,v 1.85 1995/12/05 03:30:15 christos Exp $ */ +/* $NetBSD: if_ep.c,v 1.86 1995/12/24 02:31:27 mycroft Exp $ */ /* * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> @@ -428,7 +428,7 @@ epattach(parent, self, aux) PCI_COMMAND_STATUS_REG) | PCI_COMMAND_MASTER_ENABLE); - sc->sc_ih = pci_map_int(pa->pa_tag, PCI_IPL_NET, epintr, sc); + sc->sc_ih = pci_map_int(pa->pa_tag, IPL_NET, epintr, sc); if (sc->sc_ih == NULL) { printf("%s: couldn't map interrupt\n", sc->sc_dev.dv_xname); @@ -440,8 +440,8 @@ epattach(parent, self, aux) #endif { struct isa_attach_args *ia = aux; - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, - ISA_IPL_NET, epintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, + epintr, sc); } } @@ -569,7 +569,7 @@ epsetlink(sc) /* * Start outputting on the interface. - * Always called as splimp(). + * Always called as splnet(). */ void epstart(ifp) @@ -1064,7 +1064,7 @@ epioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splimp(); + s = splnet(); switch (cmd) { @@ -1159,7 +1159,7 @@ epreset(sc) { int s; - s = splimp(); + s = splnet(); epstop(sc); epinit(sc); splx(s); @@ -1263,7 +1263,7 @@ epmbuffill(sc) { int s, i; - s = splimp(); + s = splnet(); i = sc->last_mb; do { if (sc->mb[i] == NULL) @@ -1285,7 +1285,7 @@ epmbufempty(sc) { int s, i; - s = splimp(); + s = splnet(); for (i = 0; i<MAX_MBS; i++) { if (sc->mb[i]) { m_freem(sc->mb[i]); diff --git a/sys/dev/isa/if_fe.c b/sys/dev/isa/if_fe.c index 4f10f48f143..2a853fe9d36 100644 --- a/sys/dev/isa/if_fe.c +++ b/sys/dev/isa/if_fe.c @@ -1124,8 +1124,8 @@ feattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - feintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, feintr, + sc); } /* @@ -1137,7 +1137,7 @@ fe_reset(sc) { int s; - s = splimp(); + s = splnet(); fe_stop(sc); fe_init(sc); splx(s); @@ -1410,7 +1410,7 @@ fe_xmit(sc) /* * Start output on interface. * We make two assumptions here: - * 1) that the current priority is set to splimp _before_ this code + * 1) that the current priority is set to splnet _before_ this code * is called *and* is returned to the appropriate priority after * return * 2) that the IFF_OACTIVE flag is checked before this code is called @@ -1928,7 +1928,7 @@ fe_ioctl(ifp, command, data) log(LOG_INFO, "%s: ioctl(%x)\n", sc->sc_dev.dv_xname, command); #endif - s = splimp(); + s = splnet(); switch (command) { @@ -2427,7 +2427,7 @@ fe_setmode(sc) /* * Load a new multicast address filter into MARs. * - * The caller must have splimp'ed befor fe_loadmar. + * The caller must have splnet'ed befor fe_loadmar. * This function starts the DLC upon return. So it can be called only * when the chip is working, i.e., from the driver's point of view, when * a device is RUNNING. (I mistook the point in previous versions.) diff --git a/sys/dev/isa/if_fmv.c b/sys/dev/isa/if_fmv.c index 4f10f48f143..2a853fe9d36 100644 --- a/sys/dev/isa/if_fmv.c +++ b/sys/dev/isa/if_fmv.c @@ -1124,8 +1124,8 @@ feattach(parent, self, aux) bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - feintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, feintr, + sc); } /* @@ -1137,7 +1137,7 @@ fe_reset(sc) { int s; - s = splimp(); + s = splnet(); fe_stop(sc); fe_init(sc); splx(s); @@ -1410,7 +1410,7 @@ fe_xmit(sc) /* * Start output on interface. * We make two assumptions here: - * 1) that the current priority is set to splimp _before_ this code + * 1) that the current priority is set to splnet _before_ this code * is called *and* is returned to the appropriate priority after * return * 2) that the IFF_OACTIVE flag is checked before this code is called @@ -1928,7 +1928,7 @@ fe_ioctl(ifp, command, data) log(LOG_INFO, "%s: ioctl(%x)\n", sc->sc_dev.dv_xname, command); #endif - s = splimp(); + s = splnet(); switch (command) { @@ -2427,7 +2427,7 @@ fe_setmode(sc) /* * Load a new multicast address filter into MARs. * - * The caller must have splimp'ed befor fe_loadmar. + * The caller must have splnet'ed befor fe_loadmar. * This function starts the DLC upon return. So it can be called only * when the chip is working, i.e., from the driver's point of view, when * a device is RUNNING. (I mistook the point in previous versions.) diff --git a/sys/dev/isa/if_hp.c b/sys/dev/isa/if_hp.c index d0117ae2839..86f9916044f 100644 --- a/sys/dev/isa/if_hp.c +++ b/sys/dev/isa/if_hp.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_hp.c,v 1.20 1995/04/17 12:09:01 cgd Exp $ */ +/* $NetBSD: if_hp.c,v 1.21 1995/12/24 02:31:31 mycroft Exp $ */ /* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */ @@ -162,7 +162,7 @@ hpprobe(dvp) #endif hpc = (ns->ns_port = dvp->id_iobase + 0x10); - s = splimp(); + s = splnet(); ns->hp_irq = ffs(dvp->id_irq) - 1; @@ -441,7 +441,7 @@ hpinit(unit) if (ifp->if_flags & IFF_RUNNING) return; - s = splimp(); + s = splnet(); #ifdef HP_DEBUG printf("hpinit: hp%d at 0x%x irq %d\n", unit, hpc, (int) ns->hp_irq); @@ -505,7 +505,7 @@ hpinit(unit) * Setup output on interface. * Get another datagram to send off of the interface queue, * and map it to the interface before starting the output. - * called only at splimp or interrupt level. + * called only at splnet or interrupt level. */ hpstart(ifp) struct ifnet *ifp; @@ -926,7 +926,7 @@ hpioctl(ifp, cmd, data) register struct ifaddr *ifa = (struct ifaddr *) data; struct hp_softc *ns = &hp_softc[ifp->if_unit]; struct ifreq *ifr = (struct ifreq *) data; - int s = splimp(), error = 0; + int s = splnet(), error = 0; switch (cmd) { diff --git a/sys/dev/isa/if_ie.c b/sys/dev/isa/if_ie.c index b991ee87636..9fa3dd13963 100644 --- a/sys/dev/isa/if_ie.c +++ b/sys/dev/isa/if_ie.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ie.c,v 1.44 1995/09/26 13:24:48 hpeyerl Exp $ */ +/* $NetBSD: if_ie.c,v 1.45 1995/12/24 02:31:33 mycroft Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles Hannum. @@ -87,7 +87,7 @@ that we must include this header in the transmit buffer as well. By convention, all transmit commands, and only transmit commands, shall have the I (IE_CMD_INTR) bit set in the command. This way, when an interrupt arrives at ieintr(), it is immediately possible to tell what precisely caused -it. ANY OTHER command-sending routines should run at splimp(), and should +it. ANY OTHER command-sending routines should run at splnet(), and should post an acknowledgement to every interrupt they generate. The 82586 has a 24-bit address space internally, and the adaptor's memory is @@ -776,8 +776,8 @@ ieattach(parent, self, aux) sizeof(struct ether_header)); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_NET, - ieintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, ieintr, + sc); } /* @@ -1508,7 +1508,7 @@ check_ie_present(sc, where, size) u_long realbase; int s; - s = splimp(); + s = splnet(); realbase = (u_long)where + size - (1 << 24); @@ -1759,7 +1759,7 @@ void iereset(sc) struct ie_softc *sc; { - int s = splimp(); + int s = splnet(); iestop(sc); @@ -1967,7 +1967,7 @@ iememinit(ptr, sc) /* * Run the multicast setup command. - * Called at splimp(). + * Called at splnet(). */ static int mc_setup(sc, ptr) @@ -2001,7 +2001,7 @@ mc_setup(sc, ptr) * includes executing the CONFIGURE, IA-SETUP, and MC-SETUP commands, starting * the receiver unit, and clearing interrupts. * - * THIS ROUTINE MUST BE CALLED AT splimp() OR HIGHER. + * THIS ROUTINE MUST BE CALLED AT splnet() OR HIGHER. */ int ieinit(sc) @@ -2115,7 +2115,7 @@ ieioctl(ifp, cmd, data) struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; - s = splimp(); + s = splnet(); switch (cmd) { diff --git a/sys/dev/isa/if_le.c b/sys/dev/isa/if_le.c index eb0f039c22a..9be954505e2 100644 --- a/sys/dev/isa/if_le.c +++ b/sys/dev/isa/if_le.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_le.c,v 1.37 1995/11/25 01:24:00 cgd Exp $ */ +/* $NetBSD: if_le.c,v 1.38 1995/12/24 02:31:35 mycroft Exp $ */ /*- * Copyright (c) 1995 Charles M. Hannum. All rights reserved. @@ -397,8 +397,8 @@ leattach(parent, self, aux) if (ia->ia_drq != DRQUNK) isa_dmacascade(ia->ia_drq); - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, - ISA_IPL_NET, leintredge, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NET, + leintredge, sc); } #endif @@ -410,7 +410,7 @@ leattach(parent, self, aux) pci_conf_read(pa->pa_tag, PCI_COMMAND_STATUS_REG) | PCI_COMMAND_MASTER_ENABLE); - sc->sc_ih = pci_map_int(pa->pa_tag, PCI_IPL_NET, leintr, sc); + sc->sc_ih = pci_map_int(pa->pa_tag, IPL_NET, leintr, sc); } #endif diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c index 799bf2fb2f9..9fdeb3af1f4 100644 --- a/sys/dev/isa/isa.c +++ b/sys/dev/isa/isa.c @@ -1,4 +1,4 @@ -/* $NetBSD: isa.c,v 1.74 1995/06/07 06:46:04 cgd Exp $ */ +/* $NetBSD: isa.c,v 1.75 1995/12/24 02:31:37 mycroft Exp $ */ /*- * Copyright (c) 1993, 1994 Charles Hannum. All rights reserved. @@ -88,17 +88,17 @@ isascan(parent, match) char * isa_intr_typename(type) - isa_intrtype type; + int type; { switch (type) { - case ISA_IST_NONE : + case IST_NONE : return ("none"); - case ISA_IST_PULSE: + case IST_PULSE: return ("pulsed"); - case ISA_IST_EDGE: + case IST_EDGE: return ("edge-triggered"); - case ISA_IST_LEVEL: + case IST_LEVEL: return ("level-triggered"); default: panic("isa_intr_typename: invalid type %d", type); diff --git a/sys/dev/isa/isavar.h b/sys/dev/isa/isavar.h index 96fc2455992..581288a6dc2 100644 --- a/sys/dev/isa/isavar.h +++ b/sys/dev/isa/isavar.h @@ -1,4 +1,4 @@ -/* $NetBSD: isavar.h,v 1.16 1995/06/07 06:45:44 cgd Exp $ */ +/* $NetBSD: isavar.h,v 1.17 1995/12/24 02:31:38 mycroft Exp $ */ /* * Copyright (c) 1995 Chris G. Demetriou @@ -102,27 +102,11 @@ struct isa_softc { */ /* ISA interrupt sharing types */ -typedef enum { - ISA_IST_NONE = 0, /* not yet assigned */ - ISA_IST_PULSE, /* pulsed */ - ISA_IST_EDGE, /* edge-triggered */ - ISA_IST_LEVEL /* level-triggered */ -} isa_intrtype; - -/* ISA interrupt levels; system interrupt levels for ISA bus use */ -typedef enum { - ISA_IPL_NONE, /* block only the interrupt's IRQ*/ - ISA_IPL_BIO, /* block I/O interrupts */ - ISA_IPL_NET, /* network */ - ISA_IPL_TTY, /* terminal */ - ISA_IPL_CLOCK, /* clock */ -} isa_intrlevel; - void isascan __P((struct device *parent, void *match)); -void *isa_intr_establish __P((int intr, isa_intrtype type, - isa_intrlevel level, int (*ih_fun)(void *), void *ih_arg)); +void *isa_intr_establish __P((int intr, int type, int level, + int (*ih_fun)(void *), void *ih_arg)); void isa_intr_disestablish __P((void *handler)); -char *isa_intr_typename __P((isa_intrtype type)); +char *isa_intr_typename __P((int type)); #ifdef NEWCONFIG /* diff --git a/sys/dev/isa/lpt.c b/sys/dev/isa/lpt.c index aee3a5be153..959a3a9dddd 100644 --- a/sys/dev/isa/lpt.c +++ b/sys/dev/isa/lpt.c @@ -1,4 +1,4 @@ -/* $NetBSD: lpt.c,v 1.30 1995/04/17 12:09:17 cgd Exp $ */ +/* $NetBSD: lpt.c,v 1.31 1995/12/24 02:31:40 mycroft Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -238,8 +238,8 @@ lptattach(parent, self, aux) outb(iobase + lpt_control, LPC_NINIT); if (ia->ia_irq != IRQUNK) - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, - ISA_IPL_NONE, lptintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NONE, + lptintr, sc); } /* diff --git a/sys/dev/isa/lpt_isa.c b/sys/dev/isa/lpt_isa.c index f0cfc85a43d..9575d1ac092 100644 --- a/sys/dev/isa/lpt_isa.c +++ b/sys/dev/isa/lpt_isa.c @@ -1,4 +1,4 @@ -/* $NetBSD: lpt_isa.c,v 1.30 1995/04/17 12:09:17 cgd Exp $ */ +/* $NetBSD: lpt_isa.c,v 1.31 1995/12/24 02:31:40 mycroft Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -238,8 +238,8 @@ lptattach(parent, self, aux) outb(iobase + lpt_control, LPC_NINIT); if (ia->ia_irq != IRQUNK) - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, - ISA_IPL_NONE, lptintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_NONE, + lptintr, sc); } /* diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c index 35941a8bfa1..6b6dd178772 100644 --- a/sys/dev/isa/mcd.c +++ b/sys/dev/isa/mcd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mcd.c,v 1.42 1995/08/05 23:47:52 mycroft Exp $ */ +/* $NetBSD: mcd.c,v 1.43 1995/12/24 02:31:42 mycroft Exp $ */ /* * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. @@ -222,8 +222,8 @@ mcdattach(parent, self, aux) sc->sc_dk.dk_driver = &mcddkdriver; - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - mcdintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, mcdintr, + sc); } /* diff --git a/sys/dev/isa/pas.c b/sys/dev/isa/pas.c index 417b2325e5a..bbc6e548e52 100644 --- a/sys/dev/isa/pas.c +++ b/sys/dev/isa/pas.c @@ -1,4 +1,4 @@ -/* $NetBSD: pas.c,v 1.10 1995/11/10 05:05:18 mycroft Exp $ */ +/* $NetBSD: pas.c,v 1.11 1995/12/24 02:31:43 mycroft Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -431,7 +431,7 @@ pasattach(parent, self, aux) int err; sc->sc_iobase = iobase; - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_AUDIO, sbdsp_intr, &sc->sc_sbdsp); printf(" ProAudio Spectrum %s [rev %d] ", pasnames[sc->model], sc->rev); diff --git a/sys/dev/isa/pss.c b/sys/dev/isa/pss.c index a5b4f0d5876..e70f214295e 100644 --- a/sys/dev/isa/pss.c +++ b/sys/dev/isa/pss.c @@ -1,4 +1,4 @@ -/* $NetBSD: pss.c,v 1.10 1995/11/10 04:30:49 mycroft Exp $ */ +/* $NetBSD: pss.c,v 1.11 1995/12/24 02:31:45 mycroft Exp $ */ /* * Copyright (c) 1994 John Brezak @@ -1004,8 +1004,8 @@ pssattach(parent, self, aux) #endif /* Setup interrupt handler for PSS */ - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, - pssintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_AUDIO, pssintr, + sc); vers = (inw(sc->sc_iobase+PSS_ID_VERS)&0xff) - 1; printf(": ESC614%c\n", (vers > 0)?'A'+vers:' '); @@ -1039,8 +1039,8 @@ spattach(parent, self, aux) isa_establish(&sc->sc_id, &sc->sc_dev); #endif - sc->sc_ih = isa_intr_establish(cf->cf_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, - ad1848_intr, sc); + sc->sc_ih = isa_intr_establish(cf->cf_irq, IST_EDGE, IPL_AUDIO, ad1848_intr, + sc); /* XXX might use pssprint func ?? */ printf(" port 0x%x-0x%x irq %d drq %d", @@ -1067,8 +1067,8 @@ mpuattach(parent, self, aux) isa_establish(&sc->sc_id, &sc->sc_dev); #endif - sc->sc_ih = isa_intr_establish(cf->cf_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, - mpuintr, sc); + sc->sc_ih = isa_intr_establish(cf->cf_irq, IST_EDGE, IPL_AUDIO, mpuintr, + sc); /* XXX might use pssprint func ?? */ printf(" port 0x%x-0x%x irq %d\n", diff --git a/sys/dev/isa/rtfps.c b/sys/dev/isa/rtfps.c index cff8651d628..41cc056332a 100644 --- a/sys/dev/isa/rtfps.c +++ b/sys/dev/isa/rtfps.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtfps.c,v 1.13 1995/06/26 04:12:01 cgd Exp $ */ +/* $NetBSD: rtfps.c,v 1.14 1995/12/24 02:31:48 mycroft Exp $ */ /* * Copyright (c) 1995 Charles Hannum. All rights reserved. @@ -147,8 +147,7 @@ rtfpsattach(parent, self, aux) } } - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_TTY, - rtfpsintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_TTY, rtfpsintr, sc); } int diff --git a/sys/dev/isa/sb.c b/sys/dev/isa/sb.c index 43d4aab1c15..4fffcee54e4 100644 --- a/sys/dev/isa/sb.c +++ b/sys/dev/isa/sb.c @@ -1,4 +1,4 @@ -/* $NetBSD: sb.c,v 1.28 1995/11/10 05:01:05 mycroft Exp $ */ +/* $NetBSD: sb.c,v 1.29 1995/12/24 02:31:49 mycroft Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -273,7 +273,7 @@ sbattach(parent, self, aux) register int iobase = ia->ia_iobase; int err; - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_AUDIO, sbdsp_intr, sc); sbdsp_attach(sc); diff --git a/sys/dev/isa/seagate.c b/sys/dev/isa/seagate.c index 2319e2ef55f..4e2ef8990cc 100644 --- a/sys/dev/isa/seagate.c +++ b/sys/dev/isa/seagate.c @@ -438,8 +438,8 @@ seaattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&sea->sc_id, &sea->sc_deV); #endif - sea->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - seaintr, sea); + sea->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, seaintr, + sea); /* * ask the adapter what subunits are present diff --git a/sys/dev/isa/ultra14f.c b/sys/dev/isa/ultra14f.c index ef81aba0e9a..87464eaba85 100644 --- a/sys/dev/isa/ultra14f.c +++ b/sys/dev/isa/ultra14f.c @@ -1,4 +1,4 @@ -/* $NetBSD: ultra14f.c,v 1.58 1995/11/10 04:42:07 mycroft Exp $ */ +/* $NetBSD: ultra14f.c,v 1.59 1995/12/24 02:31:56 mycroft Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -608,7 +608,7 @@ uhaattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&uha->sc_id, &uha->sc_dev); #endif - uha->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, + uha->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, uha->intr, uha); /* diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c index 90b6f37f56f..bcc4a55d4d9 100644 --- a/sys/dev/isa/wd.c +++ b/sys/dev/isa/wd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.142 1995/08/05 23:50:23 mycroft Exp $ */ +/* $NetBSD: wd.c,v 1.143 1995/12/24 02:31:59 mycroft Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -249,8 +249,8 @@ wdcattach(parent, self, aux) printf("\n"); - wdc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - wdcintr, wdc); + wdc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, wdcintr, + wdc); for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++) (void)config_found(self, (void *)&wa, wdprint); diff --git a/sys/dev/isa/wss.c b/sys/dev/isa/wss.c index 802fe505284..16a2499c548 100644 --- a/sys/dev/isa/wss.c +++ b/sys/dev/isa/wss.c @@ -1,4 +1,4 @@ -/* $NetBSD: wss.c,v 1.7 1995/11/10 04:30:52 mycroft Exp $ */ +/* $NetBSD: wss.c,v 1.8 1995/12/24 02:32:03 mycroft Exp $ */ /* * Copyright (c) 1994 John Brezak @@ -249,8 +249,7 @@ wssattach(parent, self, aux) #ifdef NEWCONFIG isa_establish(&sc->sc_id, &sc->sc_dev); #endif - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_AUDIO, - ad1848_intr, &sc->sc_ad1848); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_AUDIO, ad1848_intr, &sc->sc_ad1848); ad1848_attach(&sc->sc_ad1848); diff --git a/sys/dev/isa/wt.c b/sys/dev/isa/wt.c index e770b00661e..d28b72f5ea0 100644 --- a/sys/dev/isa/wt.c +++ b/sys/dev/isa/wt.c @@ -1,4 +1,4 @@ -/* $NetBSD: wt.c,v 1.26 1995/07/04 07:23:58 mycroft Exp $ */ +/* $NetBSD: wt.c,v 1.27 1995/12/24 02:32:05 mycroft Exp $ */ /* * Streamer tape driver. @@ -249,8 +249,8 @@ wtattach(parent, self, aux) sc->flags = TPSTART; /* tape is rewound */ sc->dens = -1; /* unknown density */ - sc->sc_ih = isa_intr_establish(ia->ia_irq, ISA_IST_EDGE, ISA_IPL_BIO, - wtintr, sc); + sc->sc_ih = isa_intr_establish(ia->ia_irq, IST_EDGE, IPL_BIO, wtintr, + sc); } int |
