Go to the documentation of this file.
9 #ifndef __ASM_BFIN_DMA_H__
10 #define __ASM_BFIN_DMA_H__
12 #include <linux/types.h>
17 #define WDSIZE_8 0x0000
18 #define PSIZE_8 0x00000000
22 #define PSIZE_16 0x00000010
23 #define PSIZE_32 0x00000020
24 #define PSIZE_64 0x00000030
25 #define WDSIZE_16 0x00000100
26 #define WDSIZE_32 0x00000200
27 #define WDSIZE_64 0x00000300
28 #define WDSIZE_128 0x00000400
29 #define WDSIZE_256 0x00000500
30 #define DMA2D 0x04000000
31 #define RESTART 0x00000004
32 #define DI_EN_X 0x00100000
33 #define DI_EN_Y 0x00200000
34 #define DI_EN_P 0x00300000
36 #define NDSIZE_0 0x00000000
37 #define NDSIZE_1 0x00010000
38 #define NDSIZE_2 0x00020000
39 #define NDSIZE_3 0x00030000
40 #define NDSIZE_4 0x00040000
41 #define NDSIZE_5 0x00050000
42 #define NDSIZE_6 0x00060000
43 #define NDSIZE 0x00070000
44 #define NDSIZE_OFFSET 16
45 #define DMAFLOW_LIST 0x00004000
46 #define DMAFLOW_LARGE DMAFLOW_LIST
47 #define DMAFLOW_ARRAY 0x00005000
48 #define DMAFLOW_LIST_DEMAND 0x00006000
49 #define DMAFLOW_ARRAY_DEMAND 0x00007000
50 #define DMA_RUN_DFETCH 0x00000100
51 #define DMA_RUN 0x00000200
52 #define DMA_RUN_WAIT_TRIG 0x00000300
53 #define DMA_RUN_WAIT_ACK 0x00000400
57 #define PSIZE_16 0x0000
58 #define PSIZE_32 0x0000
59 #define WDSIZE_16 0x0004
60 #define WDSIZE_32 0x0008
62 #define RESTART 0x0020
65 #define DI_EN_X 0x00C0
66 #define DI_EN_Y 0x0080
67 #define NDSIZE_0 0x0000
68 #define NDSIZE_1 0x0100
69 #define NDSIZE_2 0x0200
70 #define NDSIZE_3 0x0300
71 #define NDSIZE_4 0x0400
72 #define NDSIZE_5 0x0500
73 #define NDSIZE_6 0x0600
74 #define NDSIZE_7 0x0700
75 #define NDSIZE_8 0x0800
76 #define NDSIZE_9 0x0900
78 #define NDSIZE_OFFSET 8
79 #define DMAFLOW_ARRAY 0x4000
80 #define DMAFLOW_SMALL 0x6000
81 #define DMAFLOW_LARGE 0x7000
83 #define DMA_RUN 0x0008
86 #define DMAFLOW 0x7000
87 #define DMAFLOW_STOP 0x0000
88 #define DMAFLOW_AUTO 0x1000
91 #define DMA_DONE 0x0001
92 #define DMA_ERR 0x0002
94 #define DMA_PIRQ 0x0004
103 #define __BFP(m) u16 m; u16 __pad_##m
127 u32 curr_bw_limit_count;
128 u32 bw_monitor_count;
129 u32 curr_bw_monitor_count;
140 __BFP(peripheral_map);