reorganization to move ufsmount ops to be vnode ops;
[unix-history] / usr / src / sys / kern / tty_conf.c
index 4137b8a..fe0ddd2 100644 (file)
@@ -1,9 +1,10 @@
-/*
- * Copyright (c) 1982 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, 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  *
  *
- *     @(#)tty_conf.c  6.9 (Berkeley) %G%
+ *     @(#)tty_conf.c  7.6 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
 #include "tty.h"
 #include "conf.h"
 
 #include "tty.h"
 #include "conf.h"
 
-int    nodev();
-int    nulldev();
+int    enodev();
+int    nullop();
 
 int    ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart();
 int    ttymodem(), nullmodem(), ttyinput();
 
 
 int    ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart();
 int    ttymodem(), nullmodem(), ttyinput();
 
-#include "bk.h"
-#if NBK > 0
-int    bkopen(),bkclose(),bkread(),bkinput(),bkioctl();
-#endif
-
 #include "tb.h"
 #if NTB > 0
 int    tbopen(),tbclose(),tbread(),tbinput(),tbioctl();
 #endif
 #include "tb.h"
 #if NTB > 0
 int    tbopen(),tbclose(),tbread(),tbinput(),tbioctl();
 #endif
+
 #include "sl.h"
 #if NSL > 0
 int    slopen(),slclose(),slinput(),sltioctl(),slstart();
 #include "sl.h"
 #if NSL > 0
 int    slopen(),slclose(),slinput(),sltioctl(),slstart();
@@ -36,30 +33,27 @@ int slopen(),slclose(),slinput(),sltioctl(),slstart();
 
 struct linesw linesw[] =
 {
 
 struct linesw linesw[] =
 {
-       ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 0- OTTYDISC */
-       ttyinput, nodev, nulldev, ttstart, ttymodem,
-#if NBK > 0
-       bkopen, bkclose, bkread, ttwrite, bkioctl,      /* 1- NETLDISC */
-       bkinput, nodev, nulldev, ttstart, nullmodem,
-#else
-       nodev, nodev, nodev, nodev, nodev,
-       nodev, nodev, nodev, nodev, nodev,
-#endif
-       ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 2- NTTYDISC */
-       ttyinput, nodev, nulldev, ttstart, ttymodem,
+       ttyopen, ttylclose, ttread, ttwrite, nullioctl,
+       ttyinput, enodev, nullop, ttstart, ttymodem,    /* 0- termios */
+
+       enodev, enodev, enodev, enodev, enodev,         /* 1- defunct */
+       enodev, enodev, enodev, enodev, enodev,
+
+       enodev, enodev, enodev, enodev, enodev,         /* 2- defunct */
+       enodev, enodev, enodev, enodev, enodev,
 #if NTB > 0
 #if NTB > 0
-       tbopen, tbclose, tbread, nodev, tbioctl,
-       tbinput, nodev, nulldev, ttstart, nullmodem,    /* 3- TABLDISC */
+       tbopen, tbclose, tbread, enodev, tbioctl,
+       tbinput, enodev, nullop, ttstart, nullmodem,    /* 3- TABLDISC */
 #else
 #else
-       nodev, nodev, nodev, nodev, nodev,
-       nodev, nodev, nodev, nodev, nodev,
+       enodev, enodev, enodev, enodev, enodev,
+       enodev, enodev, enodev, enodev, enodev,
 #endif
 #if NSL > 0
 #endif
 #if NSL > 0
-       slopen, slclose, nodev, nodev, sltioctl,
-       slinput, nodev, nulldev, slstart, nulldev,      /* 4- SLIPDISC */
+       slopen, slclose, enodev, enodev, sltioctl,
+       slinput, enodev, nullop, slstart, nullmodem,    /* 4- SLIPDISC */
 #else
 #else
-       nodev, nodev, nodev, nodev, nodev,
-       nodev, nodev, nodev, nodev, nodev,
+       enodev, enodev, enodev, enodev, enodev,
+       enodev, enodev, enodev, enodev, enodev,
 #endif
 };
 
 #endif
 };