netisr.h (6cb2a0952f6f3ea112c09078ea2f2db3ca3363fc) netisr.h (8088699f795d34421f429d5539e8e68cbaf3115c)
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

--- 54 unchanged lines hidden (view full) ---

63#define NETISR_NATM 29 /* same as AF_NATM */
64#define NETISR_ATM 30 /* same as AF_ATM */
65#define NETISR_NETGRAPH 31 /* same as AF_NETGRAPH */
66
67
68#ifndef LOCORE
69#ifdef _KERNEL
70
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

--- 54 unchanged lines hidden (view full) ---

63#define NETISR_NATM 29 /* same as AF_NATM */
64#define NETISR_ATM 30 /* same as AF_ATM */
65#define NETISR_NETGRAPH 31 /* same as AF_NETGRAPH */
66
67
68#ifndef LOCORE
69#ifdef _KERNEL
70
71void legacy_setsoftnet __P((void));
72
71extern volatile unsigned int netisr; /* scheduling bits for network */
73extern volatile unsigned int netisr; /* scheduling bits for network */
72#define schednetisr(anisr) { netisr |= 1 << (anisr); setsoftnet(); }
74#define schednetisr(anisr) { netisr |= 1 << (anisr); legacy_setsoftnet(); }
73
74typedef void netisr_t __P((void));
75
76int register_netisr __P((int, netisr_t *));
77int unregister_netisr __P((int));
78
79#endif
80#endif
81
82#endif
75
76typedef void netisr_t __P((void));
77
78int register_netisr __P((int, netisr_t *));
79int unregister_netisr __P((int));
80
81#endif
82#endif
83
84#endif