Go to the documentation of this file.
25 #ifndef __INTEL_MID_DMAC_REGS_H__
26 #define __INTEL_MID_DMAC_REGS_H__
32 #define INTEL_MID_DMA_DRIVER_VERSION "1.1.0"
34 #define REG_BIT0 0x00000001
35 #define REG_BIT8 0x00000100
36 #define INT_MASK_WE 0x8
37 #define CLEAR_DONE 0xFFFFEFFF
38 #define UNMASK_INTR_REG(chan_num) \
39 ((REG_BIT0 << chan_num) | (REG_BIT8 << chan_num))
40 #define MASK_INTR_REG(chan_num) (REG_BIT8 << chan_num)
42 #define ENABLE_CHANNEL(chan_num) \
43 ((REG_BIT0 << chan_num) | (REG_BIT8 << chan_num))
45 #define DISABLE_CHANNEL(chan_num) \
46 (REG_BIT8 << chan_num)
48 #define DESCS_PER_CHANNEL 16
51 #define DMA_REG_SIZE 0x400
52 #define DMA_CH_SIZE 0x58
63 #define STATUS_TFR 0x2E8
64 #define STATUS_BLOCK 0x2F0
65 #define STATUS_ERR 0x308
68 #define RAW_BLOCK 0x2C8
71 #define MASK_TFR 0x310
72 #define MASK_BLOCK 0x318
73 #define MASK_SRC_TRAN 0x320
74 #define MASK_DST_TRAN 0x328
75 #define MASK_ERR 0x330
77 #define CLEAR_TFR 0x338
78 #define CLEAR_BLOCK 0x340
79 #define CLEAR_SRC_TRAN 0x348
80 #define CLEAR_DST_TRAN 0x350
81 #define CLEAR_ERR 0x358
83 #define INTR_STATUS 0x360
85 #define DMA_CHAN_EN 0x3A0
281 return (en_reg >> ch_no) & 0x1;