Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
iudma_ch Struct Reference

Data Fields

unsigned int ch_idx
 
int ep_num
 
bool enabled
 
int max_pkt
 
bool is_tx
 
struct bcm63xx_epbep
 
struct bcm63xx_udcudc
 
struct bcm_enet_descread_bd
 
struct bcm_enet_descwrite_bd
 
struct bcm_enet_descend_bd
 
int n_bds_used
 
struct bcm_enet_descbd_ring
 
dma_addr_t bd_ring_dma
 
unsigned int n_bds
 

Detailed Description

struct iudma_ch - Represents the current state of a single IUDMA channel. : IUDMA channel index (0 to BCM63XX_NUM_IUDMA-1). : USB endpoint number. -1 for ep0 RX. : Whether bcm63xx_ep_enable() has been called. : "Chunk size" on the USB interface. Based on interface speed. : true for TX, false for RX. : Pointer to the associated endpoint. NULL for ep0 RX. : Reference to the device controller. : Next buffer descriptor to reap from the hardware. : Next BD available for a new packet. : Points to the final BD in the ring. : Number of BD entries currently occupied. : Base pointer to the BD ring. : Physical (DMA) address of bd_ring. : Total number of BDs in the ring.

ep0 has two IUDMA channels (IUDMA_EP0_RXCHAN and IUDMA_EP0_TXCHAN), as it is bidirectional. The "struct usb_ep" associated with ep0 is for TX (IN) only.

Each bulk/intr endpoint has a single IUDMA channel and a single struct usb_ep.

Definition at line 195 of file bcm63xx_udc.c.

Field Documentation

Definition at line 209 of file bcm63xx_udc.c.

dma_addr_t bd_ring_dma

Definition at line 210 of file bcm63xx_udc.c.

Definition at line 201 of file bcm63xx_udc.c.

unsigned int ch_idx

Definition at line 196 of file bcm63xx_udc.c.

bool enabled

Definition at line 198 of file bcm63xx_udc.c.

Definition at line 206 of file bcm63xx_udc.c.

int ep_num

Definition at line 197 of file bcm63xx_udc.c.

bool is_tx

Definition at line 200 of file bcm63xx_udc.c.

int max_pkt

Definition at line 199 of file bcm63xx_udc.c.

unsigned int n_bds

Definition at line 211 of file bcm63xx_udc.c.

int n_bds_used

Definition at line 207 of file bcm63xx_udc.c.

Definition at line 204 of file bcm63xx_udc.c.

Definition at line 202 of file bcm63xx_udc.c.

struct bcm_enet_desc* write_bd

Definition at line 205 of file bcm63xx_udc.c.


The documentation for this struct was generated from the following file: