ssu100.c (32078f915d1acab356080b144aa89fe3487f3979) ssu100.c (68e24113457e437b1576670f2419b77ed0531e9e)
1/*
2 * usb-serial driver for Quatech SSU-100
3 *
4 * based on ftdi_sio.c and the original serqt_usb.c from Quatech
5 *
6 */
7
8#include <linux/errno.h>

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

54
55#define USB_VENDOR_ID_QUATECH 0x061d /* Quatech VID */
56#define QUATECH_SSU100 0xC020 /* SSU100 */
57
58static const struct usb_device_id id_table[] = {
59 {USB_DEVICE(USB_VENDOR_ID_QUATECH, QUATECH_SSU100)},
60 {} /* Terminating entry */
61};
1/*
2 * usb-serial driver for Quatech SSU-100
3 *
4 * based on ftdi_sio.c and the original serqt_usb.c from Quatech
5 *
6 */
7
8#include <linux/errno.h>

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

54
55#define USB_VENDOR_ID_QUATECH 0x061d /* Quatech VID */
56#define QUATECH_SSU100 0xC020 /* SSU100 */
57
58static const struct usb_device_id id_table[] = {
59 {USB_DEVICE(USB_VENDOR_ID_QUATECH, QUATECH_SSU100)},
60 {} /* Terminating entry */
61};
62
63MODULE_DEVICE_TABLE(usb, id_table);
64
62MODULE_DEVICE_TABLE(usb, id_table);
63
65
66static struct usb_driver ssu100_driver = {
67 .name = "ssu100",
68 .id_table = id_table,
69};
70
71struct ssu100_port_private {
72 spinlock_t status_lock;
73 u8 shadowLSR;
74 u8 shadowMSR;
75 wait_queue_head_t delta_msr_wait; /* Used for TIOCMIWAIT */
76 struct async_icount icount;
77};
78

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

666 .set_termios = ssu100_set_termios,
667 .disconnect = usb_serial_generic_disconnect,
668};
669
670static struct usb_serial_driver * const serial_drivers[] = {
671 &ssu100_device, NULL
672};
673
64struct ssu100_port_private {
65 spinlock_t status_lock;
66 u8 shadowLSR;
67 u8 shadowMSR;
68 wait_queue_head_t delta_msr_wait; /* Used for TIOCMIWAIT */
69 struct async_icount icount;
70};
71

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

659 .set_termios = ssu100_set_termios,
660 .disconnect = usb_serial_generic_disconnect,
661};
662
663static struct usb_serial_driver * const serial_drivers[] = {
664 &ssu100_device, NULL
665};
666
674module_usb_serial_driver(ssu100_driver, serial_drivers);
667module_usb_serial_driver(serial_drivers, id_table);
675
676MODULE_DESCRIPTION(DRIVER_DESC);
677MODULE_LICENSE("GPL");
678
679module_param(debug, bool, S_IRUGO | S_IWUSR);
680MODULE_PARM_DESC(debug, "Debug enabled or not");
668
669MODULE_DESCRIPTION(DRIVER_DESC);
670MODULE_LICENSE("GPL");
671
672module_param(debug, bool, S_IRUGO | S_IWUSR);
673MODULE_PARM_DESC(debug, "Debug enabled or not");