return 65536; /* We can handle an infinite amount of data. :-) */
}
#endif
+
/*
* Handle the 'receiver data ready' interrupt.
* This function is called by the 'tty_io' module in the kernel when
if (tty->driver->flush_buffer)
tty->driver->flush_buffer(tty);
#endif
+
if (!test_bit(SLF_INUSE, &sl->flags)) {
/* Perform the low-level SLCAN initialization. */
sl->rcount = 0;
/* Done. We have linked the TTY line to a channel. */
rtnl_unlock();
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
tty->receive_room = 65536; /* We don't flow control */
#endif
+
return sl->dev->base_addr;
err_free_chan: