home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / 2.9-derivatives / 2.9-pro350 / incl-sys / ivecpos.h < prev    next >
Text File  |  1985-02-26  |  434b  |  19 lines

  1. /* These constants are used by ienable, idisable calls to
  2.  * indicate which device is calling.
  3.  * The macro IVEC generates the numbers for option slots using
  4.  * the device's base address and APOS or BPOS to define which
  5.  * vector.
  6.  */
  7. #define    KBRPOS    1
  8. #define KBXPOS    2
  9. #define    CMPOS    3
  10. #define CMMPOS    4
  11. #define PLRPOS    5
  12. #define    PLXPOS    6
  13. #define    CLPOS    7
  14.  
  15. #define APOS 0
  16. #define BPOS 8
  17.  
  18. #define IVEC(a,b) (((((unsigned)a)>>7)&07)+8+(b))
  19.