home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / termiox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  4.4 KB  |  103 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_TERMIOX_H
  11. #define    _SYS_TERMIOX_H
  12.  
  13. #ident    "@(#)/usr/include/sys/termiox.h.sl 1.1 4.0 12/08/90 16673 AT&T-USL"
  14.  
  15. /* This structure provides an extended terminal interface. */
  16. /* Features of this interface are optional and may not be */
  17. /* implemented on all machines. */
  18.  
  19.  
  20. #define NFF    5
  21.  
  22. /* hardware flow control modes */
  23.  
  24. #define RTSXOFF  0000001 /* Enable RTS hardware flow control on input */
  25. #define CTSXON   0000002 /* Enable CTS hardware flow control on output */
  26. #define DTRXOFF  0000004 /* Enable DTR hardware flow control on input */
  27. #define CDXON    0000010 /* Enable CD hardware flow control on output */
  28. #define ISXOFF   0000020 /* Enable isochronous hardware flow control on input */
  29.           
  30. /* clock modes */
  31.  
  32. #define XMTCLK    0000007 /* Transmit Clock Source: */
  33. #define XCIBRG    0000000 /* Get transmit clock from */
  34.                           /* internal baud rate generator */
  35. #define XCTSET    0000001 /* Get transmit clock from */
  36.                           /* transmitter signal element */
  37.                           /* timing (DCE source) lead, */
  38.                           /* CCITT V.24 circuit 114, */
  39.                           /* EIA-232-D pin 15 */
  40. #define XCRSET    0000002 /* Get transmit clock from */
  41.                           /* receiver signal element */
  42.                           /* timing (DCE source) lead, */
  43.                           /* CCITT V.24 circuit 115, */
  44.                           /* EIA-232-D pin 17 */
  45.  
  46. #define RCVCLK    0000070 /* Receive Clock Source: */
  47. #define RCIBRG    0000000 /* get receive clock from internal */
  48.                           /* baud rate generator */
  49. #define RCTSET    0000010 /* Get receive clock from */
  50.                           /* transmitter signal element */
  51.                           /* timing (DCE source) lead, */
  52.                           /* CCITT V.24 circuit 114, */
  53.                           /* EIA-232-D pin 15 */
  54. #define RCRSET    0000020 /* Get receive clock from */
  55.                           /* receiver signal element */
  56.                           /* timing (DCE source) lead, */
  57.                           /* CCITT V.24 circuit 115, */
  58.                           /* EIA-232-D pin 17 */
  59.  
  60. #define TSETCLK   0000700 /* Transmitter Signal Element */
  61.                           /* timing (DTE source) lead, */
  62.                           /* CCITT V.24 circuit 113, */
  63.                           /* EIA-232-D pin 24, clock source: */
  64. #define TSETCOFF  0000000 /* TSET clock not provided */
  65. #define TSETCRBRG 0000100 /* Output receive baud rate generator */
  66.                           /* on circuit 113 */
  67. #define TSETCTBRG 0000200 /* Output transmit baud rate generator */
  68.                           /* on circuit 113 */
  69. #define TSETCTSET 0000300 /* Output transmitter signal element */
  70.                           /* timing (DCE source) on circuit 113 */
  71. #define TSETCRSET 0000400 /* Output receiver signal element */
  72.                           /* timing (DCE source) on circuit 113 */
  73.  
  74. #define RSETCLK   0007000 /* Receiver Signal Element */
  75.                           /* timing (DTE source) lead, */
  76.                           /* CCITT V.24 circuit 128, */
  77.                           /* no EIA-232-D pin, clock source: */
  78. #define RSETCOFF  0000000 /* RSET clock not provided */
  79. #define RSETCRBRG 0001000 /* Output receive baud rate generator */
  80.                           /* on circuit 128 */
  81. #define RSETCTBRG 0002000 /* Output transmit baud rate generator */
  82.                           /* on circuit 128 */
  83. #define RSETCTSET 0003000 /* Output transmitter signal element */
  84.                           /* timing (DCE source) on circuit 128 */
  85. #define RSETCRSET 0004000 /* Output receiver signal element */
  86.                           /* timing (DCE source) on circuit 128 */
  87.  
  88.  
  89. struct termiox {
  90.     unsigned short x_hflag;        /* hardware flow control modes */
  91.     unsigned short x_cflag;        /* clock modes */
  92.     unsigned short x_rflag[NFF];    /* reserved modes*/
  93.     unsigned short x_sflag;        /* spare modes */
  94. };
  95.  
  96. #define XIOC    ('X'<<8)
  97. #define TCGETX  (XIOC|1)
  98. #define TCSETX  (XIOC|2)
  99. #define TCSETXW (XIOC|3)
  100. #define TCSETXF (XIOC|4)
  101.  
  102. #endif    /* _SYS_TERMIOX_H */
  103.