rm user.h, reg.h; move ttspeedtab back to tty.c for drivers
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 21 Apr 1991 07:12:09 +0000 (23:12 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 21 Apr 1991 07:12:09 +0000 (23:12 -0800)
SCCS-vsn: sys/kern/tty_compat.c 7.9

usr/src/sys/kern/tty_compat.c

index 96009f3..34d61d9 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)tty_compat.c        7.8 (Berkeley) %G%
+ *     @(#)tty_compat.c        7.9 (Berkeley) %G%
  */
 
 /* 
  */
 
 /* 
@@ -13,7 +13,6 @@
 
 #include "param.h"
 #include "systm.h"
 
 #include "param.h"
 #include "systm.h"
-#include "user.h"
 #include "ioctl.h"
 #include "tty.h"
 #include "termios.h"
 #include "ioctl.h"
 #include "tty.h"
 #include "termios.h"
 #include "file.h"
 #include "conf.h"
 #include "dkstat.h"
 #include "file.h"
 #include "conf.h"
 #include "dkstat.h"
-#include "uio.h"
 #include "kernel.h"
 #include "syslog.h"
 
 #include "kernel.h"
 #include "syslog.h"
 
-#include "machine/reg.h"
-
 int ttydebug = 0;
 
 static struct speedtab compatspeeds[] = {
 int ttydebug = 0;
 
 static struct speedtab compatspeeds[] = {
@@ -53,16 +49,6 @@ static int compatspcodes[16] = {
        1800, 2400, 4800, 9600, 19200, 38400,
 };
 
        1800, 2400, 4800, 9600, 19200, 38400,
 };
 
-ttspeedtab(speed, table)
-       register struct speedtab *table;
-{
-
-       for ( ; table->sp_speed != -1; table++)
-               if (table->sp_speed == speed)
-                       return (table->sp_code);
-       return (-1);
-}
-
 /*ARGSUSED*/
 ttcompat(tp, com, data, flag)
        register struct tty *tp;
 /*ARGSUSED*/
 ttcompat(tp, com, data, flag)
        register struct tty *tp;