/* Output a single character. We put it into a temporary local buffer (for speed) then write out that buffer when the flushchars routine is called. There is a safety catch here so that if some other port writes chars before the current buffer has been, then we write them first them do the new ports.  */
static int stli_putchar(struct tty_struct *tty, unsigned char ch)
/* Output a single character. We put it into a temporary local buffer (for speed) then write out that buffer when the flushchars routine is called. There is a safety catch here so that if some other port writes chars before the current buffer has been, then we write them first them do the new ports.  */
static int stli_putchar(struct tty_struct *tty, unsigned char ch)
{
	if (tty != stli_txcooktty) {
		if (stli_txcooktty != NULL)
			stli_flushchars(stli_txcooktty);
		stli_txcooktty = tty;
	}
	stli_txcookbuf[stli_txcooksize++] = ch;
	return 0;
}