|
|
1.1 ! root 1: /* netisr.h 6.1 83/07/29 */ ! 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(12, SIRR) ! 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: #define NETISR_ND 7 /* network disk protocol */ ! 23: ! 24: #define schednetisr(anisr) { netisr |= 1<<(anisr); setsoftnet(); } ! 25: ! 26: #ifndef LOCORE ! 27: #ifdef KERNEL ! 28: int netisr; /* scheduling bits for network */ ! 29: #endif ! 30: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.