Commit | Line | Data |
---|---|---|
a9f97ede BJ |
1 | /* netisr.h 4.1 82/10/09 */ |
2 | ||
3 | /* | |
4 | * The networking code runs off software interrupts. | |
5 | * | |
6 | * You can switch into the network by doing splnet() and return by splx(). | |
7 | * The software interrupt level for the network is higher than the software | |
8 | * level for the clock (so you can enter the network in routines called | |
9 | * at timeout time). | |
10 | */ | |
11 | #define setsoftnet() mtpr(SIRR, 12) | |
12 | ||
13 | /* | |
14 | * Each ``pup-level-1'' input queue has a bit in a ``netisr'' status | |
15 | * word which is used to de-multiplex a single software | |
16 | * interrupt used for scheduling the network code to calls | |
17 | * on the lowest level routine of each protocol. | |
18 | */ | |
19 | #define NETISR_RAW 0 /* same as AF_UNSPEC */ | |
20 | #define NETISR_IP 2 /* same as AF_INET */ | |
21 | #define NETISR_NS 6 /* same as AF_NS */ | |
22 | ||
23 | #define schednetisr(anisr) { netisr |= 1<<(anisr); setsoftnet(); } | |
24 | ||
25 | #ifndef LOCORE | |
26 | #ifdef KERNEL | |
27 | int netisr; /* scheduling bits for network */ | |
28 | #endif | |
29 | #endif |