linux/drivers/usb/mtu3/mtu3_gadget.c

// SPDX-License-Identifier: GPL-2.0
/*
 * mtu3_gadget.c - MediaTek usb3 DRD peripheral support
 *
 * Copyright (C) 2016 MediaTek Inc.
 *
 * Author: Chunfeng Yun <[email protected]>
 */

#include "mtu3.h"
#include "mtu3_trace.h"

void mtu3_req_complete(struct mtu3_ep *mep,
		     struct usb_request *req, int status)
__releases(mep->mtu->lock)
__acquires(mep->mtu->lock)
{}

static void nuke(struct mtu3_ep *mep, const int status)
{}

static int mtu3_ep_enable(struct mtu3_ep *mep)
{}

static int mtu3_ep_disable(struct mtu3_ep *mep)
{}

static int mtu3_gadget_ep_enable(struct usb_ep *ep,
		const struct usb_endpoint_descriptor *desc)
{}

static int mtu3_gadget_ep_disable(struct usb_ep *ep)
{}

struct usb_request *mtu3_alloc_request(struct usb_ep *ep, gfp_t gfp_flags)
{}

void mtu3_free_request(struct usb_ep *ep, struct usb_request *req)
{}

static int mtu3_gadget_queue(struct usb_ep *ep,
		struct usb_request *req, gfp_t gfp_flags)
{}

static int mtu3_gadget_dequeue(struct usb_ep *ep, struct usb_request *req)
{}

/*
 * Set or clear the halt bit of an EP.
 * A halted EP won't TX/RX any data but will queue requests.
 */
static int mtu3_gadget_ep_set_halt(struct usb_ep *ep, int value)
{}

/* Sets the halt feature with the clear requests ignored */
static int mtu3_gadget_ep_set_wedge(struct usb_ep *ep)
{}

static const struct usb_ep_ops mtu3_ep_ops =;

static int mtu3_gadget_get_frame(struct usb_gadget *gadget)
{}

static void function_wake_notif(struct mtu3 *mtu, u8 intf)
{}

static int mtu3_gadget_wakeup(struct usb_gadget *gadget)
{}

static int mtu3_gadget_set_self_powered(struct usb_gadget *gadget,
		int is_selfpowered)
{}

static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on)
{}

static int mtu3_gadget_start(struct usb_gadget *gadget,
		struct usb_gadget_driver *driver)
{}

static void stop_activity(struct mtu3 *mtu)
{}

static int mtu3_gadget_stop(struct usb_gadget *g)
{}

static void
mtu3_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed speed)
{}

static void mtu3_gadget_async_callbacks(struct usb_gadget *g, bool enable)
{}

static const struct usb_gadget_ops mtu3_gadget_ops =;

static void mtu3_state_reset(struct mtu3 *mtu)
{}

static void init_hw_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
		u32 epnum, u32 is_in)
{}

static void mtu3_gadget_init_eps(struct mtu3 *mtu)
{}

int mtu3_gadget_setup(struct mtu3 *mtu)
{}

void mtu3_gadget_cleanup(struct mtu3 *mtu)
{}

void mtu3_gadget_resume(struct mtu3 *mtu)
{}

/* called when SOF packets stop for 3+ msec or enters U3 */
void mtu3_gadget_suspend(struct mtu3 *mtu)
{}

/* called when VBUS drops below session threshold, and in other cases */
void mtu3_gadget_disconnect(struct mtu3 *mtu)
{}

void mtu3_gadget_reset(struct mtu3 *mtu)
{}