]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - drivers/staging/speakup/serialio.h
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 <linux/serial.h>
9 #include <linux/serial_core.h>
14 * this is cut&paste from 8250.h. Get rid of the structure, the definitions
15 * and this whole broken driver.
17 struct old_serial_port
{
18 unsigned int uart
; /* unused */
19 unsigned int baud_base
;
22 upf_t flags
; /* unused */
25 /* countdown values for serial timeouts in us */
26 #define SPK_SERIAL_TIMEOUT SPK_SYNTH_TIMEOUT
27 /* countdown values transmitter/dsr timeouts in us */
28 #define SPK_XMITR_TIMEOUT 100000
29 /* countdown values cts timeouts in us */
30 #define SPK_CTS_TIMEOUT 100000
31 /* check ttyS0 ... ttyS3 */
34 /* # of timeouts permitted before disable */
35 #define NUM_DISABLE_TIMEOUTS 3
36 /* buffer timeout in ms */
37 #define SPK_TIMEOUT 100
38 #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
40 #define spk_serial_tx_busy() \
41 ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)