kl5kusb105.c (e8cdfb0509f48d44d95d68d4f42d8d71a9ba4acd) kl5kusb105.c (60b33c133ca0b7c0b6072c87234b63fee6e80558)
1/*
2 * KLSI KL5KUSB105 chip RS232 converter driver
3 *
4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com>
5 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de>
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

--- 54 unchanged lines hidden (view full) ---

63 * Function prototypes
64 */
65static int klsi_105_startup(struct usb_serial *serial);
66static void klsi_105_release(struct usb_serial *serial);
67static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port);
68static void klsi_105_close(struct usb_serial_port *port);
69static void klsi_105_set_termios(struct tty_struct *tty,
70 struct usb_serial_port *port, struct ktermios *old);
1/*
2 * KLSI KL5KUSB105 chip RS232 converter driver
3 *
4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com>
5 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de>
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

--- 54 unchanged lines hidden (view full) ---

63 * Function prototypes
64 */
65static int klsi_105_startup(struct usb_serial *serial);
66static void klsi_105_release(struct usb_serial *serial);
67static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port);
68static void klsi_105_close(struct usb_serial_port *port);
69static void klsi_105_set_termios(struct tty_struct *tty,
70 struct usb_serial_port *port, struct ktermios *old);
71static int klsi_105_tiocmget(struct tty_struct *tty, struct file *file);
71static int klsi_105_tiocmget(struct tty_struct *tty);
72static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file,
73 unsigned int set, unsigned int clear);
74static void klsi_105_process_read_urb(struct urb *urb);
75static int klsi_105_prepare_write_buffer(struct usb_serial_port *port,
76 void *dest, size_t size);
77
78/*
79 * All of the device info needed for the KLSI converters.

--- 552 unchanged lines hidden (view full) ---

632 /* LOCKING */
633 if (break_state)
634 lcr |= MCT_U232_SET_BREAK;
635
636 mct_u232_set_line_ctrl(serial, lcr);
637}
638#endif
639
72static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file,
73 unsigned int set, unsigned int clear);
74static void klsi_105_process_read_urb(struct urb *urb);
75static int klsi_105_prepare_write_buffer(struct usb_serial_port *port,
76 void *dest, size_t size);
77
78/*
79 * All of the device info needed for the KLSI converters.

--- 552 unchanged lines hidden (view full) ---

632 /* LOCKING */
633 if (break_state)
634 lcr |= MCT_U232_SET_BREAK;
635
636 mct_u232_set_line_ctrl(serial, lcr);
637}
638#endif
639
640static int klsi_105_tiocmget(struct tty_struct *tty, struct file *file)
640static int klsi_105_tiocmget(struct tty_struct *tty)
641{
642 struct usb_serial_port *port = tty->driver_data;
643 struct klsi_105_private *priv = usb_get_serial_port_data(port);
644 unsigned long flags;
645 int rc;
646 unsigned long line_state;
647 dbg("%s - request, just guessing", __func__);
648

--- 81 unchanged lines hidden ---
641{
642 struct usb_serial_port *port = tty->driver_data;
643 struct klsi_105_private *priv = usb_get_serial_port_data(port);
644 unsigned long flags;
645 int rc;
646 unsigned long line_state;
647 dbg("%s - request, just guessing", __func__);
648

--- 81 unchanged lines hidden ---