home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / sys / ttydev.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  2KB  |  89 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log:    ttydev.h,v $
  10.  *   7-Jan-93  Mac Gillon (mgillon) at NeXT
  11.  *    Integrated POSIX support
  12.  *
  13.  * Revision 2.3  89/03/09  22:09:15  rpd
  14.  *     More cleanup.
  15.  * 
  16.  * Revision 2.2  89/02/25  17:57:34  gm0w
  17.  *     Changes for cleanup.
  18.  * 
  19.  */
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)ttydev.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. #ifndef    _SYS_TTYDEV_H_
  29. #define _SYS_TTYDEV_H_
  30.  
  31. /*
  32.  * Terminal definitions related to underlying hardware, so to speak.
  33.  */
  34.  
  35. /*
  36.  * Speeds
  37.  */
  38. #define B0    0
  39. #define B50    1
  40. #define B75    2
  41. #define B110    3
  42. #define B134    4
  43. #define B150    5
  44. #define B200    6
  45. #define B300    7
  46. #define B600    8
  47. #define B1200    9
  48. #define B1800    10
  49. #define B2400    11
  50. #define B4800    12
  51. #define B9600    13
  52. #define B19200    14
  53. #define B38400    15
  54.  
  55. #if defined(_NEXT_SOURCE)
  56. /*
  57.  * EXTA is 19200 baud
  58.  * EXTB is 38400 baud
  59.  *
  60.  * NOTE: Not all hardware can effectively
  61.  * support these higher baud rates. Beware.
  62.  */
  63. #define EXTA    14
  64. #define EXTB    15
  65. #define    B14400    16
  66. #define B28800    17
  67. #define B43200    18
  68. #define B57600    19
  69. #endif /* _NEXT_SOURCE */
  70.  
  71. #ifdef    KERNEL
  72. /*
  73.  * Hardware bits.
  74.  * SHOULD NOT BE HERE.
  75.  */
  76. #define DONE    0200
  77. #define IENABLE    0100
  78.  
  79. /*
  80.  * Modem control commands.
  81.  */
  82. #define DMSET        0
  83. #define DMBIS        1
  84. #define DMBIC        2
  85. #define DMGET        3
  86.  
  87. #endif    KERNEL
  88. #endif    _SYS_TTYDEV_H_
  89.