- return ret;
-}
-
-static void uart_put_char(struct tty_struct *tty, unsigned char ch)
-{
- struct uart_state *state = tty->driver_data;
-
- __uart_put_char(state->port, &state->info->xmit, ch);
-}
-
-static void uart_flush_chars(struct tty_struct *tty)
-{
- uart_start(tty);
-}
-
-static int
-uart_write(struct tty_struct *tty, int from_user, const unsigned char * buf,
- int count)
-{
- struct uart_state *state = tty->driver_data;
- int ret;
-
- if (!state->info->xmit.buf)
- return 0;
-
- if (from_user)
- ret = __uart_user_write(state->port, &state->info->xmit, buf, count);
- else
- ret = __uart_kern_write(state->port, &state->info->xmit, buf, count);
-