OSDN Git Service

staging: speakup: add tty-based comms functions
authorOkash Khawaja <okash.khawaja@gmail.com>
Mon, 15 May 2017 17:45:33 +0000 (18:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 May 2017 12:05:42 +0000 (14:05 +0200)
commit1ab92da32e37758c0e2e2a455f06d5f40609f14e
treeb18ad58e8088c5b731480c2155034f6edf590281
parent12e84c71b7d4ee38d51377fd494ac748ee4e6912
staging: speakup: add tty-based comms functions

This adds spk_ttyio.c file. It contains a set of functions which implement
those methods in spk_synth struct which relate to sending bytes out using
serial comms. Implementations in this file perform the same function but
using TTY subsystem instead. Currently synths access serial ports, directly
poking standard ISA ports by trying to steal them from serial driver. Some ISA
cards actually need this way of doing it, but most other synthesizers don't,
and can actually work by using the proper TTY subsystem through a new N_SPEAKUP
line discipline. So this adds the methods for drivers to switch to accessing
serial ports through the TTY subsystem, whenever appropriate.

Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/Makefile
drivers/staging/speakup/spk_priv.h
drivers/staging/speakup/spk_ttyio.c [new file with mode: 0644]
drivers/tty/tty_ldisc.c
include/uapi/linux/tty.h