No empty .Rs/.Re
[netbsd-mini2440.git] / sys / net / netisr_dispatch.h
blob430540917a13c6a767f0d1329e7021f94fb27ee9
1 /* $NetBSD: netisr_dispatch.h,v 1.13 2006/09/07 02:40:33 dogcow Exp $ */
3 #ifndef _NET_NETISR_DISPATCH_H_
4 #define _NET_NETISR_DISPATCH_H_
6 /*
7 * netisr_dispatch: This file is included by the
8 * machine dependant softnet function. The
9 * DONETISR macro should be set before including
10 * this file. i.e.:
12 * softintr() {
13 * ...do setup stuff...
14 * #define DONETISR(bit, fn) do { ... } while (0)
15 * #include <net/netisr_dispatch.h>
16 * #undef DONETISR
17 * ...do cleanup stuff.
18 * }
21 #ifndef _NET_NETISR_H_
22 #error <net/netisr.h> must be included before <net/netisr_dispatch.h>
23 #endif
26 * When adding functions to this list, be sure to add headers to provide
27 * their prototypes in <net/netisr.h> (if necessary).
30 #ifdef INET
31 #if NARP > 0
32 DONETISR(NETISR_ARP,arpintr);
33 #endif
34 DONETISR(NETISR_IP,ipintr);
35 #endif
36 #ifdef INET6
37 DONETISR(NETISR_IPV6,ip6intr);
38 #endif
39 #ifdef NETATALK
40 DONETISR(NETISR_ATALK,atintr);
41 #endif
42 #ifdef ISO
43 DONETISR(NETISR_ISO,clnlintr);
44 #endif
45 #ifdef NATM
46 DONETISR(NETISR_NATM,natmintr);
47 #endif
49 #endif /* !_NET_NETISR_DISPATCH_H_ */