Am Sonntag, 24. Juli 2005 19:14 schrieb Timothy Sipples:
> Oliver Neukum writes:
> >The generic driver uses a buffer of this size for convinience"s sake.
> >Increasing buffer size will increase throughput at the expense of 
> latency.
> >A proper fix would be to use multibuffer techniques. Do you have a card
> >and are interested in testing?
> 
> Oliver, I have a Novatel V620 in an EV-DO area, and I can replicate the 
> current failure at-will. (Actually, any "speed test" Web site does the 
> trick.)  I'm intrigued by your thoughts concerning multi-buffering.  What 
> did you have in mind (from a code point of view)?

Always having an URB in flight. If you simply increase the buffer
there are two dangers.
1. The last packet may hang for a long time.
2. You will likely miss a frame after each URB. If the buffer in
the device is too small, data will be lost.

Additionally I see no way to determine what buffer sizes a device will
choke at.
 
> FWIW, I disagree with Hoang Tran's patch's use of "int" as the data type 
> for the "maxSize" parameter.  It really ought to be __u16, shouldn't it? 

You have to range check the value anyway. We cannot do more than
PAGE_SIZE efficiently.

I am attaching a partially done driver for a device with similar problems.

        Regards
                Oliver
 
#define	QUAL_CDMA_URBS	8

#define	QUALCOMM_VENDOR_ID	0x05c6
#define	QUAL_CDMA_PROD_ID1	0x6000
#define	QUAL_CDMA_PROD_ID2	0x3197

static struct usb_device_id qual_id_table[] = {
	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUAL_CDMA_PROD_ID1) },
	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUAL_CDMA_PROD_ID2) },
	{ }	/* Terminating entry */
};

MODULE_DEVICE_TABLE (usb, qual_id_table);

/* --- prototypes ---*/
static void qual_cdma_rx_throttle (struct usb_serial_port *port);
static void qual_cdma_unthrottle (struct usb_serial_port *port);
static int qual_cdma_ioctl (struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg);
static int qual_cdma_open (struct usb_serial_port *port, struct file *filp);
static void qual_cdma_close(struct usb_serial_port *port, struct file * filp);
static int qual_cdma_write (struct usb_serial_port *port, const unsigned char *data, int count);
static int qual_cdma_write_room(struct usb_serial_port *port);
static int qual_cdma_chars_in_buffer(struct usb_serial_port *port);
static int qual_cdma_calc_num_ports (struct usb_serial *serial);
static int qual_cdma_attach (struct usb_serial *serial);
static void qual_cdma_shutdown (struct usb_serial *serial);
static void qual_cdma_close(struct usb_serial_port *port, struct file * filp);

static struct usb_driver qual_cdma_driver = {
	.owner =	THIS_MODULE,
	.name =		"qual_cdma",
	.probe =	usb_serial_probe,
	.disconnect =	usb_serial_disconnect,
	.id_table =	qual_id_table,
};

struct qual_cdma_rx {
	int 				number;
	struct qual_cdma_desc* 		master;
	struct urb*			urb;
	dma_addr_t			handle;
};

struct qual_cdma_tx {
	int 				number;
	struct qual_cdma_desc* 		master;
	struct urb*			urb;
	dma_addr_t			handle;
};

struct qual_cdma_desc {
	struct qual_cdma_rx		xmit[QUAL_CDMA_URBS];
	struct qual_cdma_tx		tmit[QUAL_CDMA_URBS];
	unsigned long			rx_used_mask;
	unsigned long			tx_used_mask;
	spinlock_t			lock;
	unsigned int			throttle;
	unsigned int			act_tx;
	size_t				wsize;
	struct usb_serial_port*		port;
	struct usb_device*		usb_dev;
};




static struct usb_serial_device_type qual_cdma_device = {
	.owner =		THIS_MODULE,
	.name =			"Qualcomm CDMA adaptor",
	.short_name =		"qual_cdma",
	.id_table =		qual_id_table,
	.num_interrupt_in =	1,
	.num_bulk_in =		1,
	.num_bulk_out =		1,
	.attach =		qual_cdma_attach,
	.shutdown =		qual_cdma_shutdown,
	.open =			qual_cdma_open,
	.close =		qual_cdma_close,
	.write =		qual_cdma_write,
	.write_room =		qual_cdma_write_room,
	.ioctl =		qual_cdma_ioctl,
	.chars_in_buffer =	qual_cdma_chars_in_buffer,
	.throttle =		qual_cdma_rx_throttle,
	.unthrottle =		qual_cdma_unthrottle,
};
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
#include <linux/usb.h>
#include <linux/errno.h>
#include <linux/init.h>

