netisr.h (87902) | netisr.h (92725) |
---|---|
1/* 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)netisr.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)netisr.h 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/net/netisr.h 87902 2001-12-14 17:56:12Z luigi $ | 34 * $FreeBSD: head/sys/net/netisr.h 92725 2002-03-19 21:54:18Z alfred $ |
35 */ 36 37#ifndef _NET_NETISR_H_ 38#define _NET_NETISR_H_ 39 40/* 41 * The networking code runs off software interrupts. 42 * --- 21 unchanged lines hidden (view full) --- 64#define NETISR_NATM 29 /* same as AF_NATM */ 65#define NETISR_ATM 30 /* same as AF_ATM */ 66#define NETISR_NETGRAPH 31 /* same as AF_NETGRAPH */ 67 68 69#ifndef LOCORE 70#ifdef _KERNEL 71 | 35 */ 36 37#ifndef _NET_NETISR_H_ 38#define _NET_NETISR_H_ 39 40/* 41 * The networking code runs off software interrupts. 42 * --- 21 unchanged lines hidden (view full) --- 64#define NETISR_NATM 29 /* same as AF_NATM */ 65#define NETISR_ATM 30 /* same as AF_ATM */ 66#define NETISR_NETGRAPH 31 /* same as AF_NETGRAPH */ 67 68 69#ifndef LOCORE 70#ifdef _KERNEL 71 |
72void legacy_setsoftnet __P((void)); | 72void legacy_setsoftnet(void); |
73 74extern volatile unsigned int netisr; /* scheduling bits for network */ | 73 74extern volatile unsigned int netisr; /* scheduling bits for network */ |
75extern void (*netisrs[32]) __P((void)); | 75extern void (*netisrs[32])(void); |
76#define schednetisr(anisr) do { \ 77 atomic_set_rel_int(&netisr, 1 << (anisr)); \ 78 legacy_setsoftnet(); \ 79} while (0) 80 | 76#define schednetisr(anisr) do { \ 77 atomic_set_rel_int(&netisr, 1 << (anisr)); \ 78 legacy_setsoftnet(); \ 79} while (0) 80 |
81typedef void netisr_t __P((void)); | 81typedef void netisr_t(void); |
82 | 82 |
83int register_netisr __P((int, netisr_t *)); 84int unregister_netisr __P((int)); | 83int register_netisr(int, netisr_t *); 84int unregister_netisr(int); |
85 86#endif 87#endif 88 89#endif | 85 86#endif 87#endif 88 89#endif |