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

Go to the source code of this file.

Data Structures

struct  ccsr_dma
 
struct  ccsr_dma::ccsr_dma_channel
 
struct  fsl_dma_list_descriptor
 
struct  fsl_dma_link_descriptor
 

Macros

#define CCSR_DMA_MR_BWC_DISABLED   0x0F000000
 
#define CCSR_DMA_MR_BWC_SHIFT   24
 
#define CCSR_DMA_MR_BWC_MASK   0x0F000000
 
#define CCSR_DMA_MR_BWC(x)   ((ilog2(x) << CCSR_DMA_MR_BWC_SHIFT) & CCSR_DMA_MR_BWC_MASK)
 
#define CCSR_DMA_MR_EMP_EN   0x00200000
 
#define CCSR_DMA_MR_EMS_EN   0x00040000
 
#define CCSR_DMA_MR_DAHTS_MASK   0x00030000
 
#define CCSR_DMA_MR_DAHTS_1   0x00000000
 
#define CCSR_DMA_MR_DAHTS_2   0x00010000
 
#define CCSR_DMA_MR_DAHTS_4   0x00020000
 
#define CCSR_DMA_MR_DAHTS_8   0x00030000
 
#define CCSR_DMA_MR_SAHTS_MASK   0x0000C000
 
#define CCSR_DMA_MR_SAHTS_1   0x00000000
 
#define CCSR_DMA_MR_SAHTS_2   0x00004000
 
#define CCSR_DMA_MR_SAHTS_4   0x00008000
 
#define CCSR_DMA_MR_SAHTS_8   0x0000C000
 
#define CCSR_DMA_MR_DAHE   0x00002000
 
#define CCSR_DMA_MR_SAHE   0x00001000
 
#define CCSR_DMA_MR_SRW   0x00000400
 
#define CCSR_DMA_MR_EOSIE   0x00000200
 
#define CCSR_DMA_MR_EOLNIE   0x00000100
 
#define CCSR_DMA_MR_EOLSIE   0x00000080
 
#define CCSR_DMA_MR_EIE   0x00000040
 
#define CCSR_DMA_MR_XFE   0x00000020
 
#define CCSR_DMA_MR_CDSM_SWSM   0x00000010
 
#define CCSR_DMA_MR_CA   0x00000008
 
#define CCSR_DMA_MR_CTM   0x00000004
 
#define CCSR_DMA_MR_CC   0x00000002
 
#define CCSR_DMA_MR_CS   0x00000001
 
#define CCSR_DMA_SR_TE   0x00000080
 
#define CCSR_DMA_SR_CH   0x00000020
 
#define CCSR_DMA_SR_PE   0x00000010
 
#define CCSR_DMA_SR_EOLNI   0x00000008
 
#define CCSR_DMA_SR_CB   0x00000004
 
#define CCSR_DMA_SR_EOSI   0x00000002
 
#define CCSR_DMA_SR_EOLSI   0x00000001
 
#define CCSR_DMA_CLNDAR_ADDR(x)   ((x) & 0xFFFFFFFE)
 
#define CCSR_DMA_CLNDAR_EOSIE   0x00000008
 
#define CCSR_DMA_ATR_PBATMU   0x20000000
 
#define CCSR_DMA_ATR_TFLOWLVL_0   0x00000000
 
#define CCSR_DMA_ATR_TFLOWLVL_1   0x06000000
 
#define CCSR_DMA_ATR_TFLOWLVL_2   0x08000000
 
#define CCSR_DMA_ATR_TFLOWLVL_3   0x0C000000
 
#define CCSR_DMA_ATR_PCIORDER   0x02000000
 
#define CCSR_DMA_ATR_SME   0x01000000
 
#define CCSR_DMA_ATR_NOSNOOP   0x00040000
 
#define CCSR_DMA_ATR_SNOOP   0x00050000
 
#define CCSR_DMA_ATR_ESAD_MASK   0x0000000F
 

Functions

struct fsl_dma_list_descriptor __attribute__ ((aligned(32), packed))
 

Variables

__be64 next
 
__be64 first_link
 
__be32 source
 
__be32 dest
 
u8 res [8]
 
__be32 source_attr
 
__be32 source_addr
 
__be32 dest_attr
 
__be32 dest_addr
 
__be32 count
 

Macro Definition Documentation

#define CCSR_DMA_ATR_ESAD_MASK   0x0000000F

Definition at line 96 of file fsl_dma.h.

#define CCSR_DMA_ATR_NOSNOOP   0x00040000

Definition at line 94 of file fsl_dma.h.

#define CCSR_DMA_ATR_PBATMU   0x20000000

Definition at line 87 of file fsl_dma.h.

#define CCSR_DMA_ATR_PCIORDER   0x02000000

Definition at line 92 of file fsl_dma.h.

#define CCSR_DMA_ATR_SME   0x01000000

Definition at line 93 of file fsl_dma.h.

#define CCSR_DMA_ATR_SNOOP   0x00050000

Definition at line 95 of file fsl_dma.h.

#define CCSR_DMA_ATR_TFLOWLVL_0   0x00000000