#include "usb-serial.h"

#include "qual_cdma.h"


/* --- module stuff ---*/
static int __init qual_cdma_init (void)
{
	int retval;

	retval = usb_serial_register(&qual_cdma_device);
	if (!retval)
		if ( 0 > ( retval = usb_register(&qual_cdma_driver)))
			usb_serial_deregister(&qual_cdma_device);
	return retval;
}

static void __exit qual_cdma_exit (void)
{
	usb_deregister(&qual_cdma_driver);
	usb_serial_deregister(&qual_cdma_device);
}

module_init(qual_cdma_init);
module_exit(qual_cdma_exit);

/* --- helpers ---*/

static inline int next_urb (int un)
{
	return un == (QUAL_CDMA_URBS - 1) ? 0 : un + 1;
}

static inline int sub_rx_urb (struct qual_cdma_desc* qcd, int number, unsigned int gfp_mask)
{
	int rv;
	struct qual_cdma_rx* rx = &qcd->xmit[number];

	rx->urb->dev = qcd->usb_dev;
	qcd->rx_used_mask |= 1 << number;
	rv = usb_submit_urb(rx->urb, gfp_mask);
	if (unlikely(rv < 0))
		qcd->rx_used_mask &= ~(1 << number);
	return rv;
}

static inline int urb_rx_unused (struct qual_cdma_desc* qcd, int number)
{
	return !(qcd->rx_used_mask & (1 << number));
}

static inline int urb_tx_unused (struct qual_cdma_desc* qcd, int number)
{
	return !(qcd->tx_used_mask & (1 << number));
}

static inline void mark_tx_urb_free (struct qual_cdma_desc* qcd, int number)
{
	qcd->tx_used_mask &= ~(1 << number);
}

static inline void mark_rx_urb_free (struct qual_cdma_desc* qcd, int number)
{
	qcd->rx_used_mask &= ~(1 << number);
}

static inline void mark_tx_urb_used (struct qual_cdma_desc* qcd, int number)
{
	qcd->tx_used_mask |= 1 << number;
}

static inline int first_free_after (struct qual_cdma_desc* qcd, int number)
{
	int i;

	for (i = number + 1; i != number ; i = next_urb(i)) {
		if (urb_rx_unused(qcd, i))
			return i;
	}

	return number;
}

static void free_resources (struct qual_cdma_desc* qual_cdma_desc)
{
	struct qual_cdma_rx* rx;
	struct qual_cdma_tx* tx;
	struct usb_device* usb_dev;
	int i, size;

	usb_dev = qual_cdma_desc->usb_dev;
	size = qual_cdma_desc->wsize;
	for (i = 0; i < QUAL_CDMA_URBS ; i++) {
		tx = &qual_cdma_desc->tmit[i];
		if (tx->urb->transfer_buffer)
			usb_buffer_free(usb_dev, size, tx->urb->transfer_buffer, tx->handle);
		rx = &qual_cdma_desc->xmit[i];
		if (rx->urb->transfer_buffer)
			usb_buffer_free(usb_dev, size, rx->urb->transfer_buffer, rx->handle);

		if (!tx->urb)
			break;
		usb_free_urb(tx->urb);
		if (!rx->urb)
			break;
		usb_free_urb(rx->urb);
	}
	kfree(qual_cdma_desc);
}

static void stop_urbs (struct qual_cdma_desc* qual_cdma_desc)
{
	struct qual_cdma_rx* rx;
	struct qual_cdma_tx* tx;
	int i;

	for (i = 0; i < QUAL_CDMA_URBS ; i++) {
		rx = &qual_cdma_desc->xmit[i];
		tx = &qual_cdma_desc->tmit[i];
		usb_kill_urb(rx->urb);
		usb_kill_urb(tx->urb);
	}
}
	
/* --- serial layer functions --- */
static void qual_cdma_rx_throttle (struct usb_serial_port *port)
{
	unsigned long flags;
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);

	spin_lock_irqsave(&qual_cdma_desc->lock, flags);
	qual_cdma_desc->throttle++;
	spin_unlock_irqrestore(&qual_cdma_desc->lock, flags);
}

static void qual_cdma_unthrottle (struct usb_serial_port *port)
{
	unsigned long flags;
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);

	spin_lock_irqsave(&qual_cdma_desc->lock, flags);
	qual_cdma_desc->throttle--;

	/* check whether we need to resubmit */

	if (!qual_cdma_desc->rx_used_mask)
		sub_rx_urb(qual_cdma_desc, 0, GFP_ATOMIC);
	spin_unlock_irqrestore(&qual_cdma_desc->lock, flags);
}

