oti6858.c (66b0835e2bb3d345f060a47bb8c8f883bd25ec2b) oti6858.c (60b33c133ca0b7c0b6072c87234b63fee6e80558)
1/*
2 * Ours Technology Inc. OTi-6858 USB to serial adapter driver.
3 *
4 * Copyleft (C) 2007 Kees Lemmens (adapted for kernel 2.6.20)
5 * Copyright (C) 2006 Tomasz Michal Lukaszewski (FIXME: add e-mail)
6 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com)
7 * Copyright (C) 2003 IBM Corp.
8 *

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

139 unsigned int cmd, unsigned long arg);
140static void oti6858_read_int_callback(struct urb *urb);
141static void oti6858_read_bulk_callback(struct urb *urb);
142static void oti6858_write_bulk_callback(struct urb *urb);
143static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port,
144 const unsigned char *buf, int count);
145static int oti6858_write_room(struct tty_struct *tty);
146static int oti6858_chars_in_buffer(struct tty_struct *tty);
1/*
2 * Ours Technology Inc. OTi-6858 USB to serial adapter driver.
3 *
4 * Copyleft (C) 2007 Kees Lemmens (adapted for kernel 2.6.20)
5 * Copyright (C) 2006 Tomasz Michal Lukaszewski (FIXME: add e-mail)
6 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com)
7 * Copyright (C) 2003 IBM Corp.
8 *

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

139 unsigned int cmd, unsigned long arg);
140static void oti6858_read_int_callback(struct urb *urb);
141static void oti6858_read_bulk_callback(struct urb *urb);
142static void oti6858_write_bulk_callback(struct urb *urb);
143static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port,
144 const unsigned char *buf, int count);
145static int oti6858_write_room(struct tty_struct *tty);
146static int oti6858_chars_in_buffer(struct tty_struct *tty);
147static int oti6858_tiocmget(struct tty_struct *tty, struct file *file);
147static int oti6858_tiocmget(struct tty_struct *tty);
148static int oti6858_tiocmset(struct tty_struct *tty, struct file *file,
149 unsigned int set, unsigned int clear);
150static int oti6858_startup(struct usb_serial *serial);
151static void oti6858_release(struct usb_serial *serial);
152
153/* device info */
154static struct usb_serial_driver oti6858_device = {
155 .driver = {

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

652
653 if (control != priv->pending_setup.control)
654 priv->pending_setup.control = control;
655
656 spin_unlock_irqrestore(&priv->lock, flags);
657 return 0;
658}
659
148static int oti6858_tiocmset(struct tty_struct *tty, struct file *file,
149 unsigned int set, unsigned int clear);
150static int oti6858_startup(struct usb_serial *serial);
151static void oti6858_release(struct usb_serial *serial);
152
153/* device info */
154static struct usb_serial_driver oti6858_device = {
155 .driver = {

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

652
653 if (control != priv->pending_setup.control)
654 priv->pending_setup.control = control;
655
656 spin_unlock_irqrestore(&priv->lock, flags);
657 return 0;
658}
659
660static int oti6858_tiocmget(struct tty_struct *tty, struct file *file)
660static int oti6858_tiocmget(struct tty_struct *tty)
661{
662 struct usb_serial_port *port = tty->driver_data;
663 struct oti6858_private *priv = usb_get_serial_port_data(port);
664 unsigned long flags;
665 unsigned pin_state;
666 unsigned result = 0;
667
668 dbg("%s(port = %d)", __func__, port->number);

--- 343 unchanged lines hidden ---
661{
662 struct usb_serial_port *port = tty->driver_data;
663 struct oti6858_private *priv = usb_get_serial_port_data(port);
664 unsigned long flags;
665 unsigned pin_state;
666 unsigned result = 0;
667
668 dbg("%s(port = %d)", __func__, port->number);

--- 343 unchanged lines hidden ---