diff options
author | phk <phk@FreeBSD.org> | 1999-09-28 11:45:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-28 11:45:31 +0000 |
commit | 5e9f92ecf757c8f55ddae7d0dcec108fef05954d (patch) | |
tree | 98fbe8a4cc58070df6f9fb9ad41348c78b444f78 /sys/i386/isa/cy.c | |
parent | 9f4fe5b99e561702e8ee5934290097d4ef487e94 (diff) | |
download | FreeBSD-src-5e9f92ecf757c8f55ddae7d0dcec108fef05954d.zip FreeBSD-src-5e9f92ecf757c8f55ddae7d0dcec108fef05954d.tar.gz |
Introduce ttyread() and ttywrite() which do the canonical thing.
Use them in many tty drivers.
Reviewed by: julian, bde
Diffstat (limited to 'sys/i386/isa/cy.c')
-rw-r--r-- | sys/i386/isa/cy.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c index 472544a..041b4dd 100644 --- a/sys/i386/isa/cy.c +++ b/sys/i386/isa/cy.c @@ -132,7 +132,6 @@ #define sioopen cyopen #define siopoll cypoll #define sioprobe cyprobe -#define sioread cyread #define siosettimeout cysettimeout #define siosetwater cysetwater #define comstop cystop @@ -367,7 +366,6 @@ struct isa_driver siodriver = { static d_open_t sioopen; static d_close_t sioclose; -static d_read_t sioread; static d_write_t siowrite; static d_ioctl_t sioioctl; @@ -375,7 +373,7 @@ static d_ioctl_t sioioctl; static struct cdevsw sio_cdevsw = { /* open */ sioopen, /* close */ sioclose, - /* read */ sioread, + /* read */ ttyread, /* write */ siowrite, /* ioctl */ sioioctl, /* poll */ ttypoll, @@ -940,22 +938,6 @@ comhardclose(com) } static int -sioread(dev, uio, flag) - dev_t dev; - struct uio *uio; - int flag; -{ - int mynor; - struct tty *tp; - - mynor = minor(dev); - if (mynor & CONTROL_MASK) - return (ENODEV); - tp = com_addr(MINOR_TO_UNIT(mynor))->tp; - return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); -} - -static int siowrite(dev, uio, flag) dev_t dev; struct uio *uio; |