static int qual_cdma_ioctl (struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg)
{
	return -ENOIOCTLCMD;
}

/* --- interrupt handlers --- */

static void qual_cdma_rx_callback (struct urb *urb, struct pt_regs *regs)
{
	int urb_number;
	struct qual_cdma_desc* qual_cdma_desc;
	struct usb_serial_port *port;
	struct qual_cdma_rx* rx;
	struct tty_struct *tty;
	unsigned char* data;
	int i, len, rv;

	rx = (struct qual_cdma_rx*)urb->context;
	qual_cdma_desc = rx->master;
	urb_number = rx->number;
	port = qual_cdma_desc->port;
	tty = port->tty;
	len = urb->actual_length;
	data = urb->transfer_buffer;

	if (unlikely(urb->status != 0)) {
		/* error handling needed */
		switch (urb->status) {
			case -ECONNRESET:
			case -ENOENT:
			case -ESHUTDOWN:
				return;
			default:
				//dbg("Unknown error %d in %s", urb->status, __FUNCTION__);
				goto drop_but_resubmit;
		}
	}

	spin_lock(&qual_cdma_desc->lock);
	if (unlikely (qual_cdma_desc->throttle != 0)) {
		/* drop data on the floor */
		spin_unlock(&qual_cdma_desc->lock);
		return;
	}
	spin_unlock(&qual_cdma_desc->lock);

	if (likely(tty && len)) {
		for (i = 0; i < len; i++) {
			/* if we insert more than TTY_FLIPBUF_SIZE characters, we drop them. */
			if(unlikely(tty->flip.count >= TTY_FLIPBUF_SIZE)) {
				tty_flip_buffer_push(tty);
			}
			/* this doesn't actually push the data through unless tty->low_latency is set */
			tty_insert_flip_char(tty, data[i], 0);
		}
	  	tty_flip_buffer_push(tty);
	}

drop_but_resubmit:
	spin_lock(&qual_cdma_desc->lock);
	mark_rx_urb_free(qual_cdma_desc, urb_number);

	if (likely (qual_cdma_desc->throttle == 0)) {
		for ( i = first_free_after(qual_cdma_desc, urb_number); urb_rx_unused(qual_cdma_desc, i) ; i = next_urb(i)) {
			rv = sub_rx_urb(qual_cdma_desc, i, GFP_ATOMIC);
			if (unlikely(rv != 0))
				break;
		}
	}

	spin_unlock(&qual_cdma_desc->lock);
}

static void qual_cdma_tx_callback (struct urb *urb, struct pt_regs *regs)
{
	struct qual_cdma_tx* tx;
	struct qual_cdma_desc* qual_cdma_desc;
	struct tty_struct *tty;
	int urb_number;

	tx = (struct qual_cdma_tx*)urb->context;
	qual_cdma_desc = tx->master;
	urb_number = tx->number;
	tty = qual_cdma_desc->port->tty;

	spin_lock(&qual_cdma_desc->lock);

	if (qual_cdma_desc->act_tx == urb_number)
		qual_cdma_desc->act_tx = next_urb(qual_cdma_desc->act_tx);
	mark_tx_urb_free(qual_cdma_desc, urb_number);

	if (!urb->status) {
		usb_serial_port_softint((void *)qual_cdma_desc->port);
		schedule_work(&qual_cdma_desc->port->work);
	}

	spin_unlock(&qual_cdma_desc->lock);
}

/* --- meat of data transfer --- */
static int qual_cdma_open (struct usb_serial_port *port, struct file *filp)
{
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);

	if (port->tty)
		port->tty->low_latency = 1;

	if (sub_rx_urb(qual_cdma_desc, 0, GFP_KERNEL) < 0)
		return -EIO;
	else
		return 0;
}

static void qual_cdma_close(struct usb_serial_port *port, struct file * filp)
{
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);

	stop_urbs(qual_cdma_desc);
}

