Source
x
static void qt2_process_status(struct usb_serial_port *port, unsigned char *ch)
// SPDX-License-Identifier: GPL-2.0
/*
* usb-serial driver for Quatech USB 2 devices
*
* Copyright (C) 2012 Bill Pemberton (wfp5p@virginia.edu)
*
* These devices all have only 1 bulk in and 1 bulk out that is shared
* for all serial ports.
*
*/
/* default urb timeout for usb operations */
/* status bytes for the device */
/* following 1 byte is line status */
/* following 1 byte is modem status */
/* following 2 bytes are ?? */
/* following 1 byte is port to change to */
/* no following info */
/* no following info */
/* pass through previous 2 control bytes */
/* size of read buffer */
/* size of write buffer */
/* control bytes used for a write */
/* RS232 single port */
/* RS232 dual port */
/* RS232/422/485 dual port */
/* RS232 four port */
/* RS232/422/485 four port */
/* RS232 eight port */
/* RS232/422/485 eight port */
struct qt2_device_detail {
int product_id;
int num_ports;
};
static const struct qt2_device_detail qt2_device_details[] = {
{QT_DETAILS(QUATECH_SSU2_100, 1)},
{QT_DETAILS(QUATECH_DSU2_400, 2)},
{QT_DETAILS(QUATECH_DSU2_100, 2)},
{QT_DETAILS(QUATECH_QSU2_400, 4)},
{QT_DETAILS(QUATECH_QSU2_100, 4)},
{QT_DETAILS(QUATECH_ESU2_400, 8)},
{QT_DETAILS(QUATECH_ESU2_100, 8)},
{QT_DETAILS(0, 0)} /* Terminating entry */