mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
f_loopback should only include the bare function but it also includes the config descriptor. This patch moves the config descriptor into zero.c, the only user of this function. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
22 lines
636 B
C
22 lines
636 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);
|
|
|
|
#endif /* __G_ZERO_H */
|