diff options
author | 2000-11-08 11:32:38 +0000 | |
---|---|---|
committer | 2000-11-08 11:32:38 +0000 | |
commit | 5770636f23f6605a4067db29a07ae084a6d2e134 (patch) | |
tree | 03d15207a68b7cf08d5456a435db30dde26c5da6 /sys | |
parent | Add files required to compile kerberosIV/usr.bin/kftp (diff) | |
download | wireguard-openbsd-5770636f23f6605a4067db29a07ae084a6d2e134.tar.xz wireguard-openbsd-5770636f23f6605a4067db29a07ae084a6d2e134.zip |
Add a centralized dispatcher for softnet interrupts.
This is so that we won't need to change every arch on a softnet change.
From NetBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/netisr_dispatch.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sys/net/netisr_dispatch.h b/sys/net/netisr_dispatch.h new file mode 100644 index 00000000000..c3c7dd91bad --- /dev/null +++ b/sys/net/netisr_dispatch.h @@ -0,0 +1,65 @@ +/* $NetBSD: netisr_dispatch.h,v 1.2 2000/07/02 04:40:47 cgd Exp $ */ + +/* + * netisr_dispatch: This file is included by the + * machine dependant softnet function. The + * DONETISR macro should be set before including + * this file. i.e.: + * + * softintr() { + * ...do setup stuff... + * #define DONETISR(bit, fn) do { ... } while (0) + * #include <net/netisr_dispatch.h> + * #undef DONETISR + * ...do cleanup stuff. + * } + */ + +#ifndef _NET_NETISR_H_ +#error <net/netisr.h> must be included before <net/netisr_dispatch.h> +#endif + +/* + * When adding functions to this list, be sure to add headers to provide + * their prototypes in <net/netisr.h> (if necessary). + */ + +#ifdef INET +#include "ether.h" +#if NETHER > 0 + DONETISR(NETISR_ARP,arpintr); +#endif + DONETISR(NETISR_IP,ipintr); +#endif +#ifdef INET6 + DONETISR(NETISR_IPV6,ip6intr); +#endif +#ifdef NETATALK + DONETISR(NETISR_ATALK,atintr); +#endif +#ifdef IMP + DONETISR(NETISR_IMP,impintr); +#endif +#ifdef IPX + DONETISR(NETISR_IPX,ipxintr); +#endif +#ifdef NS + DONETISR(NETISR_NS,nsintr); +#endif +#ifdef ISO + DONETISR(NETISR_ISO,clnlintr); +#endif +#ifdef CCITT + DONETISR(NETISR_CCITT,ccittintr); +#endif +#ifdef NATM + DONETISR(NETISR_NATM,natmintr); +#endif +#include "ppp.h" +#if NPPP > 0 + DONETISR(NETISR_PPP,pppintr); +#endif +#include "bridge.h" +#if NBRIDGE > 0 + DONETISR(NETISR_BRIDGE,bridgeintr); +#endif |