summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-05-05 20:32:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 02:32:21 +0200
commit0693196fe7bbb5e6cafd255dfce91ff6d10bc18f (patch)
tree9cc67b83f7757647adea0629a3adf94c05865354 /include
parentUSB: set device dma_mask without reference to global data (diff)
downloadlinux-0693196fe7bbb5e6cafd255dfce91ff6d10bc18f.tar.xz
linux-0693196fe7bbb5e6cafd255dfce91ff6d10bc18f.zip
USB: serial: add wait_until_sent operation
Add wait_until_sent operation which can be used to wait for hardware buffers to drain. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/serial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h
index b9b0f7b4e43b..afbb7eeaac5f 100644
--- a/include/linux/usb/serial.h
+++ b/include/linux/usb/serial.h
@@ -268,6 +268,7 @@ struct usb_serial_driver {
struct usb_serial_port *port, struct ktermios *old);
void (*break_ctl)(struct tty_struct *tty, int break_state);
int (*chars_in_buffer)(struct tty_struct *tty);
+ void (*wait_until_sent)(struct tty_struct *tty, long timeout);
void (*throttle)(struct tty_struct *tty);
void (*unthrottle)(struct tty_struct *tty);
int (*tiocmget)(struct tty_struct *tty);