1 #ifndef _SPEAKUP_SERIAL_H
2 #define _SPEAKUP_SERIAL_H
4 #include <linux/serial.h> /* for rs_table, serial constants */
5 #include <linux/serial_reg.h> /* for more serial constants */
7 #include <asm/serial.h>
11 * this is cut&paste from 8250.h. Get rid of the structure, the definitions
12 * and this whole broken driver.
14 struct old_serial_port
{
15 unsigned int uart
; /* unused */
16 unsigned int baud_base
;
19 unsigned int flags
; /* unused */
22 /* countdown values for serial timeouts in us */
23 #define SPK_SERIAL_TIMEOUT 100000
24 /* countdown values transmitter/dsr timeouts in us */
25 #define SPK_XMITR_TIMEOUT 100000
26 /* countdown values cts timeouts in us */
27 #define SPK_CTS_TIMEOUT 100000
28 /* check ttyS0 ... ttyS3 */
31 /* # of timeouts permitted before disable */
32 #define NUM_DISABLE_TIMEOUTS 3
33 /* buffer timeout in ms */
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)