STRUCT USB_EP

Section: Kernel Mode Gadget API (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

struct_usb_ep - device side representation of USB endpoint  

SYNOPSIS

struct usb_ep {
  void * driver_data;
  const char * name;
  const struct usb_ep_ops * ops;
  struct list_head ep_list;
  unsigned maxpacket:16;
};  
 

MEMBERS

driver_data

for use by the gadget driver. all other fields are read-only to gadget drivers.

name

identifier for the endpoint, such as lqep-arq or lqep9in-bulkrq

ops

Function pointers used to access hardware-specific operations.

ep_list

the gadget's ep_list holds all of its endpoints

maxpacket

The maximum packet size used on this endpoint. The initial value can sometimes be reduced (hardware allowing), according to the endpoint descriptor used to configure the endpoint.
 

DESCRIPTION

the bus controller driver lists all the general purpose endpoints in gadget->ep_list. the control endpoint (gadget->ep0) is not in that list, and is accessed only in response to a driver setup callback.  

AUTHOR

David Brownell <dbrownell@users.sourceforge.net>

Author.
 

COPYRIGHT