static int qual_cdma_write (struct usb_serial_port *port, const unsigned char *data, int count)
{
	int written = 0;
	int chunk, cur_urb, retval;
	unsigned long flags;
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);
	struct qual_cdma_tx* tx;
	struct urb *urb;

	retval = 0;
	spin_lock_irqsave(&qual_cdma_desc->lock, flags);
	tx = &qual_cdma_desc->tmit[qual_cdma_desc->act_tx];
	cur_urb = tx->urb;
	while (count && urb_tx_unused(qual_cdma_desc, cur_urb)) {
		chunk = count > qual_cdma_desc->wsize ? qual_cdma_desc->wsize : count;
		tx = &qual_cdma_desc->tmit[cur_urb];
		urb = tx->urb;
		memcpy(urb->transfer_buffer, data + written, chunk);
		urb->dev = qual_cdma_desc->usb_dev;
		urb->transfer_buffer_length = chunk;
		retval = usb_submit_urb(urb, GFP_ATOMIC);
		if (retval < 0)
			break;
		count -= chunk;
		written += chunk;
		mark_tx_urb_used(qual_cdma_desc, cur_urb);
		cur_urb = next_urb(cur_urb);
	}

	spin_unlock_irqrestore(&qual_cdma_desc->lock, flags);
	return written ? written : retval;
}

static int qual_cdma_write_room(struct usb_serial_port *port)
{
	struct qual_cdma_desc* qual_cdma_desc = usb_get_serial_port_data(port);
	unsigned long flags;
	int i,c;

	c = -1;
	spin_lock_irqsave(&qual_cdma_desc->lock, flags);
	for (i = 0; i < QUAL_CDMA_URBS ; i++) {
		if (urb_tx_unused(qual_cdma_desc, i))
			c++;
	}

	spin_unlock_irqrestore(&qual_cdma_desc->lock, flags);
	return c > 0 ? c * qual_cdma_desc->wsize : 0;
}

static int qual_cdma_chars_in_buffer(struct usb_serial_port *port)
{
	return 0;
}

static int qual_cdma_calc_num_ports (struct usb_serial *serial)
{
	return 1;
}

/* --- plug the device --- */

static void qual_cdma_shutdown (struct usb_serial *serial)
{
	struct qual_cdma_desc* qual_cdma_desc;

	qual_cdma_desc = usb_get_serial_port_data(serial->port[0]);
	stop_urbs(qual_cdma_desc);
	free_resources(qual_cdma_desc);
}


static int qual_cdma_attach (struct usb_serial *serial)
{
	struct usb_device *usb_dev = serial->dev;
	struct qual_cdma_desc* qual_cdma_desc;
	struct qual_cdma_tx* tx;
	struct qual_cdma_rx* rx;
	void* p;
	int i,size;

	qual_cdma_desc = kmalloc(sizeof(struct qual_cdma_desc), GFP_KERNEL);
	if (!qual_cdma_desc)
		return -ENOMEM;
	memset(qual_cdma_desc, 0, sizeof(struct qual_cdma_desc));
	spin_lock_init(&qual_cdma_desc->lock);

	size = qual_cdma_desc->wsize = serial->port[0]->bulk_out_size;
	for (i = 0; i < QUAL_CDMA_URBS ; i++) {
		tx = &qual_cdma_desc->tmit[i];
		p = tx->urb = usb_alloc_urb(0, GFP_KERNEL);
		if (!p)
			goto alloc_fail;
		fill_bulk_urb(tx->urb,
				usb_dev,
				usb_sndbulkpipe(usb_dev, serial->port[0]->bulk_out_endpointAddress),
				NULL,
				size,
				qual_cdma_tx_callback,
				&qual_cdma_desc->tmit[i]);
		tx->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;

		rx = &qual_cdma_desc->xmit[i];
		p = rx->urb = usb_alloc_urb(0, GFP_KERNEL);
		if (!p)
			goto alloc_fail;
		fill_bulk_urb(rx->urb,
				usb_dev,
				usb_rcvbulkpipe(usb_dev, serial->port[0]->bulk_in_endpointAddress),
				NULL,
				size,
				qual_cdma_rx_callback,
				&qual_cdma_desc->xmit[i]);
		rx->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;

		p = rx->urb->transfer_buffer = usb_buffer_alloc(usb_dev, size, GFP_KERNEL, &rx->handle);
		if (!p)
			goto alloc_fail;
		p = tx->urb->transfer_buffer = usb_buffer_alloc(usb_dev, size, GFP_KERNEL, &tx->handle);
		if (!p)
			goto alloc_fail;
		rx->master = tx->master = qual_cdma_desc;
	}

	usb_set_serial_port_data(serial->port[0], qual_cdma_desc);
	return 0;

alloc_fail:
	free_resources(qual_cdma_desc);
	return -ENOMEM;
}


#
# Makefile for the USB serial device drivers.
#

# Object file lists.

obj-$(CONFIG_USB_SERIAL)			+= usbserial.o

usbserial-obj-$(CONFIG_USB_SERIAL_CONSOLE)	+= console.o
usbserial-obj-$(CONFIG_USB_EZUSB)		+= ezusb.o

