home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / net / h / netisr < prev    next >
Encoding:
Text File  |  1995-01-11  |  861 b   |  38 lines

  1. /* -*-C-*-
  2.  *
  3.  * $Header: /ax/networking:include/net/netisr.h:networking  1.1  $
  4.  * $Source: /ax/networking:include/net/netisr.h: $
  5.  *
  6.  * Copyright (c) 1995 Acorn Computers Ltd., Cambridge, England
  7.  *
  8.  * $Log:    netisr.h,v $
  9.  * Revision 1.1  95/01/11  10:14:48  kwelton
  10.  * Initial revision
  11.  * 
  12.  */
  13.  
  14. /*
  15.  * The networking code runs off software callbacks.
  16.  *
  17.  */
  18. #ifndef __riscos
  19. #if defined(vax) || defined(tahoe)
  20. #define setsoftnet()    mtpr(SIRR, 12)
  21. #endif
  22. #endif
  23.  
  24. #define NETISR_RAW      0               /* same as AF_UNSPEC */
  25. #define NETISR_IP       2               /* same as AF_INET */
  26. #define NETISR_CALLO    3
  27. #define NETISR_ECO      6
  28.  
  29. #define schednetisr(anisr)      { netisr |= 1<<(anisr); setsoftnet(); }
  30.  
  31. #ifndef LOCORE
  32. #ifdef KERNEL
  33. extern int     netisr;                         /* scheduling bits for network */
  34. #endif
  35. #endif
  36.  
  37. /* EOF netisr.h */
  38.