Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[deliverable/linux.git] / drivers / usb / gadget / g_zero.h
CommitLineData
a400cadc
DB
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 */
e5760fda 12extern unsigned buflen;
a400cadc
DB
13extern const struct usb_descriptor_header *otg_desc[];
14
15/* common utilities */
b4036ccd 16struct usb_request *alloc_ep_req(struct usb_ep *ep, int len);
a400cadc
DB
17void free_ep_req(struct usb_ep *ep, struct usb_request *req);
18void disable_endpoints(struct usb_composite_dev *cdev,
b4036ccd
PZ
19 struct usb_ep *in, struct usb_ep *out,
20 struct usb_ep *iso_in, struct usb_ep *iso_out);
a400cadc
DB
21
22/* configuration-specific linkup */
ab943a2e
DB
23int sourcesink_add(struct usb_composite_dev *cdev, bool autoresume);
24int loopback_add(struct usb_composite_dev *cdev, bool autoresume);
a400cadc
DB
25
26#endif /* __G_ZERO_H */
This page took 0.423925 seconds and 5 git commands to generate.