usbserial-objs	:= usb-serial.o generic.o bus.o $(usbserial-obj-y)

obj-$(CONFIG_USB_SERIAL_AIRPRIME)		+= airprime.o
obj-$(CONFIG_USB_SERIAL_BELKIN)			+= belkin_sa.o
obj-$(CONFIG_USB_SERIAL_CP2101)			+= cp2101.o
obj-$(CONFIG_USB_SERIAL_CYBERJACK)		+= cyberjack.o
obj-$(CONFIG_USB_SERIAL_CYPRESS_M8)		+= cypress_m8.o
obj-$(CONFIG_USB_SERIAL_DIGI_ACCELEPORT)	+= digi_acceleport.o
obj-$(CONFIG_USB_SERIAL_EDGEPORT)		+= io_edgeport.o
obj-$(CONFIG_USB_SERIAL_EDGEPORT_TI)		+= io_ti.o
obj-$(CONFIG_USB_SERIAL_EMPEG)			+= empeg.o
obj-$(CONFIG_USB_SERIAL_FTDI_SIO)		+= ftdi_sio.o
obj-$(CONFIG_USB_SERIAL_GARMIN)			+= garmin_gps.o
obj-$(CONFIG_USB_SERIAL_HP4X)			+= hp4x.o
obj-$(CONFIG_USB_SERIAL_IPAQ)			+= ipaq.o
obj-$(CONFIG_USB_SERIAL_IPW)			+= ipw.o
obj-$(CONFIG_USB_SERIAL_IR)			+= ir-usb.o
obj-$(CONFIG_USB_SERIAL_KEYSPAN)		+= keyspan.o
obj-$(CONFIG_USB_SERIAL_KEYSPAN_PDA)		+= keyspan_pda.o
obj-$(CONFIG_USB_SERIAL_KLSI)			+= kl5kusb105.o
obj-$(CONFIG_USB_SERIAL_KOBIL_SCT)		+= kobil_sct.o
obj-$(CONFIG_USB_SERIAL_MCT_U232)		+= mct_u232.o
obj-$(CONFIG_USB_SERIAL_OMNINET)		+= omninet.o
obj-$(CONFIG_USB_SERIAL_OPTION)			+= option.o
obj-$(CONFIG_USB_SERIAL_PL2303)			+= pl2303.o
obj-$(CONFIG_USB_SERIAL_SAFE)			+= safe_serial.o
obj-$(CONFIG_USB_SERIAL_TI)			+= ti_usb_3410_5052.o
obj-$(CONFIG_USB_SERIAL_VISOR)			+= visor.o
obj-$(CONFIG_USB_SERIAL_WHITEHEAT)		+= whiteheat.o
obj-$(CONFIG_USB_SERIAL_XIRCOM)			+= keyspan_pda.o
obj-$(CONFIG_USB_SERIAL_QUAL_CDMA)		+= qual_cdma.o
#
# USB Serial device configuration
#

menu "USB Serial Converter support"
	depends on USB!=n

config USB_SERIAL
	tristate "USB Serial Converter support"
	depends on USB
	---help---
	  Say Y here if you have a USB device that provides normal serial
	  ports, or acts like a serial device, and you want to connect it to
	  your USB bus.

	  Please read <file:Documentation/usb/usb-serial.txt> for more
	  information on the specifics of the different devices that are
	  supported, and on how to use them.

	  To compile this driver as a module, choose M here: the
	  module will be called usbserial.

config USB_SERIAL_CONSOLE
	bool "USB Serial Console device support (EXPERIMENTAL)"
	depends on USB_SERIAL=y && EXPERIMENTAL
	---help---
	  If you say Y here, it will be possible to use a USB to serial
	  converter port as the system console (the system console is the
	  device which receives all kernel messages and warnings and which
	  allows logins in single user mode). This could be useful if some
	  terminal or printer is connected to that serial port.

	  Even if you say Y here, the currently visible virtual console
	  (/dev/tty0) will still be used as the system console by default, but
	  you can alter that using a kernel command line option such as
	  "console=ttyUSB0". (Try "man bootparam" or see the documentation of
	  your boot loader (lilo or loadlin) about how to pass options to the
	  kernel at boot time.)

	  If you don't have a VGA card installed and you say Y here, the
	  kernel will automatically use the first USB to serial converter
	  port, /dev/ttyUSB0, as system console.

	  If unsure, say N.

