aircable.c (32078f915d1acab356080b144aa89fe3487f3979) aircable.c (68e24113457e437b1576670f2419b77ed0531e9e)
1/*
2 * AIRcable USB Bluetooth Dongle Driver.
3 *
4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com>
5 * Copyright (C) 2006 Manuel Francisco Naranjo (naranjo.manuel@gmail.com)
6 *
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License version 2 as published by the

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

165 &data[i], len);
166 }
167
168 if (count)
169 tty_flip_buffer_push(tty);
170 tty_kref_put(tty);
171}
172
1/*
2 * AIRcable USB Bluetooth Dongle Driver.
3 *
4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com>
5 * Copyright (C) 2006 Manuel Francisco Naranjo (naranjo.manuel@gmail.com)
6 *
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License version 2 as published by the

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

165 &data[i], len);
166 }
167
168 if (count)
169 tty_flip_buffer_push(tty);
170 tty_kref_put(tty);
171}
172
173static struct usb_driver aircable_driver = {
174 .name = "aircable",
175 .id_table = id_table,
176};
177
178static struct usb_serial_driver aircable_device = {
179 .driver = {
180 .owner = THIS_MODULE,
181 .name = "aircable",
182 },
183 .id_table = id_table,
184 .num_ports = 1,
185 .bulk_out_size = HCI_COMPLETE_FRAME,
186 .probe = aircable_probe,
187 .process_read_urb = aircable_process_read_urb,
188 .prepare_write_buffer = aircable_prepare_write_buffer,
189 .throttle = usb_serial_generic_throttle,
190 .unthrottle = usb_serial_generic_unthrottle,
191};
192
193static struct usb_serial_driver * const serial_drivers[] = {
194 &aircable_device, NULL
195};
196
173static struct usb_serial_driver aircable_device = {
174 .driver = {
175 .owner = THIS_MODULE,
176 .name = "aircable",
177 },
178 .id_table = id_table,
179 .num_ports = 1,
180 .bulk_out_size = HCI_COMPLETE_FRAME,
181 .probe = aircable_probe,
182 .process_read_urb = aircable_process_read_urb,
183 .prepare_write_buffer = aircable_prepare_write_buffer,
184 .throttle = usb_serial_generic_throttle,
185 .unthrottle = usb_serial_generic_unthrottle,
186};
187
188static struct usb_serial_driver * const serial_drivers[] = {
189 &aircable_device, NULL
190};
191
197module_usb_serial_driver(aircable_driver, serial_drivers);
192module_usb_serial_driver(serial_drivers, id_table);
198
199MODULE_AUTHOR(DRIVER_AUTHOR);
200MODULE_DESCRIPTION(DRIVER_DESC);
201MODULE_VERSION(DRIVER_VERSION);
202MODULE_LICENSE("GPL");
203
204module_param(debug, bool, S_IRUGO | S_IWUSR);
205MODULE_PARM_DESC(debug, "Debug enabled or not");
193
194MODULE_AUTHOR(DRIVER_AUTHOR);
195MODULE_DESCRIPTION(DRIVER_DESC);
196MODULE_VERSION(DRIVER_VERSION);
197MODULE_LICENSE("GPL");
198
199module_param(debug, bool, S_IRUGO | S_IWUSR);
200MODULE_PARM_DESC(debug, "Debug enabled or not");