2001-10-06 19:46:33 +04:00
|
|
|
/* $NetBSD: netisr_dispatch.h,v 1.8 2001/10/06 15:46:33 thorpej Exp $ */
|
2000-02-21 23:36:14 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
* }
|
|
|
|
*/
|
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 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
|
2001-04-14 17:54:38 +04:00
|
|
|
#if NSL > 0 && !defined(__HAVE_GENERIC_SOFT_INTERRUPTS)
|
2001-01-15 19:33:30 +03:00
|
|
|
DONETISR(NETISR_SLIP,slnetisr);
|
2001-01-09 08:04:23 +03:00
|
|
|
#endif
|
2001-04-14 17:54:38 +04:00
|
|
|
#if NSTRIP > 0 && !defined(__HAVE_GENERIC_SOFT_INTERRUPTS)
|
2001-01-15 19:33:30 +03:00
|
|
|
DONETISR(NETISR_STRIP,stripnetisr);
|
2001-01-12 01:32:21 +03:00
|
|
|
#endif
|
2001-04-14 17:54:38 +04:00
|
|
|
#if NPPP > 0 && !defined(__HAVE_GENERIC_SOFT_INTERRUPTS)
|
2001-01-15 19:33:30 +03:00
|
|
|
DONETISR(NETISR_PPP,pppnetisr);
|
2000-02-21 23:36:14 +03:00
|
|
|
#endif
|