Annotation of sys/net/netisr_dispatch.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: netisr_dispatch.h,v 1.13 2007/06/06 10:04:36 henning Exp $ */
! 2: /* $NetBSD: netisr_dispatch.h,v 1.2 2000/07/02 04:40:47 cgd Exp $ */
! 3:
! 4: /*
! 5: * netisr_dispatch: This file is included by the
! 6: * machine dependant softnet function. The
! 7: * DONETISR macro should be set before including
! 8: * this file. i.e.:
! 9: *
! 10: * softintr() {
! 11: * ...do setup stuff...
! 12: * #define DONETISR(bit, fn) do { ... } while (0)
! 13: * #include <net/netisr_dispatch.h>
! 14: * #undef DONETISR
! 15: * ...do cleanup stuff.
! 16: * }
! 17: */
! 18:
! 19: #ifndef _NET_NETISR_H_
! 20: #error <net/netisr.h> must be included before <net/netisr_dispatch.h>
! 21: #endif
! 22:
! 23: #ifndef _NET_NETISR_DISPATCH_H_
! 24: #define _NET_NETISR_DISPATCH_H_
! 25: #include "bluetooth.h"
! 26: #include "ether.h"
! 27: #include "ppp.h"
! 28: #include "bridge.h"
! 29: #include "pppoe.h"
! 30: #endif
! 31:
! 32: /*
! 33: * When adding functions to this list, be sure to add headers to provide
! 34: * their prototypes in <net/netisr.h> (if necessary).
! 35: */
! 36:
! 37: DONETISR(NETISR_RND,netrndintr);
! 38:
! 39: #ifdef INET
! 40: #if NETHER > 0
! 41: DONETISR(NETISR_ARP,arpintr);
! 42: #endif
! 43: DONETISR(NETISR_IP,ipintr);
! 44: #endif
! 45: #ifdef INET6
! 46: DONETISR(NETISR_IPV6,ip6intr);
! 47: #endif
! 48: #ifdef NETATALK
! 49: DONETISR(NETISR_ATALK,atintr);
! 50: #endif
! 51: #if NATM > 0
! 52: DONETISR(NETISR_NATM,natmintr);
! 53: #endif
! 54: #if NPPP > 0
! 55: DONETISR(NETISR_PPP,pppintr);
! 56: #endif
! 57: #if NBRIDGE > 0
! 58: DONETISR(NETISR_BRIDGE,bridgeintr);
! 59: #endif
! 60: #if NPPPOE > 0
! 61: DONETISR(NETISR_PPPOE,pppoeintr);
! 62: #endif
! 63: #if NBLUETOOTH > 0
! 64: DONETISR(NETISR_BT,btintr);
! 65: #endif
CVSweb