BSD 4_3_Net_2 release
[unix-history] / usr / src / sys / sys / ttydev.h
index b9dbf80..84b6d38 100644 (file)
@@ -1,24 +1,44 @@
-/*
- * Copyright (c) 1982, 1986 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+/*-
+ * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
+ * All rights reserved.
  *
  *
- *     @(#)ttydev.h    7.4 (Berkeley) %G%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)ttydev.h    7.8 (Berkeley) 5/9/91
  */
 
  */
 
-/*
- * Terminal definitions related to underlying hardware.
- */
-#ifndef _TTYDEV_
-#define        _TTYDEV_
+/* COMPATABILITY HEADER FILE */
+
+#ifndef _TTYDEV_H_
+#define        _TTYDEV_H_
 
 
-/*
- * Speeds
- */
 #ifdef USE_OLD_TTY
 #ifdef USE_OLD_TTY
-/*
- * Speeds
- */
 #define B0     0
 #define B50    1
 #define B75    2
 #define B0     0
 #define B50    1
 #define B75    2
 #define B9600  13
 #define EXTA   14
 #define EXTB   15
 #define B9600  13
 #define EXTA   14
 #define EXTB   15
-#else
-#define B0     0
-#define B50    50
-#define B75    75
-#define B110   110
-#define B134   134
-#define B150   150
-#define B200   200
-#define B300   300
-#define B600   600
-#define B1200  1200
-#define        B1800   1800
-#define B2400  2400
-#define B4800  4800
-#define B9600  9600
-#define B19200 19200
-#define B38400 38400
-#define EXTA   14
-#define EXTB   15
-#endif
-
-#ifdef KERNEL
-
-struct speedtab {
-       int sp_speed;
-       int sp_code;
-};
-
-/*
- * Modem control commands.
- */
-#define        DMSET           0
-#define        DMBIS           1
-#define        DMBIC           2
-#define        DMGET           3
-
-/*
- * Exceptional conditions possible on character input.
- */
-#define TTY_FE         0x01000000      /* Framing error or BREAK condition */
-#define TTY_PE         0x02000000      /* Parity error */
-#define TTY_CHARMASK   0x000000ff      /* Character mask */
-#define TTY_QUOTE      0x00000100      /* Character quoted */
-#define TTY_ERRORMASK  0xff000000      /* Error mask */
-
-#endif /* KERNEL */
+#endif /* USE_OLD_TTY */
 
 
-#endif /* _TTYDEV_ */
+#endif /* !_TTYDEV_H_ */