Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
xway_dma.h File Reference

Go to the source code of this file.

Data Structures

struct  ltq_dma_desc
 
struct  ltq_dma_channel
 

Macros

#define LTQ_DESC_SIZE   0x08 /* each descriptor is 64bit */
 
#define LTQ_DESC_NUM   0x40 /* 64 descriptors / channel */
 
#define LTQ_DMA_OWN   BIT(31) /* owner bit */
 
#define LTQ_DMA_C   BIT(30) /* complete bit */
 
#define LTQ_DMA_SOP   BIT(29) /* start of packet */
 
#define LTQ_DMA_EOP   BIT(28) /* end of packet */
 
#define LTQ_DMA_TX_OFFSET(x)   ((x & 0x1f) << 23) /* data bytes offset */
 
#define LTQ_DMA_RX_OFFSET(x)   ((x & 0x7) << 23) /* data bytes offset */
 
#define LTQ_DMA_SIZE_MASK   (0xffff) /* the size field is 16 bit */
 

Enumerations

enum  { DMA_PORT_ETOP = 0, DMA_PORT_DEU }
 

Functions

void ltq_dma_enable_irq (struct ltq_dma_channel *ch)
 
void ltq_dma_disable_irq (struct ltq_dma_channel *ch)
 
void ltq_dma_ack_irq (struct ltq_dma_channel *ch)
 
void ltq_dma_open (struct ltq_dma_channel *ch)
 
void ltq_dma_close (struct ltq_dma_channel *ch)
 
void ltq_dma_alloc_tx (struct ltq_dma_channel *ch)
 
void ltq_dma_alloc_rx (struct ltq_dma_channel *ch)
 
void ltq_dma_free (struct ltq_dma_channel *ch)
 
void ltq_dma_init_port (int p)
 

Macro Definition Documentation

#define LTQ_DESC_NUM   0x40 /* 64 descriptors / channel */

Definition at line 22 of file xway_dma.h.

#define LTQ_DESC_SIZE   0x08 /* each descriptor is 64bit */

Definition at line 21 of file xway_dma.h.

#define LTQ_DMA_C   BIT(30) /* complete bit */

Definition at line 25 of file xway_dma.h.

#define LTQ_DMA_EOP   BIT(28) /* end of packet */

Definition at line 27 of file xway_dma.h.

#define LTQ_DMA_OWN   BIT(31) /* owner bit */

Definition at line 24 of file xway_dma.h.

#define LTQ_DMA_RX_OFFSET (   x)    ((x & 0x7) << 23) /* data bytes offset */

Definition at line 29 of file xway_dma.h.

#define LTQ_DMA_SIZE_MASK   (0xffff) /* the size field is 16 bit */

Definition at line 30 of file xway_dma.h.

#define LTQ_DMA_SOP   BIT(29) /* start of packet */

Definition at line 26 of file xway_dma.h.

#define LTQ_DMA_TX_OFFSET (   x)    ((x & 0x1f) << 23) /* data bytes offset */

Definition at line 28 of file xway_dma.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
DMA_PORT_ETOP 
DMA_PORT_DEU 

Definition at line 45 of file xway_dma.h.

Function Documentation

void ltq_dma_ack_irq ( struct ltq_dma_channel ch)

Definition at line 86 of file dma.c.

void ltq_dma_alloc_rx ( struct ltq_dma_channel ch)

Definition at line 162 of file dma.c.

void ltq_dma_alloc_tx ( struct ltq_dma_channel ch)

Definition at line 147 of file dma.c.

void ltq_dma_close ( struct ltq_dma_channel ch)

Definition at line 111 of file dma.c.

void ltq_dma_disable_irq ( struct ltq_dma_channel ch)

Definition at line 74 of file dma.c.

void ltq_dma_enable_irq ( struct ltq_dma_channel ch)

Definition at line 62 of file dma.c.

void ltq_dma_free ( struct ltq_dma_channel ch)

Definition at line 177 of file dma.c.

void ltq_dma_init_port ( int  p)

Definition at line 188 of file dma.c.

void ltq_dma_open ( struct ltq_dma_channel ch)

Definition at line 98 of file dma.c.