Linux Kernel
3.7.1
|
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) |
#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.
Definition at line 25 of file xway_dma.h.
Definition at line 27 of file xway_dma.h.
Definition at line 24 of file xway_dma.h.
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.
Definition at line 26 of file xway_dma.h.
Definition at line 28 of file xway_dma.h.
anonymous enum |
Definition at line 45 of file xway_dma.h.
void ltq_dma_ack_irq | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_alloc_rx | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_alloc_tx | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_close | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_disable_irq | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_enable_irq | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_free | ( | struct ltq_dma_channel * | ch | ) |
void ltq_dma_open | ( | struct ltq_dma_channel * | ch | ) |