Commit | Line | Data |
---|---|---|
da7c5cc6 | 1 | /* |
0880b18e | 2 | * Copyright (c) 1982, 1986 Regents of the University of California. |
da7c5cc6 KM |
3 | * All rights reserved. The Berkeley software License Agreement |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
5982a210 | 6 | * @(#)tty_conf.c 7.4 (Berkeley) %G% |
da7c5cc6 | 7 | */ |
de2d206e | 8 | |
94368568 JB |
9 | #include "param.h" |
10 | #include "systm.h" | |
11 | #include "buf.h" | |
3358b36b | 12 | #include "ioctl.h" |
94368568 JB |
13 | #include "tty.h" |
14 | #include "conf.h" | |
de2d206e BJ |
15 | |
16 | int nodev(); | |
17 | int nulldev(); | |
18 | ||
605d7712 MK |
19 | int ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart(); |
20 | int ttymodem(), nullmodem(), ttyinput(); | |
de2d206e | 21 | |
e39f9ea6 MT |
22 | int ottyopen(), ottylclose(), ottread(), ottwrite(); |
23 | int ottyinput(), ottstart(), ottymodem(); | |
24 | ||
de2d206e BJ |
25 | #include "tb.h" |
26 | #if NTB > 0 | |
27 | int tbopen(),tbclose(),tbread(),tbinput(),tbioctl(); | |
28 | #endif | |
5d6d0450 MK |
29 | #include "sl.h" |
30 | #if NSL > 0 | |
31 | int slopen(),slclose(),slinput(),sltioctl(),slstart(); | |
32 | #endif | |
33 | ||
de2d206e BJ |
34 | |
35 | struct linesw linesw[] = | |
36 | { | |
e39f9ea6 MT |
37 | ttyopen, ttylclose, ttread, ttwrite, nullioctl, |
38 | ttyinput, nodev, nulldev, ttstart, ttymodem, /* 0- termios */ | |
5982a210 MT |
39 | |
40 | nodev, nodev, nodev, nodev, nodev, /* 1- defunct */ | |
de2d206e | 41 | nodev, nodev, nodev, nodev, nodev, |
5982a210 | 42 | |
e39f9ea6 MT |
43 | nodev, nodev, nodev, nodev, nodev, /* 2- defunct */ |
44 | nodev, nodev, nodev, nodev, nodev, | |
de2d206e BJ |
45 | #if NTB > 0 |
46 | tbopen, tbclose, tbread, nodev, tbioctl, | |
5d6d0450 MK |
47 | tbinput, nodev, nulldev, ttstart, nullmodem, /* 3- TABLDISC */ |
48 | #else | |
49 | nodev, nodev, nodev, nodev, nodev, | |
50 | nodev, nodev, nodev, nodev, nodev, | |
51 | #endif | |
52 | #if NSL > 0 | |
53 | slopen, slclose, nodev, nodev, sltioctl, | |
87a0b374 | 54 | slinput, nodev, nulldev, slstart, nullmodem, /* 4- SLIPDISC */ |
de2d206e BJ |
55 | #else |
56 | nodev, nodev, nodev, nodev, nodev, | |
57 | nodev, nodev, nodev, nodev, nodev, | |
58 | #endif | |
de2d206e BJ |
59 | }; |
60 | ||
dc717036 | 61 | int nldisp = sizeof (linesw) / sizeof (linesw[0]); |
88a7a62a SL |
62 | |
63 | /* | |
64 | * Do nothing specific version of line | |
65 | * discipline specific ioctl command. | |
66 | */ | |
67 | /*ARGSUSED*/ | |
68 | nullioctl(tp, cmd, data, flags) | |
69 | struct tty *tp; | |
70 | char *data; | |
71 | int flags; | |
72 | { | |
73 | ||
74 | #ifdef lint | |
75 | tp = tp; data = data; flags = flags; | |
76 | #endif | |
77 | return (-1); | |
78 | } |