16 #include <linux/kernel.h>
18 #include <linux/tty.h>
20 #include <linux/module.h>
25 { USB_DEVICE(0x0a99, 0x0001) },
26 { USB_DEVICE(0x0df7, 0x0900) },
31 static void navman_read_int_callback(
struct urb *
urb)
34 unsigned char *
data = urb->transfer_buffer;
47 dev_dbg(&port->
dev,
"%s - urb shutting down with status: %d\n",
51 dev_dbg(&port->
dev,
"%s - nonzero urb status received: %d\n",
56 usb_serial_debug_data(&port->
dev, __func__, urb->actual_length, data);
59 if (tty && urb->actual_length) {
60 tty_insert_flip_string(tty, data, urb->actual_length);
69 "%s - Error %d submitting interrupt urb\n",
78 dev_dbg(&port->
dev,
"%s - adding interrupt input for treo\n",
83 "%s - failed submitting interrupt urb, error %d\n",
111 .close = navman_close,
112 .write = navman_write,
113 .read_int_callback = navman_read_int_callback,