Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net This is a fragment of the network soft interrupt rou...



details:   https://anonhg.NetBSD.org/src/rev/91bc08acd08e
branches:  trunk
changeset: 482776:91bc08acd08e
user:      erh <erh%NetBSD.org@localhost>
date:      Mon Feb 21 20:36:14 2000 +0000

description:
This is a fragment of the network soft interrupt routine in MD code.  DONETISR should be defined to do the appropriate thing for each port before including this.  This file is to keep the available 
NETISRs the same across all ports.

diffstat:

 sys/net/netisr_dispatch.h |  51 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diffs (55 lines):

diff -r c66ec2e960f4 -r 91bc08acd08e sys/net/netisr_dispatch.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/net/netisr_dispatch.h Mon Feb 21 20:36:14 2000 +0000
@@ -0,0 +1,51 @@
+/* $NetBSD: netisr_dispatch.h,v 1.1 2000/02/21 20:36:14 erh Exp $ */
+
+/*
+ * 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.
+ * }
+ */
+#include "opt_inet.h"
+#include "opt_atalk.h"
+#include "opt_ccitt.h"
+#include "opt_iso.h"
+#include "opt_ns.h"
+#include "opt_natm.h"
+#include "ppp.h"
+#ifdef INET
+#include "arp.h"
+#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
+#if NPPP > 0
+       DONETISR(NETISR_PPP,pppintr);
+#endif



Home | Main Index | Thread Index | Old Index