home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / ipl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.8 KB  |  59 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_IPL_H
  11. #define _SYS_IPL_H
  12.  
  13. #ident    "@(#)/usr/include/sys/ipl.h.sl 1.1 4.0 12/08/90 44454 AT&T-USL"
  14.  
  15. /*
  16.  * Interrupt Priority Levels
  17.  *
  18.  * The following defines are used in misc.s to map
  19.  * spl*() functions to interrupt priority levels,
  20.  * and in initializing the intpri[] array in conf.c,
  21.  * which is generated by the config command.
  22.  * The interrupt priority (intpri) levels specified in the
  23.  * master.d/ * /config files are SPL* constants, not ipl's.
  24.  * Thus the spl to ipl mapping can be changed to add new spls and ipls
  25.  * without changing the intpri values in the config files.
  26.  *
  27.  * IPLHI is the priority level at which interrupts are entirely disabled
  28.  * by clearing the IF flag with a cli instruction.
  29.  * Interrupts are selectively disabled at lower priority levels
  30.  * by loading interrupt masks into the PICs.
  31.  */
  32.  
  33. #define IPLHI           8
  34.  
  35. /*      spl             ipl     */
  36.  
  37. #define SPL0            0
  38. #define SPL1            1
  39. #define SPL2            2
  40. #define SPL3            3
  41. #define SPL4            4
  42. #define SPL5            5
  43. #define SPLPP           5
  44. #define SPL6            6
  45. #define SPLNI           6
  46. #define SPLVM        6        /* 4.0 specific */
  47. #define SPLIMP        7        /* 4.0 specific */
  48. #define SPLTTY          7
  49.  
  50. /*
  51.  * SPL7 and SPLHI must be at the same priority level, typically IPLHI.
  52.  * The clock must be the only device at SPL7/SPLHI.
  53.  */
  54.  
  55. #define SPL7            IPLHI
  56. #define SPLHI           IPLHI
  57.  
  58. #endif    /* _SYS_IPL_H */
  59.