aboutsummaryrefslogtreecommitdiff
path: root/sys/net/netisr.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-02-13 03:32:07 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-02-13 03:32:07 +0000
commit242c5536ea8a69496ed4827a9908505b8eaf52da (patch)
treea31aa86acc3b4c619d5f6919749b971bfe1833bc /sys/net/netisr.h
parent84a5b015049ed8f12d326801575b6bd2a7a4973b (diff)
downloadsrc-242c5536ea8a69496ed4827a9908505b8eaf52da.tar.gz
src-242c5536ea8a69496ed4827a9908505b8eaf52da.zip
Notes
Diffstat (limited to 'sys/net/netisr.h')
-rw-r--r--sys/net/netisr.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h
index 563c4ec6b0d2..3ae1d13518af 100644
--- a/sys/net/netisr.h
+++ b/sys/net/netisr.h
@@ -45,9 +45,6 @@
* level for the clock (so you can enter the network in routines called
* at timeout time).
*/
-#if defined(vax) || defined(tahoe)
-#define setsoftnet() mtpr(SIRR, 12)
-#endif
/*
* Each ``pup-level-1'' input queue has a bit in a ``netisr'' status
@@ -55,41 +52,29 @@
* interrupt used for scheduling the network code to calls
* on the lowest level routine of each protocol.
*/
-#define NETISR_RAW 0 /* same as AF_UNSPEC */
#define NETISR_IP 2 /* same as AF_INET */
-#define NETISR_IMP 3 /* same as AF_IMPLINK */
#define NETISR_NS 6 /* same as AF_NS */
-#define NETISR_ISO 7 /* same as AF_ISO */
-#define NETISR_CCITT 10 /* same as AF_CCITT */
#define NETISR_ATALK 16 /* same as AF_APPLETALK */
#define NETISR_ARP 18 /* same as AF_LINK */
#define NETISR_IPX 23 /* same as AF_IPX */
#define NETISR_USB 25 /* USB soft interrupt */
-#define NETISR_ISDN 26 /* same as AF_E164 */
#define NETISR_PPP 27 /* PPP soft interrupt */
#define NETISR_IPV6 28 /* same as AF_INET6 */
#define NETISR_NATM 29 /* same as AF_NATM */
#define NETISR_NETGRAPH 31 /* same as AF_NETGRAPH */
-#define schednetisr(anisr) { netisr |= 1<<(anisr); setsoftnet(); }
#ifndef LOCORE
#ifdef _KERNEL
+
extern volatile unsigned int netisr; /* scheduling bits for network */
+#define schednetisr(anisr) { netisr |= 1 << (anisr); setsoftnet(); }
typedef void netisr_t __P((void));
-struct netisrtab {
- int nit_num;
- netisr_t *nit_isr;
-};
-
int register_netisr __P((int, netisr_t *));
-void netisr_sysinit __P((void *));
+int unregister_netisr __P((int));
-#define NETISR_SET(num, isr) \
- static struct netisrtab nisr_##num = { num, isr }; \
- SYSINIT(nisr_##num, SI_SUB_CPU, SI_ORDER_ANY, netisr_sysinit, &nisr_##num)
#endif
#endif