The Generic USB Serial Driver

The generic USB serial driver delivers data from a call to write() to the device's bulk-out endpoint. It also passes data from the bulk-in endpoint to the tty layer's buffers to be received when a user calls read(). If your device works like this, then the generic driver code should be used. Otherwise, have your driver provide the function pointers in the usb_serial_device_type structure.