2 * Copyright (C) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
3 * Helsinki University of Technology, Finland.
5 * Copyright (C) 2005 Neil Cafferkey
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25 #include <sys/param.h>
26 #include <kern/amiga_includes.h> /* This is needed by sys/synch.h */
27 #include <sys/synch.h>
29 #include <net/netisr.h>
32 extern struct MsgPort
*SanaPort
;
37 * scnednetisr(): schedule net "interrupt"
38 * This routine signals TCP/IP task to run net_poll via sana_poll
40 void schednetisr(int isr
)
43 Signal(SanaPort
->mp_SigTask
, 1<<SanaPort
->mp_SigBit
);
46 void schednetisr_nosignal(int isr
)
52 * net_poll(): run scheduled network level protocols
53 * this routine is called from sana_poll
58 extern void ipintr(void);
59 extern void impintr(void);
60 extern void isointr(void);
61 extern void ccittintr(void);
62 extern void nsintr(void);
71 if (n
& (1<<NETISR_IP
)) {
76 if (n
& (1<<NETISR_IMP
)) {
81 if (n
& (1<<NETISR_ISO
)) {
86 if (n
& (1<<NETISR_CCITT
)) {
91 if (n
& (1<<NETISR_NS
)) {
96 /* raw input do not go through the isr */
97 if (n
& (1<<NETISR_RAW
)) {