1: /*
   2:  * Copyright (c) 1980, 1986 Regents of the University of California.
   3:  * All rights reserved.
   4:  *
   5:  * Redistribution and use in source and binary forms are permitted
   6:  * provided that this notice is preserved and that due credit is given
   7:  * to the University of California at Berkeley. The name of the University
   8:  * may not be used to endorse or promote products derived from this
   9:  * software without specific prior written permission. This software
  10:  * is provided ``as is'' without express or implied warranty.
  11:  *
  12:  *	@(#)netisr.h	7.3 (Berkeley) 12/30/87
  13:  */
  14: 
  15: /*
  16:  * The networking code runs off software interrupts.
  17:  *
  18:  * You can switch into the network by doing splnet() and return by splx().
  19:  * The software interrupt level for the network is higher than the software
  20:  * level for the clock (so you can enter the network in routines called
  21:  * at timeout time).
  22:  */
  23: #if defined(vax) || defined(tahoe)
  24: #define setsoftnet()    mtpr(SIRR, 12)
  25: #endif
  26: #ifdef pdp11
  27: #define setsoftnet()    { extern int knetisr; mtkd(&knetisr, 1); }
  28: #endif
  29: 
  30: /*
  31:  * Each ``pup-level-1'' input queue has a bit in a ``netisr'' status
  32:  * word which is used to de-multiplex a single software
  33:  * interrupt used for scheduling the network code to calls
  34:  * on the lowest level routine of each protocol.
  35:  */
  36: #define NETISR_RAW  0       /* same as AF_UNSPEC */
  37: #define NETISR_IP   2       /* same as AF_INET */
  38: #define NETISR_IMP  3       /* same as AF_IMPLINK */
  39: #define NETISR_NS   6       /* same as AF_NS */
  40: #define NETISR_CLOCK    15      /* protocol timeout */
  41: 
  42: #define schednetisr(anisr)  { netisr |= 1<<(anisr); setsoftnet(); }
  43: 
  44: #ifdef SUPERVISOR
  45: int netisr;             /* scheduling bits for network */
  46: #endif

Defined variables

netisr defined in line 45; used 1 times
  • in line 42

Defined macros

NETISR_CLOCK defined in line 40; used 1 times
NETISR_IMP defined in line 38; used 2 times
NETISR_RAW defined in line 36; used 2 times
setsoftnet defined in line 27; used 1 times
  • in line 42

Usage of this include

Last modified: 1988-04-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3354
Valid CSS Valid XHTML 1.0 Strict