Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
adma.h File Reference
#include <linux/types.h>
#include "dma.h"
#include "xor.h"

Go to the source code of this file.

Data Structures

struct  ppc440spe_adma_device
 
struct  ppc440spe_adma_chan
 
struct  ppc440spe_rxor
 
struct  ppc440spe_adma_desc_slot
 

Macros

#define to_ppc440spe_adma_chan(chan)   container_of(chan, struct ppc440spe_adma_chan, common)
 
#define to_ppc440spe_adma_device(dev)   container_of(dev, struct ppc440spe_adma_device, common)
 
#define tx_to_ppc440spe_adma_slot(tx)   container_of(tx, struct ppc440spe_adma_desc_slot, async_tx)
 
#define PPC440SPE_DEFAULT_POLY   0x4d
 
#define PPC440SPE_ADMA_ENGINES_NUM   (XOR_ENGINES_NUM + DMA_ENGINES_NUM)
 
#define PPC440SPE_ADMA_WATCHDOG_MSEC   3
 
#define PPC440SPE_ADMA_THRESHOLD   1
 
#define PPC440SPE_DMA0_ID   0
 
#define PPC440SPE_DMA1_ID   1
 
#define PPC440SPE_XOR_ID   2
 
#define PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT   0xFFFFFFUL
 
#define PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT   (1 << 31)
 
#define PPC440SPE_ADMA_ZERO_SUM_MAX_BYTE_COUNT   PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT
 
#define PPC440SPE_RXOR_RUN   0
 
#define MQ0_CF2H_RXOR_BS_MASK   0x1FF
 
#define PPC440SPE_DESC_INT   0 /* generate interrupt on complete */
 
#define PPC440SPE_ZERO_P   1 /* clear P destionaion */
 
#define PPC440SPE_ZERO_Q   2 /* clear Q destination */
 
#define PPC440SPE_COHERENT   3 /* src/dst are coherent */
 
#define PPC440SPE_DESC_WXOR   4 /* WXORs are in chain */
 
#define PPC440SPE_DESC_RXOR   5 /* RXOR is in chain */
 
#define PPC440SPE_DESC_RXOR123   8 /* CDB for RXOR123 operation */
 
#define PPC440SPE_DESC_RXOR124   9 /* CDB for RXOR124 operation */
 
#define PPC440SPE_DESC_RXOR125   10 /* CDB for RXOR125 operation */
 
#define PPC440SPE_DESC_RXOR12   11 /* CDB for RXOR12 operation */
 
#define PPC440SPE_DESC_RXOR_REV   12 /* CDB has srcs in reversed order */
 
#define PPC440SPE_DESC_PCHECK   13
 
#define PPC440SPE_DESC_QCHECK   14
 
#define PPC440SPE_DESC_RXOR_MSK   0x3
 

Macro Definition Documentation

#define MQ0_CF2H_RXOR_BS_MASK   0x1FF

Definition at line 44 of file adma.h.

#define PPC440SPE_ADMA_DMA_MAX_BYTE_COUNT   0xFFFFFFUL

Definition at line 37 of file adma.h.

#define PPC440SPE_ADMA_ENGINES_NUM   (XOR_ENGINES_NUM + DMA_ENGINES_NUM)

Definition at line 28 of file adma.h.

#define PPC440SPE_ADMA_THRESHOLD   1

Definition at line 31 of file adma.h.

#define PPC440SPE_ADMA_WATCHDOG_MSEC   3

Definition at line 30 of file adma.h.

#define PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT   (1 << 31)

Definition at line 39 of file adma.h.

#define PPC440SPE_ADMA_ZERO_SUM_MAX_BYTE_COUNT   PPC440SPE_ADMA_XOR_MAX_BYTE_COUNT

Definition at line 40 of file adma.h.

#define PPC440SPE_COHERENT   3 /* src/dst are coherent */

Definition at line 169 of file adma.h.

#define PPC440SPE_DEFAULT_POLY   0x4d

Definition at line 26 of file adma.h.

#define PPC440SPE_DESC_INT   0 /* generate interrupt on complete */

Definition at line 166 of file adma.h.

#define PPC440SPE_DESC_PCHECK   13

Definition at line 180 of file adma.h.

#define PPC440SPE_DESC_QCHECK   14

Definition at line 181 of file adma.h.

#define PPC440SPE_DESC_RXOR   5 /* RXOR is in chain */

Definition at line 172 of file adma.h.

#define PPC440SPE_DESC_RXOR12   11 /* CDB for RXOR12 operation */

Definition at line 177 of file adma.h.

#define PPC440SPE_DESC_RXOR123   8 /* CDB for RXOR123 operation */

Definition at line 174 of file adma.h.

#define PPC440SPE_DESC_RXOR124   9 /* CDB for RXOR124 operation */

Definition at line 175 of file adma.h.

#define PPC440SPE_DESC_RXOR125   10 /* CDB for RXOR125 operation */

Definition at line 176 of file adma.h.

#define PPC440SPE_DESC_RXOR_MSK   0x3

Definition at line 183 of file adma.h.

#define PPC440SPE_DESC_RXOR_REV   12 /* CDB has srcs in reversed order */

Definition at line 178 of file adma.h.

#define PPC440SPE_DESC_WXOR   4 /* WXORs are in chain */

Definition at line 171 of file adma.h.

#define PPC440SPE_DMA0_ID   0

Definition at line 33 of file adma.h.

#define PPC440SPE_DMA1_ID   1

Definition at line 34 of file adma.h.

#define PPC440SPE_RXOR_RUN   0

Definition at line 42 of file adma.h.

#define PPC440SPE_XOR_ID   2

Definition at line 35 of file adma.h.

#define PPC440SPE_ZERO_P   1 /* clear P destionaion */

Definition at line 167 of file adma.h.

#define PPC440SPE_ZERO_Q   2 /* clear Q destination */

Definition at line 168 of file adma.h.

#define to_ppc440spe_adma_chan (   chan)    container_of(chan, struct ppc440spe_adma_chan, common)

Definition at line 18 of file adma.h.

#define to_ppc440spe_adma_device (   dev)    container_of(dev, struct ppc440spe_adma_device, common)

Definition at line 20 of file adma.h.

#define tx_to_ppc440spe_adma_slot (   tx)    container_of(tx, struct ppc440spe_adma_desc_slot, async_tx)

Definition at line 22 of file adma.h.