Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb/bulk-streams.txt: convert to ReST and add to driver-api book

This document describe some USB core functions. Add it to the
driver-api book.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
401c7be2 79e0c2e6

+10 -4
+1
Documentation/driver-api/usb/index.rst
··· 7 7 usb 8 8 gadget 9 9 anchors 10 + bulk-streams 10 11 writing_usb_driver 11 12 writing_musb_glue_layer 12 13
+9 -4
Documentation/usb/bulk-streams.txt Documentation/driver-api/usb/bulk-streams.rst
··· 1 + USB bulk streams 2 + ~~~~~~~~~~~~~~~~ 3 + 1 4 Background 2 5 ========== 3 6 ··· 28 25 Driver implications 29 26 =================== 30 27 31 - int usb_alloc_streams(struct usb_interface *interface, 28 + :: 29 + 30 + int usb_alloc_streams(struct usb_interface *interface, 32 31 struct usb_host_endpoint **eps, unsigned int num_eps, 33 32 unsigned int num_streams, gfp_t mem_flags); 34 33 ··· 58 53 59 54 60 55 Picking new Stream IDs to use 61 - ============================ 56 + ============================= 62 57 63 58 Stream ID 0 is reserved, and should not be used to communicate with devices. If 64 59 usb_alloc_streams() returns with a value of N, you may use streams 1 though N. ··· 73 68 ======== 74 69 75 70 If a driver wishes to stop using streams to communicate with the device, it 76 - should call 71 + should call:: 77 72 78 - void usb_free_streams(struct usb_interface *interface, 73 + void usb_free_streams(struct usb_interface *interface, 79 74 struct usb_host_endpoint **eps, unsigned int num_eps, 80 75 gfp_t mem_flags); 81 76