[PARISC] [MUX] Mux driver updates

This patch changes the Mux console to
use the Mux hardware instead of the PDC
Software console.

Signed-off-by: Ryan Bradetich <rbrad@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
Ryan Bradetich 2006-11-03 05:52:41 +00:00 коммит произвёл Kyle McMartin
Родитель 4bd5d82779
Коммит 3de7b6482b
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -376,8 +376,17 @@ static void mux_poll(unsigned long unused)
#ifdef CONFIG_SERIAL_MUX_CONSOLE #ifdef CONFIG_SERIAL_MUX_CONSOLE
static void mux_console_write(struct console *co, const char *s, unsigned count) static void mux_console_write(struct console *co, const char *s, unsigned count)
{ {
while(count--) /* Wait until the FIFO drains. */
pdc_iodc_putc(*s++); while(UART_GET_FIFO_CNT(&mux_ports[0].port))
udelay(1);
while(count--) {
if(*s == '\n') {
UART_PUT_CHAR(&mux_ports[0].port, '\r');
}
UART_PUT_CHAR(&mux_ports[0].port, *s++);
}
} }
static int mux_console_setup(struct console *co, char *options) static int mux_console_setup(struct console *co, char *options)