2011-07-01 00:09:15 +04:00
|
|
|
/* $NetBSD: netisr_dispatch.h,v 1.16 2011/06/30 20:09:41 wiz Exp $ */
|
2005-12-11 02:21:38 +03:00
|
|
|
|
|
|
|
#ifndef _NET_NETISR_DISPATCH_H_
|
|
|
|
#define _NET_NETISR_DISPATCH_H_
|
2000-02-21 23:36:14 +03:00
|
|
|
|
|
|
|
/*
|
2005-02-27 01:45:09 +03:00
|
|
|
* netisr_dispatch: This file is included by the
|
2011-07-01 00:09:15 +04:00
|
|
|
* machine dependent softnet function. The
|
2000-02-21 23:36:14 +03:00
|
|
|
* DONETISR macro should be set before including
|
|
|
|
* this file. i.e.:
|
|
|
|
*
|
|
|
|
* softintr() {
|
|
|
|
* ...do setup stuff...
|
2002-11-02 15:00:03 +03:00
|
|
|
* #define DONETISR(bit, fn) do { ... } while (0)
|
2000-02-21 23:36:14 +03:00
|
|
|
* #include <net/netisr_dispatch.h>
|
|
|
|
* #undef DONETISR
|
|
|
|
* ...do cleanup stuff.
|
|
|
|
* }
|
|
|
|
*/
|
2000-07-02 08:40:33 +04:00
|
|
|
|
|
|
|
#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).
|
|
|
|
*/
|
|
|
|
|
2000-02-21 23:36:14 +03:00
|
|
|
#ifdef INET
|
|
|
|
#if NARP > 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 ISO
|
|
|
|
DONETISR(NETISR_ISO,clnlintr);
|
|
|
|
#endif
|
2010-06-26 18:24:27 +04:00
|
|
|
#ifdef MPLS
|
|
|
|
DONETISR(NETISR_MPLS,mplsintr);
|
|
|
|
#endif
|
2000-02-21 23:36:14 +03:00
|
|
|
#ifdef NATM
|
|
|
|
DONETISR(NETISR_NATM,natmintr);
|
|
|
|
#endif
|
2005-12-11 02:21:38 +03:00
|
|
|
|
|
|
|
#endif /* !_NET_NETISR_DISPATCH_H_ */
|