92 lines
2.0 KiB
C
92 lines
2.0 KiB
C
/* @(#)tty_conf.c 1.1 92/07/30 SMI; from UCB 4.3 83/05/27 */
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/systm.h>
|
|
#include <sys/buf.h>
|
|
#include <sys/tty.h>
|
|
#include <sys/conf.h>
|
|
|
|
int nodev();
|
|
int nulldev();
|
|
|
|
int ttyopen(),ttyclose(),ttread(),ttwrite(),nullioctl(),ttstart();
|
|
int 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 "ms.h"
|
|
#if NMS > 0
|
|
int msopen(), msclose(), msread(), msioctl(), msinput();
|
|
#endif
|
|
|
|
#include "kb.h"
|
|
#if NKB > 0
|
|
int kbdopen(), kbdclose(), kbdread(), kbdioctl(), kbdinput();
|
|
#endif
|
|
|
|
struct linesw linesw[] =
|
|
{
|
|
ttyopen, nodev, ttread, ttwrite, nullioctl,
|
|
ttyinput, nodev, nulldev, ttstart, nulldev,
|
|
#if NBK > 0
|
|
bkopen, bkclose, bkread, ttwrite, bkioctl,
|
|
bkinput, nodev, nulldev, ttstart, nulldev,
|
|
#else
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
#endif
|
|
ttyopen, ttyclose, ttread, ttwrite, nullioctl,
|
|
ttyinput, nodev, nulldev, ttstart, nulldev,
|
|
#if NTB > 0
|
|
tbopen, tbclose, tbread, nodev, tbioctl,
|
|
tbinput, nodev, nulldev, ttstart, nulldev, /* 3 */
|
|
#else
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
#endif
|
|
#if NTB > 0
|
|
tbopen, tbclose, tbread, nodev, tbioctl,
|
|
tbinput, nodev, nulldev, ttstart, nulldev, /* 4 */
|
|
#else
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
#endif
|
|
#if NMS > 0
|
|
msopen, msclose, msread, nodev, msioctl,
|
|
msinput, nodev, nulldev, nulldev, nulldev, /* 5 */
|
|
#else
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
#endif
|
|
#if NKB > 0
|
|
kbdopen, kbdclose, kbdread, ttwrite, kbdioctl,
|
|
kbdinput, nodev, nulldev, ttstart, nulldev, /* 6 */
|
|
#else
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
nodev, nodev, nodev, nodev, nodev,
|
|
#endif
|
|
};
|
|
|
|
int nldisp = sizeof (linesw) / sizeof (linesw[0]);
|
|
|
|
/*
|
|
* Do nothing specific version of line
|
|
* discipline specific ioctl command.
|
|
*/
|
|
/*ARGSUSED*/
|
|
nullioctl(tp, cmd, data, flags)
|
|
struct tty *tp;
|
|
char *data;
|
|
int flags;
|
|
{
|
|
return (-1);
|
|
}
|