keyspan.c (e8cdfb0509f48d44d95d68d4f42d8d71a9ba4acd) | keyspan.c (60b33c133ca0b7c0b6072c87234b63fee6e80558) |
---|---|
1/* 2 Keyspan USB to Serial Converter driver 3 4 (C) Copyright (C) 2000-2001 Hugh Blemings <hugh@blemings.org> 5 (C) Copyright (C) 2002 Greg Kroah-Hartman <greg@kroah.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 287 unchanged lines hidden (view full) --- 296 p_priv->flow_control = (cflag & CRTSCTS)? flow_cts: flow_none; 297 298 /* Mark/Space not supported */ 299 tty->termios->c_cflag &= ~CMSPAR; 300 301 keyspan_send_setup(port, 0); 302} 303 | 1/* 2 Keyspan USB to Serial Converter driver 3 4 (C) Copyright (C) 2000-2001 Hugh Blemings <hugh@blemings.org> 5 (C) Copyright (C) 2002 Greg Kroah-Hartman <greg@kroah.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 287 unchanged lines hidden (view full) --- 296 p_priv->flow_control = (cflag & CRTSCTS)? flow_cts: flow_none; 297 298 /* Mark/Space not supported */ 299 tty->termios->c_cflag &= ~CMSPAR; 300 301 keyspan_send_setup(port, 0); 302} 303 |
304static int keyspan_tiocmget(struct tty_struct *tty, struct file *file) | 304static int keyspan_tiocmget(struct tty_struct *tty) |
305{ 306 struct usb_serial_port *port = tty->driver_data; 307 struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); 308 unsigned int value; 309 310 value = ((p_priv->rts_state) ? TIOCM_RTS : 0) | 311 ((p_priv->dtr_state) ? TIOCM_DTR : 0) | 312 ((p_priv->cts_state) ? TIOCM_CTS : 0) | --- 2440 unchanged lines hidden --- | 305{ 306 struct usb_serial_port *port = tty->driver_data; 307 struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); 308 unsigned int value; 309 310 value = ((p_priv->rts_state) ? TIOCM_RTS : 0) | 311 ((p_priv->dtr_state) ? TIOCM_DTR : 0) | 312 ((p_priv->cts_state) ? TIOCM_CTS : 0) | --- 2440 unchanged lines hidden --- |