diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 20:41:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 20:41:11 +0000 |
commit | fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c (patch) | |
tree | b4c7c5f55a2681dc99feaf813fae3d32fabd502e /sys/alpha | |
parent | 32b7c9a433930842533064d829ba214aadf6a67d (diff) | |
download | FreeBSD-src-fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c.zip FreeBSD-src-fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c.tar.gz |
Device megapatch 3/6:
Add missing D_TTY flags to various drivers.
Complete asserts that dev_t's passed to ttyread(), ttywrite(),
ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty
pointer.
Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default
cdevsw methods for D_TTY drivers and remove the explicit initializations
in various drivers cdevsw structures.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/promcons.c | 4 | ||||
-rw-r--r-- | sys/alpha/tlsb/zs_tlsb.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/alpha/alpha/promcons.c b/sys/alpha/alpha/promcons.c index 1800de6..473f0fc 100644 --- a/sys/alpha/alpha/promcons.c +++ b/sys/alpha/alpha/promcons.c @@ -66,11 +66,9 @@ static d_ioctl_t promioctl; static struct cdevsw prom_cdevsw = { .d_open = promopen, .d_close = promclose, - .d_read = ttyread, - .d_write = ttywrite, .d_ioctl = promioctl, - .d_poll = ttypoll, .d_name = "prom", + .d_flags = D_TTY, }; diff --git a/sys/alpha/tlsb/zs_tlsb.c b/sys/alpha/tlsb/zs_tlsb.c index 55065e1..035ac45 100644 --- a/sys/alpha/tlsb/zs_tlsb.c +++ b/sys/alpha/tlsb/zs_tlsb.c @@ -73,11 +73,9 @@ static d_ioctl_t zsioctl; static struct cdevsw zs_cdevsw = { .d_open = zsopen, .d_close = zsclose, - .d_read = ttyread, - .d_write = ttywrite, .d_ioctl = zsioctl, - .d_poll = ttypoll, .d_name = "zs", + .d_flags = D_TTY, }; static void zsstart(struct tty *); |