diff options
author | bde <bde@FreeBSD.org> | 1998-08-23 07:52:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-23 07:52:48 +0000 |
commit | a86ea80a2987ff6a41fbe0c94f9029e6d2b6af5d (patch) | |
tree | dabdfa94c1edae9993d7c0efb84988cd42b8997c /sys | |
parent | 7a7aef0b8578f3aed32bb3ba014c25e9c2393f99 (diff) | |
download | FreeBSD-src-a86ea80a2987ff6a41fbe0c94f9029e6d2b6af5d.zip FreeBSD-src-a86ea80a2987ff6a41fbe0c94f9029e6d2b6af5d.tar.gz |
Removed cxpoll(). Just use ttpoll() like all other tty drivers. It's
equivalent except for the bad-minor-number case (which probably can't
happen).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/cx.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 4a8d144..deadd56 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -87,7 +87,6 @@ static d_write_t cxwrite; static d_ioctl_t cxioctl; static d_stop_t cxstop; static d_devtotty_t cxdevtotty; -static d_poll_t cxpoll; # define CDEV_MAJOR 42 @@ -95,7 +94,7 @@ static d_poll_t cxpoll; struct cdevsw cx_cdevsw = { cxopen, cxclose, cxread, cxwrite, /*42*/ cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */ - cxpoll, nommap, NULL, "cx", NULL, -1 }; + ttpoll, nommap, NULL, "cx", NULL, -1 }; #else struct tty *cx_tty [NCX*NCHAN]; /* tty data */ #endif @@ -736,15 +735,6 @@ struct tty *cxdevtotty (dev_t dev) return (cxchan[unit]->ttyp); } -int cxpoll (dev_t dev, int events, struct proc *p) -{ - int unit = UNIT (dev); - - if (unit == UNIT_CTL || unit >= NCX*NCHAN) - return (0); - return (ttypoll (cxchan[unit]->ttyp, events, p)); -} - /* * Stop output on a line */ |