~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/usb/serial/cp210x.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        unsigned int *cflagp, unsigned int *baudp);
42
42
static void cp210x_set_termios(struct tty_struct *, struct usb_serial_port *,
43
43
                                                        struct ktermios*);
44
 
static int cp210x_tiocmget(struct tty_struct *, struct file *);
45
 
static int cp210x_tiocmset(struct tty_struct *, struct file *,
46
 
                unsigned int, unsigned int);
47
 
static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *,
 
44
static int cp210x_tiocmget(struct tty_struct *);
 
45
static int cp210x_tiocmset(struct tty_struct *, unsigned int, unsigned int);
 
46
static int cp210x_tiocmset_port(struct usb_serial_port *port,
48
47
                unsigned int, unsigned int);
49
48
static void cp210x_break_ctl(struct tty_struct *, int);
50
49
static int cp210x_startup(struct usb_serial *);
102
101
        { USB_DEVICE(0x10C4, 0x81F2) }, /* C1007 HF band RFID controller */
103
102
        { USB_DEVICE(0x10C4, 0x8218) }, /* Lipowsky Industrie Elektronik GmbH, HARP-1 */
104
103
        { USB_DEVICE(0x10C4, 0x822B) }, /* Modem EDGE(GSM) Comander 2 */
105
 
        { USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demostration module */
106
 
        { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesys ETRX2USB */
 
104
        { USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration module */
 
105
        { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */
107
106
        { USB_DEVICE(0x10C4, 0x82F9) }, /* Procyon AVS */
108
107
        { USB_DEVICE(0x10C4, 0x8341) }, /* Siemens MC35PU GPRS Modem */
109
108
        { USB_DEVICE(0x10C4, 0x8382) }, /* Cygnal Integrated Products, Inc. */
113
112
        { USB_DEVICE(0x10C4, 0x8418) }, /* IRZ Automation Teleport SG-10 GSM/GPRS Modem */
114
113
        { USB_DEVICE(0x10C4, 0x846E) }, /* BEI USB Sensor Interface (VCP) */
115
114
        { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */
 
115
        { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */
 
116
        { USB_DEVICE(0x10C4, 0x85EB) }, /* AC-Services CIS-IBUS */
 
117
        { USB_DEVICE(0x10C4, 0x8664) }, /* AC-Services CAN-IF */
 
118
        { USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */
116
119
        { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
117
120
        { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */
118
121
        { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */
698
701
 
699
702
}
700
703
 
701
 
static int cp210x_tiocmset (struct tty_struct *tty, struct file *file,
 
704
static int cp210x_tiocmset (struct tty_struct *tty,
702
705
                unsigned int set, unsigned int clear)
703
706
{
704
707
        struct usb_serial_port *port = tty->driver_data;
705
 
        return cp210x_tiocmset_port(port, file, set, clear);
 
708
        return cp210x_tiocmset_port(port, set, clear);
706
709
}
707
710
 
708
 
static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *file,
 
711
static int cp210x_tiocmset_port(struct usb_serial_port *port,
709
712
                unsigned int set, unsigned int clear)
710
713
{
711
714
        unsigned int control = 0;
737
740
static void cp210x_dtr_rts(struct usb_serial_port *p, int on)
738
741
{
739
742
        if (on)
740
 
                cp210x_tiocmset_port(p, NULL,  TIOCM_DTR|TIOCM_RTS, 0);
 
743
                cp210x_tiocmset_port(p, TIOCM_DTR|TIOCM_RTS, 0);
741
744
        else
742
 
                cp210x_tiocmset_port(p, NULL,  0, TIOCM_DTR|TIOCM_RTS);
 
745
                cp210x_tiocmset_port(p, 0, TIOCM_DTR|TIOCM_RTS);
743
746
}
744
747
 
745
 
static int cp210x_tiocmget (struct tty_struct *tty, struct file *file)
 
748
static int cp210x_tiocmget (struct tty_struct *tty)
746
749
{
747
750
        struct usb_serial_port *port = tty->driver_data;
748
751
        unsigned int control;