blob: b0ccc8cf79eb52366ccc05faa6ec21ab6d2afa5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* $NetBSD: netisr_dispatch.h,v 1.20 2018/09/06 06:42:00 maxv Exp $ */
#ifndef _NET_NETISR_DISPATCH_H_
#define _NET_NETISR_DISPATCH_H_
/*
* netisr_dispatch: This file is included by the
* machine dependent 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
#if NARP > 0
DONETISR(NETISR_ARP,arpintr);
#endif
#endif
#ifdef NETATALK
DONETISR(NETISR_ATALK,atintr);
#endif
#ifdef MPLS
DONETISR(NETISR_MPLS,mplsintr);
#endif
#ifdef CAN
DONETISR(NETISR_CAN,canintr);
#endif
#endif /* !_NET_NETISR_DISPATCH_H_ */
|