diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2008-10-23 19:11:44 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2008-10-23 19:11:44 +0000 |
| commit | 9b866e4e8ba5f62ebf32931ca5f2cb7ae515106e (patch) | |
| tree | acec577b22eaf826e48ceca0820bc605a7f4322b /sys/dev/uart | |
| parent | 16c8eda0bd90ec2c18d87f85b3444f4115128fc8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/uart')
| -rw-r--r-- | sys/dev/uart/uart_tty.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c index 9b37bb340bf5..6de5ae44642f 100644 --- a/sys/dev/uart/uart_tty.c +++ b/sys/dev/uart/uart_tty.c @@ -327,6 +327,18 @@ uart_tty_intr(void *arg) tty_unlock(tp); } +static void +uart_tty_free(void *arg) +{ + + /* + * XXX: uart(4) could reuse the device unit number before it is + * being freed by the TTY layer. We should use this hook to free + * the device unit number, but unfortunately newbus does not + * seem to support such a construct. + */ +} + static struct ttydevsw uart_tty_class = { .tsw_flags = TF_INITLOCK|TF_CALLOUT, .tsw_open = uart_tty_open, @@ -335,6 +347,7 @@ static struct ttydevsw uart_tty_class = { .tsw_ioctl = uart_tty_ioctl, .tsw_param = uart_tty_param, .tsw_modem = uart_tty_modem, + .tsw_free = uart_tty_free, }; int |