config USB_SERIAL_GENERIC
	bool "USB Generic Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use the generic USB serial driver.  Please
	  read <file:Documentation/usb/usb-serial.txt> for more information on
	  using this driver.  It is recommended that the "USB Serial converter
	  support" be compiled as a module for this driver to be used
	  properly.

config USB_SERIAL_AIRPRIME
	tristate "USB AirPrime CDMA Wireless Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use a AirPrime CDMA Wireless PC card.

	  To compile this driver as a module, choose M here: the
	  module will be called airprime.

config USB_SERIAL_BELKIN
	tristate "USB Belkin and Peracom Single Port Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use a Belkin USB Serial single port
	  adaptor (F5U103 is one of the model numbers) or the Peracom single
	  port USB to serial adapter.

	  To compile this driver as a module, choose M here: the
	  module will be called belkin_sa.

config USB_SERIAL_WHITEHEAT
	tristate "USB ConnectTech WhiteHEAT Serial Driver"
	depends on USB_SERIAL && BROKEN_ON_SMP
	help
	  Say Y here if you want to use a ConnectTech WhiteHEAT 4 port
	  USB to serial converter device.

	  To compile this driver as a module, choose M here: the
	  module will be called whiteheat.

config USB_SERIAL_DIGI_ACCELEPORT
	tristate "USB Digi International AccelePort USB Serial Driver"
	depends on USB_SERIAL
	---help---
	  Say Y here if you want to use Digi AccelePort USB 2 or 4 devices,
	  2 port (plus parallel port) and 4 port USB serial converters.  The
	  parallel port on the USB 2 appears as a third serial port on Linux.
	  The Digi Acceleport USB 8 is not yet supported by this driver.

	  This driver works under SMP with the usb-uhci driver.  It does not
	  work under SMP with the uhci driver.

	  To compile this driver as a module, choose M here: the
	  module will be called digi_acceleport.

config USB_SERIAL_CP2101
	tristate "USB CP2101 UART Bridge Controller"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to use a CP2101/CP2102 based USB to RS232
	  converter.

	  To compile this driver as a module, choose M here: the
	  module will be called cp2101.

config USB_SERIAL_CYPRESS_M8
	tristate "USB Cypress M8 USB Serial Driver"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to use a device that contains the Cypress
	  USB to Serial microcontroller, such as the DeLorme Earthmate GPS.

		Attempted SMP support... send bug reports!

	  Supported microcontrollers in the CY4601 family are:
		CY7C63741 CY7C63742 CY7C63743 CY7C64013
	
	  To compile this driver as a module, choose M here: the
	  module will be called cypress_m8.

config USB_SERIAL_EMPEG
	tristate "USB Empeg empeg-car Mark I/II Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to connect to your Empeg empeg-car Mark I/II
	  mp3 player via USB.  The driver uses a single ttyUSB{0,1,2,...}
	  device node.  See <file:Documentation/usb/usb-serial.txt> for more
	  tidbits of information.

	  To compile this driver as a module, choose M here: the
	  module will be called empeg.

config USB_SERIAL_FTDI_SIO
	tristate "USB FTDI Single Port Serial Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	---help---
	  Say Y here if you want to use a FTDI SIO single port USB to serial
	  converter device. The implementation I have is called the USC-1000.
	  This driver has also be tested with the 245 and 232 devices.

	  See <http://ftdi-usb-sio.sourceforge.net/> for more
	  information on this driver and the device.

	  To compile this driver as a module, choose M here: the
	  module will be called ftdi_sio.

config USB_SERIAL_VISOR
	tristate "USB Handspring Visor / Palm m50x / Sony Clie Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to connect to your HandSpring Visor, Palm
	  m500 or m505 through its USB docking station. See
	  <http://usbvisor.sourceforge.net/> for more information on using this
	  driver.

	  To compile this driver as a module, choose M here: the
	  module will be called visor.

config USB_SERIAL_IPAQ
	tristate "USB PocketPC PDA Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to connect to your Compaq iPAQ, HP Jornada
	  or any other PDA running Windows CE 3.0 or PocketPC 2002
	  using a USB cradle/cable. For information on using the driver,
	  read <file:Documentation/usb/usb-serial.txt>.

	  To compile this driver as a module, choose M here: the
	  module will be called ipaq.

config USB_SERIAL_IR
	tristate "USB IR Dongle Serial Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to enable simple serial support for USB IrDA
	  devices.  This is useful if you do not want to use the full IrDA
	  stack.

	  To compile this driver as a module, choose M here: the
	  module will be called ir-usb.

