Go to the documentation of this file. 1 #ifndef _SPEAKUP_SERIAL_H
2 #define _SPEAKUP_SERIAL_H
4 #include <linux/serial.h>
7 #include <asm/serial.h>
23 #define SPK_SERIAL_TIMEOUT 100000
25 #define SPK_XMITR_TIMEOUT 100000
27 #define SPK_CTS_TIMEOUT 100000
32 #define NUM_DISABLE_TIMEOUTS 3
34 #define SPK_TIMEOUT 100
35 #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
37 #define spk_serial_tx_busy() ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)
42 #define BASE_BAUD (1843200 / 16)
45 #ifdef CONFIG_SERIAL_DETECT_IRQ
46 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
47 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
49 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
50 #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
53 #ifndef SERIAL_PORT_DFNS
54 #define SERIAL_PORT_DFNS \
56 { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, \
57 { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, \
58 { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, \
59 { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },
62 #define IRQF_SHARED SA_SHIRQ