| 1 |
|
| 2 | #ifndef _SPEAKUP_SERIAL_H
|
| 3 | #define _SPEAKUP_SERIAL_H
|
| 4 |
|
| 5 | #include <linux/serial.h>
|
| 6 | #include <linux/serial_reg.h>
|
| 7 | #include <linux/serial_core.h>
|
| 8 |
|
| 9 | #include "spk_priv.h"
|
| 10 |
|
| 11 | |
| 12 | * this is cut&paste from 8250.h. Get rid of the structure, the definitions
|
| 13 | * and this whole broken driver.
|
| 14 |
|
| 15 | struct old_serial_port {
|
| 16 | unsigned int uart;
|
| 17 | unsigned int baud_base;
|
| 18 | unsigned int port;
|
| 19 | unsigned int irq;
|
| 20 | upf_t flags;
|
| 21 | };
|
| 22 |
|
| 23 |
|
| 24 | #define SPK_SERIAL_TIMEOUT SPK_SYNTH_TIMEOUT
|
| 25 |
|
| 26 | #define SPK_XMITR_TIMEOUT 100000
|
| 27 |
|
| 28 | #define SPK_CTS_TIMEOUT 100000
|
| 29 |
|
| 30 | #define SPK_LO_TTY 0
|
| 31 | #define SPK_HI_TTY 3
|
| 32 |
|
| 33 | #define NUM_DISABLE_TIMEOUTS 3
|
| 34 |
|
| 35 | #define SPK_TIMEOUT 100
|
| 36 |
|
| 37 | #define spk_serial_tx_busy() \
|
| 38 | (!uart_lsr_tx_empty(inb(speakup_info.port_tts + UART_LSR)))
|
| 39 |
|
| 40 | #endif
|