summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-01 13:49:28 +0000
committerphk <phk@FreeBSD.org>2004-06-01 13:49:28 +0000
commit83ae77becd632897687db152538a6e5bb5e92eb1 (patch)
tree219773bb1bc353479f3267950d51f81b41bdfdb2 /sys/ia64
parent3521579704b6a092199dccaeecd4b1561e5ca508 (diff)
downloadFreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.zip
FreeBSD-src-83ae77becd632897687db152538a6e5bb5e92eb1.tar.gz
Gainfully employ the new ttyioctl in the trivial cases.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/ssc.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/ia64/ia64/ssc.c b/sys/ia64/ia64/ssc.c
index 68f4727..d483aeb 100644
--- a/sys/ia64/ia64/ssc.c
+++ b/sys/ia64/ia64/ssc.c
@@ -55,13 +55,11 @@
static d_open_t sscopen;
static d_close_t sscclose;
-static d_ioctl_t sscioctl;
static struct cdevsw ssc_cdevsw = {
.d_version = D_VERSION,
.d_open = sscopen,
.d_close = sscclose,
- .d_ioctl = sscioctl,
.d_name = "ssc",
.d_flags = D_TTY | D_NEEDGIANT,
};
@@ -193,26 +191,6 @@ sscclose(dev_t dev, int flag, int mode, struct thread *td)
}
static int
-sscioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
-{
- int unit = minor(dev);
- struct tty *tp = ssc_tp;
- int error;
-
- 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
sscparam(struct tty *tp, struct termios *t)
{
OpenPOWER on IntegriCloud