Definition at line 88 of file fsl_dma.h.

#define CCSR_DMA_ATR_TFLOWLVL_1   0x06000000

Definition at line 89 of file fsl_dma.h.

#define CCSR_DMA_ATR_TFLOWLVL_2   0x08000000

Definition at line 90 of file fsl_dma.h.

#define CCSR_DMA_ATR_TFLOWLVL_3   0x0C000000

Definition at line 91 of file fsl_dma.h.

#define CCSR_DMA_CLNDAR_ADDR (   x)    ((x) & 0xFFFFFFFE)

Definition at line 83 of file fsl_dma.h.

#define CCSR_DMA_CLNDAR_EOSIE   0x00000008

Definition at line 84 of file fsl_dma.h.

#define CCSR_DMA_MR_BWC (   x)    ((ilog2(x) << CCSR_DMA_MR_BWC_SHIFT) & CCSR_DMA_MR_BWC_MASK)

Definition at line 41 of file fsl_dma.h.

#define CCSR_DMA_MR_BWC_DISABLED   0x0F000000

Definition at line 38 of file fsl_dma.h.

#define CCSR_DMA_MR_BWC_MASK   0x0F000000

Definition at line 40 of file fsl_dma.h.

#define CCSR_DMA_MR_BWC_SHIFT   24

Definition at line 39 of file fsl_dma.h.

#define CCSR_DMA_MR_CA   0x00000008

Definition at line 64 of file fsl_dma.h.

#define CCSR_DMA_MR_CC   0x00000002

Definition at line 66 of file fsl_dma.h.

#define CCSR_DMA_MR_CDSM_SWSM   0x00000010

Definition at line 63 of file fsl_dma.h.

#define CCSR_DMA_MR_CS   0x00000001

Definition at line 67 of file fsl_dma.h.

#define CCSR_DMA_MR_CTM   0x00000004

Definition at line 65 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHE   0x00002000

Definition at line 55 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHTS_1   0x00000000

Definition at line 46 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHTS_2   0x00010000

Definition at line 47 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHTS_4   0x00020000

Definition at line 48 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHTS_8   0x00030000

Definition at line 49 of file fsl_dma.h.

#define CCSR_DMA_MR_DAHTS_MASK   0x00030000

Definition at line 45 of file fsl_dma.h.

#define CCSR_DMA_MR_EIE   0x00000040

Definition at line 61 of file fsl_dma.h.

#define CCSR_DMA_MR_EMP_EN   0x00200000

Definition at line 43 of file fsl_dma.h.

#define CCSR_DMA_MR_EMS_EN   0x00040000

Definition at line 44 of file fsl_dma.h.

#define CCSR_DMA_MR_EOLNIE   0x00000100

Definition at line 59 of file fsl_dma.h.

#define CCSR_DMA_MR_EOLSIE   0x00000080

Definition at line 60 of file fsl_dma.h.

#define CCSR_DMA_MR_EOSIE   0x00000200

Definition at line 58 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHE   0x00001000

Definition at line 56 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHTS_1   0x00000000

Definition at line 51 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHTS_2   0x00004000

Definition at line 52 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHTS_4   0x00008000

Definition at line 53 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHTS_8   0x0000C000

Definition at line 54 of file fsl_dma.h.

#define CCSR_DMA_MR_SAHTS_MASK   0x0000C000

Definition at line 50 of file fsl_dma.h.

#define CCSR_DMA_MR_SRW   0x00000400

Definition at line 57 of file fsl_dma.h.

#define CCSR_DMA_MR_XFE   0x00000020

Definition at line 62 of file fsl_dma.h.

#define CCSR_DMA_SR_CB   0x00000004

Definition at line 73 of file fsl_dma.h.

#define CCSR_DMA_SR_CH   0x00000020

Definition at line 70 of file fsl_dma.h.

#define CCSR_DMA_SR_EOLNI   0x00000008

Definition at line 72 of file fsl_dma.h.

#define CCSR_DMA_SR_EOLSI   0x00000001

Definition at line 75 of file fsl_dma.h.

#define CCSR_DMA_SR_EOSI   0x00000002

Definition at line 74 of file fsl_dma.h.

#define CCSR_DMA_SR_PE   0x00000010

Definition at line 71 of file fsl_dma.h.

#define CCSR_DMA_SR_TE   0x00000080

Definition at line 69 of file fsl_dma.h.

Function Documentation

Variable Documentation

__be32 count

Definition at line 133 of file fsl_dma.h.

__be32 dest

Definition at line 115 of file fsl_dma.h.

__be32 dest_addr

Definition at line 131 of file fsl_dma.h.

__be32 dest_attr

Definition at line 130 of file fsl_dma.h.

__be64 first_link

Definition at line 113 of file fsl_dma.h.

__be64 next

Definition at line 112 of file fsl_dma.h.

u8 res[4]

Definition at line 116 of file fsl_dma.h.

__be32 source

Definition at line 114 of file fsl_dma.h.

__be32 source_addr

Definition at line 129 of file fsl_dma.h.

__be32 source_attr

Definition at line 128 of file fsl_dma.h.