Path: blob/master/drivers/accessibility/speakup/serialio.h
26282 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef _SPEAKUP_SERIAL_H2#define _SPEAKUP_SERIAL_H34#include <linux/serial.h> /* for rs_table, serial constants */5#include <linux/serial_reg.h> /* for more serial constants */6#include <linux/serial_core.h>78#include "spk_priv.h"910/*11* this is cut&paste from 8250.h. Get rid of the structure, the definitions12* and this whole broken driver.13*/14struct old_serial_port {15unsigned int uart; /* unused */16unsigned int baud_base;17unsigned int port;18unsigned int irq;19upf_t flags; /* unused */20};2122/* countdown values for serial timeouts in us */23#define SPK_SERIAL_TIMEOUT SPK_SYNTH_TIMEOUT24/* countdown values transmitter/dsr timeouts in us */25#define SPK_XMITR_TIMEOUT 10000026/* countdown values cts timeouts in us */27#define SPK_CTS_TIMEOUT 10000028/* check ttyS0 ... ttyS3 */29#define SPK_LO_TTY 030#define SPK_HI_TTY 331/* # of timeouts permitted before disable */32#define NUM_DISABLE_TIMEOUTS 333/* buffer timeout in ms */34#define SPK_TIMEOUT 1003536#define spk_serial_tx_busy() \37(!uart_lsr_tx_empty(inb(speakup_info.port_tts + UART_LSR)))3839#endif404142