Go to the documentation of this file.
11 #ifndef _PPC440SPE_ADMA_H
12 #define _PPC440SPE_ADMA_H
14 #include <linux/types.h>
18 #define to_ppc440spe_adma_chan(chan) \
19 container_of(chan, struct ppc440spe_adma_chan, common)
20 #define to_ppc440spe_adma_device(dev) \
21 container_of(dev, struct ppc440spe_adma_device, common)
22 #define tx_to_ppc440spe_adma_slot(tx) \
23 container_of(tx, struct ppc440spe_adma_desc_slot, async_tx)
26 #define PPC440SPE_DEFAULT_POLY 0x4d
28 #define PPC440SPE_ADMA_ENGINES_NUM (XOR_ENGINES_NUM + DMA_ENGINES_NUM)
30 #define PPC440SPE_ADMA_WATCHDOG_MSEC 3
31 #define PPC440SPE_ADMA_THRESHOLD 1
33 #define PPC440SPE_DMA0_ID 0
34 #define PPC440SPE_DMA1_ID 1
35 #define PPC440SPE_XOR_ID 2
37 #define PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT 0xFFFFFFUL
39 #define PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT (1 << 31)
40 #define PPC440SPE_ADMA_ZERO_SUM_MAX_BYTE_COUNT PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT
42 #define PPC440SPE_RXOR_RUN 0
44 #define MQ0_CF2H_RXOR_BS_MASK 0x1FF
166 #define PPC440SPE_DESC_INT 0
167 #define PPC440SPE_ZERO_P 1
168 #define PPC440SPE_ZERO_Q 2
169 #define PPC440SPE_COHERENT 3
171 #define PPC440SPE_DESC_WXOR 4
172 #define PPC440SPE_DESC_RXOR 5
174 #define PPC440SPE_DESC_RXOR123 8
175 #define PPC440SPE_DESC_RXOR124 9
176 #define PPC440SPE_DESC_RXOR125 10
177 #define PPC440SPE_DESC_RXOR12 11
178 #define PPC440SPE_DESC_RXOR_REV 12
180 #define PPC440SPE_DESC_PCHECK 13
181 #define PPC440SPE_DESC_QCHECK 14
183 #define PPC440SPE_DESC_RXOR_MSK 0x3