Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
dma.h File Reference
#include <asm/mach-rc32434/rb.h>

Go to the source code of this file.

Data Structures

struct  dma_desc
 
struct  dma_reg
 
struct  dma_channel
 

Macros

#define DMA0_BASE_ADDR   0x18040000
 
#define DMA_DESC_SIZ   sizeof(struct dma_desc)
 
#define DMA_DESC_COUNT_BIT   0
 
#define DMA_DESC_COUNT_MSK   0x0003ffff
 
#define DMA_DESC_DS_BIT   20
 
#define DMA_DESC_DS_MSK   0x00300000
 
#define DMA_DESC_DEV_CMD_BIT   22
 
#define DMA_DESC_DEV_CMD_MSK   0x01c00000
 
#define DMA_DESC_DEV_CMD_BYTE   0
 
#define DMA_DESC_DEV_CMD_HLF_WD   1
 
#define DMA_DESC_DEV_CMD_WORD   2
 
#define DMA_DESC_DEV_CMD_2WORDS   3
 
#define DMA_DESC_DEV_CMD_4WORDS   4
 
#define DMA_DESC_DEV_CMD_6WORDS   5
 
#define DMA_DESC_DEV_CMD_8WORDS   6
 
#define DMA_DESC_DEV_CMD_16WORDS   7
 
#define DMA_DESC_COF   (1 << 25) /* Chain on finished */
 
#define DMA_DESC_COD   (1 << 26) /* Chain on done */
 
#define DMA_DESC_IOF   (1 << 27) /* Interrupt on finished */
 
#define DMA_DESC_IOD   (1 << 28) /* Interrupt on done */
 
#define DMA_DESC_TERM   (1 << 29) /* Terminated */
 
#define DMA_DESC_DONE   (1 << 30) /* Done */
 
#define DMA_DESC_FINI   (1 << 31) /* Finished */
 
#define DMA_CHAN_RUN_BIT   (1 << 0)
 
#define DMA_CHAN_DONE_BIT   (1 << 1)
 
#define DMA_CHAN_MODE_BIT   (1 << 2)
 
#define DMA_CHAN_MODE_MSK   0x0000000c
 
#define DMA_CHAN_MODE_AUTO   0
 
#define DMA_CHAN_MODE_BURST   1
 
#define DMA_CHAN_MODE_XFRT   2
 
#define DMA_CHAN_MODE_RSVD   3
 
#define DMA_CHAN_ACT_BIT   (1 << 4)
 
#define DMA_STAT_FINI   (1 << 0)
 
#define DMA_STAT_DONE   (1 << 1)
 
#define DMA_STAT_CHAIN   (1 << 2)
 
#define DMA_STAT_ERR   (1 << 3)
 
#define DMA_STAT_HALT   (1 << 4)
 
#define DMA_CHAN_ETH_RCV   0
 
#define DMA_CHAN_ETH_XMT   1
 
#define DMA_CHAN_MEM_TO_FIFO   2
 
#define DMA_CHAN_FIFO_TO_MEM   3
 
#define DMA_CHAN_PCI_TO_MEM   4
 
#define DMA_CHAN_MEM_TO_PCI   5
 
#define DMA_CHAN_COUNT   6
 

Macro Definition Documentation

#define DMA0_BASE_ADDR   0x18040000

Definition at line 16 of file dma.h.

#define DMA_CHAN_ACT_BIT   (1 << 4)

Definition at line 78 of file dma.h.

#define DMA_CHAN_COUNT   6

Definition at line 97 of file dma.h.

#define DMA_CHAN_DONE_BIT   (1 << 1)

Definition at line 71 of file dma.h.

#define DMA_CHAN_ETH_RCV   0

Definition at line 91 of file dma.h.

#define DMA_CHAN_ETH_XMT   1

Definition at line 92 of file dma.h.

#define DMA_CHAN_FIFO_TO_MEM   3

