summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-11-06 18:20:05 +0000
committermiod <miod@openbsd.org>2007-11-06 18:20:05 +0000
commitee682b374d185c2263236ecb55a80c357df4aaf2 (patch)
treee23166b338df6028a3b7b59c1640af053179f57e /sys/dev
parentsync (diff)
downloadwireguard-openbsd-ee682b374d185c2263236ecb55a80c357df4aaf2.tar.xz
wireguard-openbsd-ee682b374d185c2263236ecb55a80c357df4aaf2.zip
Get rid of TC_IPL_xxx values and tc_intrlevel_t, and use IPL_xxx and int.
No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/tc/if_fta.c4
-rw-r--r--sys/dev/tc/if_le_ioasic.c4
-rw-r--r--sys/dev/tc/if_le_tc.c4
-rw-r--r--sys/dev/tc/tcds.c4
-rw-r--r--sys/dev/tc/tcvar.h22
5 files changed, 9 insertions, 29 deletions
diff --git a/sys/dev/tc/if_fta.c b/sys/dev/tc/if_fta.c
index 1d1aff54bfd..343f8893240 100644
--- a/sys/dev/tc/if_fta.c
+++ b/sys/dev/tc/if_fta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fta.c,v 1.13 2007/04/12 17:05:20 miod Exp $ */
+/* $OpenBSD: if_fta.c,v 1.14 2007/11/06 18:20:07 miod Exp $ */
/* $NetBSD: if_fta.c,v 1.7 1996/10/22 21:37:26 cgd Exp $ */
/*-
@@ -113,7 +113,7 @@ pdq_tc_attach(parent, self, aux)
sc->sc_arpcom.ac_enaddr, 6);
pdq_ifattach(sc, NULL);
- tc_intr_establish(parent, ta->ta_cookie, TC_IPL_NET,
+ tc_intr_establish(parent, ta->ta_cookie, IPL_NET,
(int (*)(void *)) pdq_interrupt, sc->sc_pdq);
sc->sc_ats = shutdownhook_establish((void (*)(void *)) pdq_hwreset,
diff --git a/sys/dev/tc/if_le_ioasic.c b/sys/dev/tc/if_le_ioasic.c
index 2f770263063..b239b4b9af9 100644
--- a/sys/dev/tc/if_le_ioasic.c
+++ b/sys/dev/tc/if_le_ioasic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le_ioasic.c,v 1.13 2007/06/18 21:24:43 jasper Exp $ */
+/* $OpenBSD: if_le_ioasic.c,v 1.14 2007/11/06 18:20:07 miod Exp $ */
/* $NetBSD: if_le_ioasic.c,v 1.18 2001/11/13 06:26:10 lukem Exp $ */
/*
@@ -163,7 +163,7 @@ le_ioasic_attach(struct device *parent, struct device *self, void *aux)
(u_char *)((struct ioasic_softc *)parent)->sc_base
+ IOASIC_SLOT_2_START);
- ioasic_intr_establish(parent, d->iada_cookie, TC_IPL_NET,
+ ioasic_intr_establish(parent, d->iada_cookie, IPL_NET,
am7990_intr, sc);
return;
diff --git a/sys/dev/tc/if_le_tc.c b/sys/dev/tc/if_le_tc.c
index 4d44baa2059..e8beb43b655 100644
--- a/sys/dev/tc/if_le_tc.c
+++ b/sys/dev/tc/if_le_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le_tc.c,v 1.8 2007/06/17 21:20:47 jasper Exp $ */
+/* $OpenBSD: if_le_tc.c,v 1.9 2007/11/06 18:20:07 miod Exp $ */
/* $NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $ */
/*
@@ -105,5 +105,5 @@ le_tc_attach(struct device *parent, struct device *self, void *aux)
dec_le_common_attach(&lesc->sc_am7990,
(u_char *)(d->ta_addr + LE_OFFSET_ROM + 2));
- tc_intr_establish(parent, d->ta_cookie, TC_IPL_NET, am7990_intr, sc);
+ tc_intr_establish(parent, d->ta_cookie, IPL_NET, am7990_intr, sc);
}
diff --git a/sys/dev/tc/tcds.c b/sys/dev/tc/tcds.c
index 22aeaeebf2d..1eeadf27ade 100644
--- a/sys/dev/tc/tcds.c
+++ b/sys/dev/tc/tcds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcds.c,v 1.4 2004/06/28 02:28:43 aaron Exp $ */
+/* $OpenBSD: tcds.c,v 1.5 2007/11/06 18:20:07 miod Exp $ */
/* $NetBSD: tcds.c,v 1.3 2001/11/13 06:26:10 lukem Exp $ */
/*-
@@ -206,7 +206,7 @@ tcdsattach(parent, self, aux)
sc->sc_cookie = ta->ta_cookie;
- tc_intr_establish(parent, sc->sc_cookie, TC_IPL_BIO, tcds_intr, sc);
+ tc_intr_establish(parent, sc->sc_cookie, IPL_BIO, tcds_intr, sc);
/*
* XXX
diff --git a/sys/dev/tc/tcvar.h b/sys/dev/tc/tcvar.h
index 6d7319a01ea..5c1d72fbf1d 100644
--- a/sys/dev/tc/tcvar.h
+++ b/sys/dev/tc/tcvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcvar.h,v 1.12 2004/06/28 02:28:43 aaron Exp $ */
+/* $OpenBSD: tcvar.h,v 1.13 2007/11/06 18:20:07 miod Exp $ */
/* $NetBSD: tcvar.h,v 1.17 2000/06/04 19:15:15 cgd Exp $ */
/*
@@ -43,26 +43,6 @@
*/
#include <machine/tc_machdep.h>
-/*
- * In the long run, the following block will go completely away.
- * For now, the MI TC code still uses the old TC_IPL_ names
- * and not the new IPL_ names.
- */
-#if 1
-/*
- * Map the new definitions to the old.
- */
-#include <machine/intr.h>
-
-#define tc_intrlevel_t int
-
-#define TC_IPL_NONE IPL_NONE
-#define TC_IPL_BIO IPL_BIO
-#define TC_IPL_NET IPL_NET
-#define TC_IPL_TTY IPL_TTY
-#define TC_IPL_CLOCK IPL_CLOCK
-#endif /* 1 */
-
struct tc_softc {
struct device sc_dv;