mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 23:46:09 +07:00
b4036ccdd2
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>
27 lines
809 B
C
27 lines
809 B
C
/*
|
|
* This header declares the utility functions used by "Gadget Zero", plus
|
|
* interfaces to its two single-configuration function drivers.
|
|
*/
|
|
|
|
#ifndef __G_ZERO_H
|
|
#define __G_ZERO_H
|
|
|
|
#include <linux/usb/composite.h>
|
|
|
|
/* global state */
|
|
extern unsigned buflen;
|
|
extern const struct usb_descriptor_header *otg_desc[];
|
|
|
|
/* common utilities */
|
|
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 *iso_in, struct usb_ep *iso_out);
|
|
|
|
/* configuration-specific linkup */
|
|
int sourcesink_add(struct usb_composite_dev *cdev, bool autoresume);
|
|
int loopback_add(struct usb_composite_dev *cdev, bool autoresume);
|
|
|
|
#endif /* __G_ZERO_H */
|