Definition at line 94 of file dma.h.

#define DMA_CHAN_MEM_TO_FIFO   2

Definition at line 93 of file dma.h.

#define DMA_CHAN_MEM_TO_PCI   5

Definition at line 96 of file dma.h.

#define DMA_CHAN_MODE_AUTO   0

Definition at line 74 of file dma.h.

#define DMA_CHAN_MODE_BIT   (1 << 2)

Definition at line 72 of file dma.h.

#define DMA_CHAN_MODE_BURST   1

Definition at line 75 of file dma.h.

#define DMA_CHAN_MODE_MSK   0x0000000c

Definition at line 73 of file dma.h.

#define DMA_CHAN_MODE_RSVD   3

Definition at line 77 of file dma.h.

#define DMA_CHAN_MODE_XFRT   2

Definition at line 76 of file dma.h.

#define DMA_CHAN_PCI_TO_MEM   4

Definition at line 95 of file dma.h.

#define DMA_CHAN_RUN_BIT   (1 << 0)

Definition at line 70 of file dma.h.

#define DMA_DESC_COD   (1 << 26) /* Chain on done */

Definition at line 50 of file dma.h.

#define DMA_DESC_COF   (1 << 25) /* Chain on finished */

Definition at line 49 of file dma.h.

#define DMA_DESC_COUNT_BIT   0

Definition at line 30 of file dma.h.

#define DMA_DESC_COUNT_MSK   0x0003ffff

Definition at line 31 of file dma.h.

#define DMA_DESC_DEV_CMD_16WORDS   7

Definition at line 46 of file dma.h.

#define DMA_DESC_DEV_CMD_2WORDS   3

Definition at line 42 of file dma.h.

#define DMA_DESC_DEV_CMD_4WORDS   4

Definition at line 43 of file dma.h.

#define DMA_DESC_DEV_CMD_6WORDS   5

Definition at line 44 of file dma.h.

#define DMA_DESC_DEV_CMD_8WORDS   6

Definition at line 45 of file dma.h.

#define DMA_DESC_DEV_CMD_BIT   22

Definition at line 35 of file dma.h.

#define DMA_DESC_DEV_CMD_BYTE   0

Definition at line 39 of file dma.h.

#define DMA_DESC_DEV_CMD_HLF_WD   1

Definition at line 40 of file dma.h.

#define DMA_DESC_DEV_CMD_MSK   0x01c00000

Definition at line 36 of file dma.h.

#define DMA_DESC_DEV_CMD_WORD   2

Definition at line 41 of file dma.h.

#define DMA_DESC_DONE   (1 << 30) /* Done */

Definition at line 54 of file dma.h.

#define DMA_DESC_DS_BIT   20

Definition at line 32 of file dma.h.

#define DMA_DESC_DS_MSK   0x00300000

Definition at line 33 of file dma.h.

#define DMA_DESC_FINI   (1 << 31) /* Finished */

Definition at line 55 of file dma.h.

#define DMA_DESC_IOD   (1 << 28) /* Interrupt on done */

Definition at line 52 of file dma.h.

#define DMA_DESC_IOF   (1 << 27) /* Interrupt on finished */

Definition at line 51 of file dma.h.

#define DMA_DESC_SIZ   sizeof(struct dma_desc)

Definition at line 29 of file dma.h.

#define DMA_DESC_TERM   (1 << 29) /* Terminated */

Definition at line 53 of file dma.h.

#define DMA_STAT_CHAIN   (1 << 2)

Definition at line 83 of file dma.h.

#define DMA_STAT_DONE   (1 << 1)

Definition at line 82 of file dma.h.

#define DMA_STAT_ERR   (1 << 3)

Definition at line 84 of file dma.h.

#define DMA_STAT_FINI   (1 << 0)

Definition at line 81 of file dma.h.

#define DMA_STAT_HALT   (1 << 4)

Definition at line 85 of file dma.h.