2 * This header declares the utility functions used by "Gadget Zero", plus
3 * interfaces to its two single-configuration function drivers.
9 struct usb_zero_options
{
11 unsigned isoc_interval
;
12 unsigned isoc_maxpacket
;
14 unsigned isoc_maxburst
;
20 struct usb_function_instance func_inst
;
22 unsigned isoc_interval
;
23 unsigned isoc_maxpacket
;
25 unsigned isoc_maxburst
;
30 struct usb_function_instance func_inst
;
35 void lb_modexit(void);
38 /* common utilities */
39 struct usb_request
*alloc_ep_req(struct usb_ep
*ep
, int len
);
40 void free_ep_req(struct usb_ep
*ep
, struct usb_request
*req
);
41 void disable_endpoints(struct usb_composite_dev
*cdev
,
42 struct usb_ep
*in
, struct usb_ep
*out
,
43 struct usb_ep
*iso_in
, struct usb_ep
*iso_out
);
45 #endif /* __G_ZERO_H */