Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | dwc3_gadget_ep_cmd_params |
Functions | |
void | dwc3_gadget_giveback (struct dwc3_ep *dep, struct dwc3_request *req, int status) |
int | dwc3_gadget_set_test_mode (struct dwc3 *dwc, int mode) |
int | dwc3_gadget_set_link_state (struct dwc3 *dwc, enum dwc3_link_state state) |
void | dwc3_ep0_interrupt (struct dwc3 *dwc, const struct dwc3_event_depevt *event) |
void | dwc3_ep0_out_start (struct dwc3 *dwc) |
int | dwc3_gadget_ep0_set_halt (struct usb_ep *ep, int value) |
int | dwc3_gadget_ep0_queue (struct usb_ep *ep, struct usb_request *request, gfp_t gfp_flags) |
int | __dwc3_gadget_ep_set_halt (struct dwc3_ep *dep, int value) |
int | dwc3_send_gadget_ep_cmd (struct dwc3 *dwc, unsigned ep, unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) |
int | dwc3_send_gadget_generic_command (struct dwc3 *dwc, int cmd, u32 param) |
#define gadget_to_dwc | ( | g | ) | (container_of(g, struct dwc3, gadget)) |
#define to_dwc3_ep | ( | ep | ) | (container_of(ep, struct dwc3_ep, endpoint)) |
#define to_dwc3_request | ( | r | ) | (container_of(r, struct dwc3_request, request)) |
int dwc3_gadget_set_link_state | ( | struct dwc3 * | dwc, |
enum dwc3_link_state | state | ||
) |
gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link
Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
Authors: Felipe Balbi balbi, Sebastian Andrzej Siewior @ti. combigea sy@l inutr onix .de
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
ALTERNATIVELY, this software may be distributed under the terms of the GNU General Public License ("GPL") version 2, as published by the Free Software Foundation.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. dwc3_gadget_set_test_mode - Enables USB2 Test Modes : pointer to our context structure : the mode to set (J, K SE0 NAK, Force Enable)
Caller should take care of locking. This function will return 0 on success or -EINVAL if wrong Test Selector is passed
int dwc3_send_gadget_ep_cmd | ( | struct dwc3 * | dwc, |
unsigned | ep, | ||
unsigned | cmd, | ||
struct dwc3_gadget_ep_cmd_params * | params | ||
) |