diff options
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | 2012-04-16 14:19:06 -0700 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-05-04 15:53:08 +0300 |
commit | b4036ccdd2ce5ec0c4f29b91312dd3cf19fc9152 (patch) | |
tree | b48719669536a489f842b1a8d55fd73a69055066 /drivers/usb/gadget/g_zero.h | |
parent | 20c5e74c7b47cefaf2cd0f84bdb4830b66452384 (diff) | |
download | op-kernel-dev-b4036ccdd2ce5ec0c4f29b91312dd3cf19fc9152.zip op-kernel-dev-b4036ccdd2ce5ec0c4f29b91312dd3cf19fc9152.tar.gz |
usb: gadget: add isochronous support to gadget zero
Add two isochronous endpoints to the gadget zero source/sink
function. They are enabled by selecting alternate interface 1, so
by default they are not enabled. Module parameters for setting all
the isoc endpoint characteristics are also provided.
Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/g_zero.h')
-rw-r--r-- | drivers/usb/gadget/g_zero.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/gadget/g_zero.h b/drivers/usb/gadget/g_zero.h index e84b3c4..71ca193 100644 --- a/drivers/usb/gadget/g_zero.h +++ b/drivers/usb/gadget/g_zero.h @@ -13,10 +13,11 @@ extern unsigned buflen; extern const struct usb_descriptor_header *otg_desc[]; /* common utilities */ -struct usb_request *alloc_ep_req(struct usb_ep *ep); +struct usb_request *alloc_ep_req(struct usb_ep *ep, int len); void free_ep_req(struct usb_ep *ep, struct usb_request *req); void disable_endpoints(struct usb_composite_dev *cdev, - struct usb_ep *in, struct usb_ep *out); + struct usb_ep *in, struct usb_ep *out, + struct usb_ep *iso_in, struct usb_ep *iso_out); /* configuration-specific linkup */ int sourcesink_add(struct usb_composite_dev *cdev, bool autoresume); |