From caeb33b22de9493023993090d54e8f4f6156e4cf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 3 Jul 2001 17:56:32 +0000 Subject: 2001-07-03 Mike Seirs * comm/tty_drv.c, comm/uart.c, comm/uart.h: Adds the capability to use task driven serial I/O to ti386 BSPs. This patch leaves thex default I/O mode to be IRQ. If you want to use task I/O mode, then the tty_drv.c file needs to be modified. Basically, all you need to change is the data values of the termios callbacks structure. This callback structure is used in the tty1_open and tty2_open functions. The values you need to set are commented out in the source code. --- c/src/lib/libbsp/i386/shared/comm/uart.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/src/lib/libbsp/i386/shared/comm/uart.h') diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h index d5687bf453..116ae15c60 100644 --- a/c/src/lib/libbsp/i386/shared/comm/uart.h +++ b/c/src/lib/libbsp/i386/shared/comm/uart.h @@ -20,6 +20,8 @@ int BSP_uart_polled_status(int uart); void BSP_uart_polled_write(int uart, int val); int BSP_uart_polled_read(int uart); void BSP_uart_termios_set(int uart, void *ttyp); +int BSP_uart_termios_read_com1(int uart); +int BSP_uart_termios_read_com2(int uart); int BSP_uart_termios_write_com1(int minor, const char *buf, int len); int BSP_uart_termios_write_com2(int minor, const char *buf, int len); void BSP_uart_termios_isr_com1(); -- cgit v1.2.3