home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / lp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.1 KB  |  48 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. #ident    "@(#)/usr/include/sys/lp.h.sl 1.1 4.0 12/08/90 2375 AT&T-USL"
  11.  
  12. #define SPL()        splstr()/* protection from interrupts */
  13.  
  14.  
  15. #define    UNBUSY        0x80
  16. #define    READY        0x40
  17. #define    NOPAPER        0x20
  18. #define    ONLINE        0x10
  19. #define    ERROR        0x08
  20.  
  21. #define    INTR_ON        0x10
  22. #define    SEL        0x08
  23. #define    RESET        0x04
  24. #define    AUTOLF        0x02
  25. #define    STROBE        0x01
  26.  
  27. /* States: */
  28. #define OPEN    0x01
  29. #define LPPRES    0x10    /* set if parallel adapter present */
  30.  
  31.  
  32. /*
  33.  * Structures for the LP 
  34.  * ____________________________
  35.  *
  36.  *
  37.  */
  38.  
  39. struct lpcfg{
  40.     int        flag;        /* lp is configured in */
  41.     unsigned    data;        /* data latch address */
  42.     unsigned    status;        /* printer status address */
  43.     unsigned    control;    /* printer controls address */
  44.     unsigned    vect;        /* printer controls address */
  45. };
  46.  
  47.  
  48.