config USB_SERIAL_EDGEPORT
	tristate "USB Inside Out Edgeport Serial Driver"
	depends on USB_SERIAL
	---help---
	  Say Y here if you want to use any of the following devices from
	  Inside Out Networks (Digi):
	  Edgeport/4
	  Rapidport/4
	  Edgeport/4t
	  Edgeport/2
	  Edgeport/4i
	  Edgeport/2i
	  Edgeport/421
	  Edgeport/21
	  Edgeport/8
	  Edgeport/8 Dual
	  Edgeport/2D8
	  Edgeport/4D8
	  Edgeport/8i
	  Edgeport/2 DIN
	  Edgeport/4 DIN
	  Edgeport/16 Dual

	  To compile this driver as a module, choose M here: the
	  module will be called io_edgeport.

config USB_SERIAL_EDGEPORT_TI
	tristate "USB Inside Out Edgeport Serial Driver (TI devices)"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use any of the devices from Inside Out
	  Networks (Digi) that are not supported by the io_edgeport driver.
	  This includes the Edgeport/1 device.

	  To compile this driver as a module, choose M here: the
	  module will be called io_ti.

config USB_SERIAL_GARMIN
       tristate "USB Garmin GPS driver"
       depends on USB_SERIAL
       help
         Say Y here if you want to connect to your Garmin GPS.
         Should work with most Garmin GPS devices which have a native USB port.

         See <http://sourceforge.net/projects/garmin-gps> for the latest
         version of the driver.

         To compile this driver as a module, choose M here: the
         module will be called garmin_gps.

config USB_SERIAL_IPW
        tristate "USB IPWireless (3G UMTS TDD) Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to use a IPWireless USB modem such as
	  the ones supplied by Axity3G/Sentech South Africa.

	  To compile this driver as a module, choose M here: the
	  module will be called ipw.

config USB_SERIAL_KEYSPAN_PDA
	tristate "USB Keyspan PDA Single Port Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use a Keyspan PDA single port USB to
	  serial converter device.  This driver makes use of firmware
	  developed from scratch by Brian Warner.

	  To compile this driver as a module, choose M here: the
	  module will be called keyspan_pda.

config USB_SERIAL_KEYSPAN
	tristate "USB Keyspan USA-xxx Serial Driver"
	depends on USB_SERIAL
	---help---
	  Say Y here if you want to use Keyspan USB to serial converter
	  devices.  This driver makes use of Keyspan's official firmware
	  and was developed with their support.  You must also include
	  firmware to support your particular device(s).

	  See <http://misc.nu/hugh/keyspan.html> for more information.

	  To compile this driver as a module, choose M here: the
	  module will be called keyspan.

config USB_SERIAL_KEYSPAN_MPR
	bool "USB Keyspan MPR Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the Keyspan MPR converter.

config USB_SERIAL_KEYSPAN_USA28
	bool "USB Keyspan USA-28 Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-28 converter.

config USB_SERIAL_KEYSPAN_USA28X
	bool "USB Keyspan USA-28X Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-28X converter.
	  Be sure you have a USA-28X, there are also 28XA and 28XB
	  models, the label underneath has the actual part number.

config USB_SERIAL_KEYSPAN_USA28XA
	bool "USB Keyspan USA-28XA Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-28XA converter.
	  Be sure you have a USA-28XA, there are also 28X and 28XB
	  models, the label underneath has the actual part number.

config USB_SERIAL_KEYSPAN_USA28XB
	bool "USB Keyspan USA-28XB Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-28XB converter.
	  Be sure you have a USA-28XB, there are also 28X and 28XA
	  models, the label underneath has the actual part number.

config USB_SERIAL_KEYSPAN_USA19
	bool "USB Keyspan USA-19 Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-19 converter.

config USB_SERIAL_KEYSPAN_USA18X
	bool "USB Keyspan USA-18X Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-18X converter.

config USB_SERIAL_KEYSPAN_USA19W
	bool "USB Keyspan USA-19W Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-19W converter.

config USB_SERIAL_KEYSPAN_USA19QW
	bool "USB Keyspan USA-19QW Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-19QW converter.

config USB_SERIAL_KEYSPAN_USA19QI
	bool "USB Keyspan USA-19QI Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-19QI converter.

config USB_SERIAL_KEYSPAN_USA49W
	bool "USB Keyspan USA-49W Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-49W converter.

config USB_SERIAL_KEYSPAN_USA49WLC
	bool "USB Keyspan USA-49WLC Firmware"
	depends on USB_SERIAL_KEYSPAN
	help
	  Say Y here to include firmware for the USA-49WLC converter.

