Go to the documentation of this file.
11 #ifndef __ASM_RC32434_DMA_H
12 #define __ASM_RC32434_DMA_H
16 #define DMA0_BASE_ADDR 0x18040000
29 #define DMA_DESC_SIZ sizeof(struct dma_desc)
30 #define DMA_DESC_COUNT_BIT 0
31 #define DMA_DESC_COUNT_MSK 0x0003ffff
32 #define DMA_DESC_DS_BIT 20
33 #define DMA_DESC_DS_MSK 0x00300000
35 #define DMA_DESC_DEV_CMD_BIT 22
36 #define DMA_DESC_DEV_CMD_MSK 0x01c00000
39 #define DMA_DESC_DEV_CMD_BYTE 0
40 #define DMA_DESC_DEV_CMD_HLF_WD 1
41 #define DMA_DESC_DEV_CMD_WORD 2
42 #define DMA_DESC_DEV_CMD_2WORDS 3
43 #define DMA_DESC_DEV_CMD_4WORDS 4
44 #define DMA_DESC_DEV_CMD_6WORDS 5
45 #define DMA_DESC_DEV_CMD_8WORDS 6
46 #define DMA_DESC_DEV_CMD_16WORDS 7
49 #define DMA_DESC_COF (1 << 25)
50 #define DMA_DESC_COD (1 << 26)
51 #define DMA_DESC_IOF (1 << 27)
52 #define DMA_DESC_IOD (1 << 28)
53 #define DMA_DESC_TERM (1 << 29)
54 #define DMA_DESC_DONE (1 << 30)
55 #define DMA_DESC_FINI (1 << 31)
70 #define DMA_CHAN_RUN_BIT (1 << 0)
71 #define DMA_CHAN_DONE_BIT (1 << 1)
72 #define DMA_CHAN_MODE_BIT (1 << 2)
73 #define DMA_CHAN_MODE_MSK 0x0000000c
74 #define DMA_CHAN_MODE_AUTO 0
75 #define DMA_CHAN_MODE_BURST 1
76 #define DMA_CHAN_MODE_XFRT 2
77 #define DMA_CHAN_MODE_RSVD 3
78 #define DMA_CHAN_ACT_BIT (1 << 4)
81 #define DMA_STAT_FINI (1 << 0)
82 #define DMA_STAT_DONE (1 << 1)
83 #define DMA_STAT_CHAIN (1 << 2)
84 #define DMA_STAT_ERR (1 << 3)
85 #define DMA_STAT_HALT (1 << 4)
91 #define DMA_CHAN_ETH_RCV 0
92 #define DMA_CHAN_ETH_XMT 1
93 #define DMA_CHAN_MEM_TO_FIFO 2
94 #define DMA_CHAN_FIFO_TO_MEM 3
95 #define DMA_CHAN_PCI_TO_MEM 4
96 #define DMA_CHAN_MEM_TO_PCI 5
97 #define DMA_CHAN_COUNT 6