2 * This header declares the utility functions used by "Gadget Zero", plus
3 * interfaces to its two single-configuration function drivers.
9 #define GZERO_BULK_BUFLEN 4096
11 #define GZERO_ISOC_INTERVAL 4
12 #define GZERO_ISOC_MAXPACKET 1024
13 #define GZERO_SS_BULK_QLEN 1
14 #define GZERO_SS_ISO_QLEN 8
16 struct usb_zero_options
{
18 unsigned isoc_interval
;
19 unsigned isoc_maxpacket
;
21 unsigned isoc_maxburst
;
24 unsigned ss_bulk_qlen
;
29 struct usb_function_instance func_inst
;
31 unsigned isoc_interval
;
32 unsigned isoc_maxpacket
;
34 unsigned isoc_maxburst
;
40 * Read/write access to configfs attributes is handled by configfs.
42 * This is to protect the data from concurrent access by read/write
43 * and create symlink/remove symlink.
50 struct usb_function_instance func_inst
;
55 * Read/write access to configfs attributes is handled by configfs.
57 * This is to protect the data from concurrent access by read/write
58 * and create symlink/remove symlink.
64 void lb_modexit(void);
67 /* common utilities */
68 void disable_endpoints(struct usb_composite_dev
*cdev
,
69 struct usb_ep
*in
, struct usb_ep
*out
,
70 struct usb_ep
*iso_in
, struct usb_ep
*iso_out
);
72 #endif /* __G_ZERO_H */