config USB_SERIAL_KLSI
	tristate "USB KL5KUSB105 (Palmconnect) Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	---help---
	  Say Y here if you want to use a KL5KUSB105 - based single port
	  serial adapter. The most widely known -- and currently the only
	  tested -- device in this category is the PalmConnect USB Serial
	  adapter sold by Palm Inc. for use with their Palm III and Palm V
	  series PDAs.

	  Please read <file:Documentation/usb/usb-serial.txt> for more
	  information.

	  To compile this driver as a module, choose M here: the
	  module will be called kl5kusb105.

config USB_SERIAL_KOBIL_SCT
        tristate "USB KOBIL chipcard reader"
        depends on USB_SERIAL
        ---help---
          Say Y here if you want to use one of the following KOBIL USB chipcard
          readers:

            - USB TWIN
            - KAAN Standard Plus
            - KAAN SIM
            - SecOVID Reader Plus
            - B1 Professional
            - KAAN Professional

          Note that you need a current CT-API.
          To compile this driver as a module, choose M here: the
	  module will be called kobil_sct.

config USB_SERIAL_MCT_U232
	tristate "USB MCT Single Port Serial Driver"
	depends on USB_SERIAL
	---help---
	  Say Y here if you want to use a USB Serial single port adapter from
	  Magic Control Technology Corp. (U232 is one of the model numbers).

	  This driver also works with Sitecom U232-P25 and D-Link DU-H3SP USB
	  BAY devices.

	  To compile this driver as a module, choose M here: the
	  module will be called mct_u232.

config USB_SERIAL_PL2303
	tristate "USB Prolific 2303 Single Port Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use the PL2303 USB Serial single port
	  adapter from Prolific.

	  To compile this driver as a module, choose M here: the
	  module will be called pl2303.

config USB_SERIAL_HP4X
        tristate "USB HP4x Calculators support"
        depends on USB_SERIAL
        help
          Say Y here if you want to use an Hewlett-Packard 4x Calculator.

          To compile this driver as a module, choose M here: the
          module will be called hp4x.

config USB_SERIAL_SAFE
	tristate "USB Safe Serial (Encapsulated) Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL

config USB_SERIAL_SAFE_PADDED
	bool "USB Secure Encapsulated Driver - Padded"
	depends on USB_SERIAL_SAFE

config USB_SERIAL_TI
	tristate "USB TI 3410/5052 Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use the TI USB 3410 or 5052
	  serial devices.

	  To compile this driver as a module, choose M here: the
	  module will be called ti_usb_3410_5052.

config USB_SERIAL_CYBERJACK
	tristate "USB REINER SCT cyberJack pinpad/e-com chipcard reader (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	---help---
	  Say Y here if you want to use a cyberJack pinpad/e-com USB chipcard
	  reader. This is an interface to ISO 7816 compatible contactbased
	  chipcards, e.g. GSM SIMs.

	  To compile this driver as a module, choose M here: the
	  module will be called cyberjack.

	  If unsure, say N.

config USB_SERIAL_XIRCOM
	tristate "USB Xircom / Entregra Single Port Serial Driver"
	depends on USB_SERIAL
	help
	  Say Y here if you want to use a Xircom or Entregra single port USB to
	  serial converter device.  This driver makes use of firmware
	  developed from scratch by Brian Warner.

	  To compile this driver as a module, choose M here: the
	  module will be called keyspan_pda.

config USB_SERIAL_OPTION
	tristate "USB Option PCMCIA serial driver"
	depends on USB_SERIAL && USB_OHCI_HCD && PCCARD
	help
	  Say Y here if you want to use an Option card. This is a
	  GSM card, controlled by three serial ports which are connected
	  via an OHCI adapter located on a PC card.

	  To compile this driver as a module, choose M here: the
	  module will be called option.

config USB_SERIAL_OMNINET
	tristate "USB ZyXEL omni.net LCD Plus Driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to use a ZyXEL omni.net LCD ISDN TA.

	  To compile this driver as a module, choose M here: the
	  module will be called omninet.

config USB_SERIAL_QUAL_CDMA
	tristate "USB Qualcomm CDMA modem driver (EXPERIMENTAL)"
	depends on USB_SERIAL && EXPERIMENTAL
	help
	  Say Y here if you want to use a Qualcomm CDMA modem.

	  To compile this driver as a module, choose M here: the
	  module will be called qual_cdma.

config USB_EZUSB
	bool
	depends on USB_SERIAL_KEYSPAN_PDA || USB_SERIAL_XIRCOM || USB_SERIAL_KEYSPAN || USB_SERIAL_WHITEHEAT
	default y

endmenu

Reply via email to