diff options
author | phk <phk@FreeBSD.org> | 2004-06-01 13:49:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-01 13:49:28 +0000 |
commit | 83ae77becd632897687db152538a6e5bb5e92eb1 (patch) | |
tree | 219773bb1bc353479f3267950d51f81b41bdfdb2 /sys/dev/dcons/dcons.c | |
parent | 3521579704b6a092199dccaeecd4b1561e5ca508 (diff) | |
download | FreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.zip FreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.tar.gz |
Gainfully employ the new ttyioctl in the trivial cases.
Diffstat (limited to 'sys/dev/dcons/dcons.c')
-rw-r--r-- | sys/dev/dcons/dcons.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sys/dev/dcons/dcons.c b/sys/dev/dcons/dcons.c index cb983e4..1734466 100644 --- a/sys/dev/dcons/dcons.c +++ b/sys/dev/dcons/dcons.c @@ -85,14 +85,12 @@ static struct consdev gdbconsdev; static d_open_t dcons_open; static d_close_t dcons_close; -static d_ioctl_t dcons_ioctl; static struct cdevsw dcons_cdevsw = { #if __FreeBSD_version >= 500104 .d_version = D_VERSION, .d_open = dcons_open, .d_close = dcons_close, - .d_ioctl = dcons_ioctl, .d_name = "dcons", .d_flags = D_TTY | D_NEEDGIANT, #else @@ -219,29 +217,6 @@ dcons_close(dev_t dev, int flag, int mode, struct THREAD *td) } static int -dcons_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct THREAD *td) -{ - int unit; - struct tty *tp; - int error; - - unit = minor(dev); - if (unit != 0) - return (ENXIO); - - tp = dev->si_tty; - error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td); - if (error != ENOIOCTL) - return (error); - - error = ttioctl(tp, cmd, data, flag); - if (error != ENOIOCTL) - return (error); - - return (ENOTTY); -} - -static int dcons_tty_param(struct tty *tp, struct termios *t) { tp->t_ispeed = t->c_ispeed; |