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).
This commit is contained in:
parent
21c729c287
commit
87c95fa5dc
@ -87,7 +87,6 @@ static d_write_t cxwrite;
|
|||||||
static d_ioctl_t cxioctl;
|
static d_ioctl_t cxioctl;
|
||||||
static d_stop_t cxstop;
|
static d_stop_t cxstop;
|
||||||
static d_devtotty_t cxdevtotty;
|
static d_devtotty_t cxdevtotty;
|
||||||
static d_poll_t cxpoll;
|
|
||||||
|
|
||||||
# define CDEV_MAJOR 42
|
# define CDEV_MAJOR 42
|
||||||
|
|
||||||
@ -95,7 +94,7 @@ static d_poll_t cxpoll;
|
|||||||
struct cdevsw cx_cdevsw =
|
struct cdevsw cx_cdevsw =
|
||||||
{ cxopen, cxclose, cxread, cxwrite, /*42*/
|
{ cxopen, cxclose, cxread, cxwrite, /*42*/
|
||||||
cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */
|
cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */
|
||||||
cxpoll, nommap, NULL, "cx", NULL, -1 };
|
ttpoll, nommap, NULL, "cx", NULL, -1 };
|
||||||
#else
|
#else
|
||||||
struct tty *cx_tty [NCX*NCHAN]; /* tty data */
|
struct tty *cx_tty [NCX*NCHAN]; /* tty data */
|
||||||
#endif
|
#endif
|
||||||
@ -736,15 +735,6 @@ struct tty *cxdevtotty (dev_t dev)
|
|||||||
return (cxchan[unit]->ttyp);
|
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
|
* Stop output on a line
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user