1/* $NetBSD: netisr_dispatch.h,v 1.18 2014/06/05 23:48:16 rmind Exp $ */
2
3#ifndef _NET_NETISR_DISPATCH_H_
4#define _NET_NETISR_DISPATCH_H_
5
6/*
7 * netisr_dispatch: This file is included by the
8 * machine dependent softnet function. The
9 * DONETISR macro should be set before including
10 * this file. i.e.:
11 *
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 * }
19 */
20
21#ifndef _NET_NETISR_H_
22#error <net/netisr.h> must be included before <net/netisr_dispatch.h>
23#endif
24
25/*
26 * When adding functions to this list, be sure to add headers to provide
27 * their prototypes in <net/netisr.h> (if necessary).
28 */
29
30#ifdef INET
31#if NARP > 0
32 DONETISR(NETISR_ARP,arpintr);
33#endif
34#endif
35#ifdef NETATALK
36 DONETISR(NETISR_ATALK,atintr);
37#endif
38#ifdef MPLS
39 DONETISR(NETISR_MPLS,mplsintr);
40#endif
41#ifdef NATM
42 DONETISR(NETISR_NATM,natmintr);
43#endif
44
45#endif /* !_NET_NETISR_DISPATCH_H_ */
46