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/ofw | |
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/ofw')
-rw-r--r-- | sys/dev/ofw/ofw_console.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index 506b894..04ba580 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -49,13 +49,11 @@ __FBSDID("$FreeBSD$"); static d_open_t ofw_dev_open; static d_close_t ofw_dev_close; -static d_ioctl_t ofw_dev_ioctl; static struct cdevsw ofw_cdevsw = { .d_version = D_VERSION, .d_open = ofw_dev_open, .d_close = ofw_dev_close, - .d_ioctl = ofw_dev_ioctl, .d_name = "ofw", .d_flags = D_TTY | D_NEEDGIANT, }; @@ -173,32 +171,6 @@ ofw_dev_close(dev_t dev, int flag, int mode, struct thread *td) return (0); } -static int -ofw_dev_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); - tp = ofw_tp; - - if (unit != 0) { - return (ENXIO); - } - - 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 ofw_tty_param(struct tty *tp, struct termios *t) |