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
14 struct usb_zero_options {
16 unsigned isoc_interval;
17 unsigned isoc_maxpacket;
19 unsigned isoc_maxburst;
25 struct usb_function_instance func_inst;
27 unsigned isoc_interval;
28 unsigned isoc_maxpacket;
30 unsigned isoc_maxburst;
34 * Read/write access to configfs attributes is handled by configfs.
36 * This is to protect the data from concurrent access by read/write
37 * and create symlink/remove symlink.
44 struct usb_function_instance func_inst;
49 * Read/write access to configfs attributes is handled by configfs.
51 * This is to protect the data from concurrent access by read/write
52 * and create symlink/remove symlink.
58 void lb_modexit(void);
61 /* common utilities */
62 void free_ep_req(struct usb_ep *ep, struct usb_request *req);
63 void disable_endpoints(struct usb_composite_dev *cdev,
64 struct usb_ep *in, struct usb_ep *out,
65 struct usb_ep *iso_in, struct usb_ep *iso_out);
67 #endif /* __G_ZERO_H */