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/dev/uart/uart_tty.c | |
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/dev/uart/uart_tty.c')
-rw-r--r-- | sys/dev/uart/uart_tty.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c index 6724ba7..66ce716 100644 --- a/sys/dev/uart/uart_tty.c +++ b/sys/dev/uart/uart_tty.c @@ -69,13 +69,9 @@ static d_ioctl_t uart_tty_ioctl; static struct cdevsw uart_cdevsw = { .d_open = uart_tty_open, .d_close = uart_tty_close, - .d_read = ttyread, - .d_write = ttywrite, .d_ioctl = uart_tty_ioctl, - .d_poll = ttypoll, .d_name = uart_driver_name, .d_flags = D_TTY, - .d_kqfilter = ttykqfilter, }; static struct uart_devinfo uart_console; |