diff options
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/serial.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 2a3283761600..a4c99ea390e7 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -277,6 +277,9 @@ struct usb_serial_driver { | |||
277 | void (*write_bulk_callback)(struct urb *urb); | 277 | void (*write_bulk_callback)(struct urb *urb); |
278 | /* Called by the generic read bulk callback */ | 278 | /* Called by the generic read bulk callback */ |
279 | void (*process_read_urb)(struct urb *urb); | 279 | void (*process_read_urb)(struct urb *urb); |
280 | /* Called by the generic write implementation */ | ||
281 | int (*prepare_write_buffer)(struct usb_serial_port *port, | ||
282 | void **dest, size_t size, const void *src, size_t count); | ||
280 | }; | 283 | }; |
281 | #define to_usb_serial_driver(d) \ | 284 | #define to_usb_serial_driver(d) \ |
282 | container_of(d, struct usb_serial_driver, driver) | 285 | container_of(d, struct usb_serial_driver, driver) |
@@ -329,6 +332,8 @@ extern void usb_serial_generic_deregister(void); | |||
329 | extern int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, | 332 | extern int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, |
330 | gfp_t mem_flags); | 333 | gfp_t mem_flags); |
331 | extern void usb_serial_generic_process_read_urb(struct urb *urb); | 334 | extern void usb_serial_generic_process_read_urb(struct urb *urb); |
335 | extern int usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, | ||
336 | void **dest, size_t size, const void *src, size_t count); | ||
332 | extern int usb_serial_handle_sysrq_char(struct tty_struct *tty, | 337 | extern int usb_serial_handle_sysrq_char(struct tty_struct *tty, |
333 | struct usb_serial_port *port, | 338 | struct usb_serial_port *port, |
334 | unsigned int ch); | 339 | unsigned int ch); |