Files
kernel-tenderloin-3.0/include/linux
Johan Hovold eaa3bcb06a USB: serial: generalise write buffer preparation
Generalise write buffer preparation.

This allows for drivers to manipulate (e.g. add headers) to bulk out
data before it is sent.

This adds a new function pointer to usb_serial_driver:

int (*prepare_write_buffer)(struct usb_serial_port *port,
		void **dest, size_t size, const void *src, size_t count);

The function is generic and can be used with either kfifo-based or
multi-urb writes:

If *dest is NULL the implementation should allocate dest.
If src is NULL the implementation should use the port write fifo.

If not set, a generic implementation is used which simply uses memcpy or
kfifo_out.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-20 13:21:35 -07:00
..
2010-03-12 15:53:10 -08:00
2010-04-25 08:54:42 +02:00
2010-03-12 15:52:32 -08:00
2010-04-23 10:39:48 -07:00
2010-03-16 08:55:32 +01:00
2010-03-07 22:17:09 +01:00
2010-03-02 12:23:42 +01:00
2010-04-01 01:31:13 -07:00
2010-03-12 15:52:40 -08:00
2010-03-12 15:52:36 -08:00
2010-03-12 15:52:40 -08:00
2010-03-12 15:53:10 -08:00
2010-04-06 10:55:33 -04:00
2010-03-12 15:53:10 -08:00
2010-03-12 15:52:38 -08:00
2010-03-12 15:52:28 -08:00
2010-04-07 08:38:04 -07:00
2010-04-12 07:55:15 -04:00
2010-03-12 15:53:11 -08:00
2010-03-05 00:20:31 +01:00
2010-03-12 15:52:44 -08:00
2010-03-02 14:28:49 -05:00
2010-03-12 15:53:10 -08:00
2010-03-12 15:52:43 -08:00
2010-03-12 15:52:44 -08:00
2010-03-12 15:52:36 -08:00
2010-03-12 10:03:42 +01:00