David Brownell | a400cad | 2008-06-19 17:55:23 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * This header declares the utility functions used by "Gadget Zero", plus |
| 3 | * interfaces to its two single-configuration function drivers. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __G_ZERO_H |
| 7 | #define __G_ZERO_H |
| 8 | |
| 9 | #include <linux/usb/composite.h> |
| 10 | |
| 11 | /* global state */ |
| 12 | extern const struct usb_descriptor_header *otg_desc[]; |
| 13 | |
| 14 | /* common utilities */ |
| 15 | struct usb_request *alloc_ep_req(struct usb_ep *ep); |
| 16 | void free_ep_req(struct usb_ep *ep, struct usb_request *req); |
| 17 | void disable_endpoints(struct usb_composite_dev *cdev, |
| 18 | struct usb_ep *in, struct usb_ep *out); |
| 19 | |
| 20 | /* configuration-specific linkup */ |
| 21 | int sourcesink_add(struct usb_composite_dev *cdev); |
| 22 | |
| 23 | #endif /* __G_ZERO_H */ |