summaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-04-17 17:23:14 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-11-04 11:25:56 +0000
commit9aba8d5b011193c8e01d565c5b585df5b94f1db2 (patch)
tree4f45580d7310ea7ea7dba87a237732f0580ecb36 /include/linux/serial_core.h
parentdba05832cbe4f305dfd998fb26d7c685d91fbbd8 (diff)
downloadlinux-9aba8d5b011193c8e01d565c5b585df5b94f1db2.tar.gz
linux-9aba8d5b011193c8e01d565c5b585df5b94f1db2.tar.bz2
linux-9aba8d5b011193c8e01d565c5b585df5b94f1db2.zip
SERIAL: core: add throttle/unthrottle callbacks for hardware assisted flow control
Add two callbacks for hardware assisted flow control; we need to know when the tty layers want us to stop and restart due to their buffer levels. Call a driver specific throttle/unthrottle function if and only if the driver indicates that it is using an enabled hardware assisted flow control method, otherwise fall back to the non-hardware assisted methods. Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index e2cda5d04e48..c6690a2a27fb 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -46,6 +46,8 @@ struct uart_ops {
unsigned int (*get_mctrl)(struct uart_port *);
void (*stop_tx)(struct uart_port *);
void (*start_tx)(struct uart_port *);
+ void (*throttle)(struct uart_port *);
+ void (*unthrottle)(struct uart_port *);
void (*send_xchar)(struct uart_port *, char ch);
void (*stop_rx)(struct uart_port *);
void (*enable_ms)(struct uart_port *);