Go to the documentation of this file.
15 #include <linux/types.h>
22 #define HPCDMA_EOX 0x80000000
23 #define HPCDMA_EOR 0x80000000
24 #define HPCDMA_EOXP 0x40000000
25 #define HPCDMA_EORP 0x40000000
26 #define HPCDMA_XIE 0x20000000
27 #define HPCDMA_XIU 0x01000000
28 #define HPCDMA_EIPC 0x00ff0000
29 #define HPCDMA_ETXD 0x00008000
30 #define HPCDMA_OWN 0x00004000
31 #define HPCDMA_BCNT 0x00003fff
45 #define HPC3_PDMACTRL_INT 0x00000001
46 #define HPC3_PDMACTRL_ISACT 0x00000002
48 #define HPC3_PDMACTRL_SEL 0x00000002
49 #define HPC3_PDMACTRL_RCV 0x00000004
50 #define HPC3_PDMACTRL_FLSH 0x00000008
51 #define HPC3_PDMACTRL_ACT 0x00000010
52 #define HPC3_PDMACTRL_LD 0x00000020
53 #define HPC3_PDMACTRL_RT 0x00000040
54 #define HPC3_PDMACTRL_HW 0x0000ff00
55 #define HPC3_PDMACTRL_FB 0x003f0000
56 #define HPC3_PDMACTRL_FE 0x3f000000
67 #define HPC3_SBCD_BCNTMSK 0x00003fff
68 #define HPC3_SBCD_XIE 0x00004000
69 #define HPC3_SBCD_EOX 0x00008000
72 #define HPC3_SCTRL_IRQ 0x01
73 #define HPC3_SCTRL_ENDIAN 0x02
74 #define HPC3_SCTRL_DIR 0x04
75 #define HPC3_SCTRL_FLUSH 0x08
76 #define HPC3_SCTRL_ACTIVE 0x10
77 #define HPC3_SCTRL_AMASK 0x20
78 #define HPC3_SCTRL_CRESET 0x40
79 #define HPC3_SCTRL_PERR 0x80
84 #define HPC3_SDCFG_HCLK 0x00001
85 #define HPC3_SDCFG_D1 0x00006
86 #define HPC3_SDCFG_D2 0x00038
87 #define HPC3_SDCFG_D3 0x001c0
88 #define HPC3_SDCFG_HWAT 0x00e00
89 #define HPC3_SDCFG_HW 0x01000
90 #define HPC3_SDCFG_SWAP 0x02000
91 #define HPC3_SDCFG_EPAR 0x04000
92 #define HPC3_SDCFG_POLL 0x08000
93 #define HPC3_SDCFG_ERLY 0x30000
96 #define HPC3_SPCFG_P3 0x0003
97 #define HPC3_SPCFG_P2W 0x001c
98 #define HPC3_SPCFG_P2R 0x01e0
99 #define HPC3_SPCFG_P1 0x0e00
100 #define HPC3_SPCFG_HW 0x1000
101 #define HPC3_SPCFG_SWAP 0x2000
102 #define HPC3_SPCFG_EPAR 0x4000
103 #define HPC3_SPCFG_FUJI 0x8000
115 #define HPC3_ERXBCD_BCNTMSK 0x00003fff
116 #define HPC3_ERXBCD_XIE 0x20000000
117 #define HPC3_ERXBCD_EOX 0x80000000
120 #define HPC3_ERXCTRL_STAT50 0x0000003f
121 #define HPC3_ERXCTRL_STAT6 0x00000040
122 #define HPC3_ERXCTRL_STAT7 0x00000080
123 #define HPC3_ERXCTRL_ENDIAN 0x00000100
124 #define HPC3_ERXCTRL_ACTIVE 0x00000200
125 #define HPC3_ERXCTRL_AMASK 0x00000400
126 #define HPC3_ERXCTRL_RBO 0x00000800
132 #define HPC3_ERST_CRESET 0x1
133 #define HPC3_ERST_CLRIRQ 0x2
134 #define HPC3_ERST_LBACK 0x4
137 #define HPC3_EDCFG_D1 0x0000f
138 #define HPC3_EDCFG_D2 0x000f0
139 #define HPC3_EDCFG_D3 0x00f00
140 #define HPC3_EDCFG_WCTRL 0x01000
141 #define HPC3_EDCFG_FRXDC 0x02000
142 #define HPC3_EDCFG_FEOP 0x04000
143 #define HPC3_EDCFG_FIRQ 0x08000
144 #define HPC3_EDCFG_PTO 0x30000
147 #define HPC3_EPCFG_P1 0x000f
148 #define HPC3_EPCFG_P2 0x00f0
149 #define HPC3_EPCFG_P3 0x0f00
150 #define HPC3_EPCFG_TST 0x1000
159 #define HPC3_ETXBCD_BCNTMSK 0x00003fff
160 #define HPC3_ETXBCD_ESAMP 0x10000000
161 #define HPC3_ETXBCD_XIE 0x20000000
162 #define HPC3_ETXBCD_EOP 0x40000000
163 #define HPC3_ETXBCD_EOX 0x80000000
166 #define HPC3_ETXCTRL_STAT30 0x0000000f
167 #define HPC3_ETXCTRL_STAT4 0x00000010
168 #define HPC3_ETXCTRL_STAT75 0x000000e0
169 #define HPC3_ETXCTRL_ENDIAN 0x00000100
170 #define HPC3_ETXCTRL_ACTIVE 0x00000200
171 #define HPC3_ETXCTRL_AMASK 0x00000400
201 #define HPC3_ISTAT_PBIMASK 0x0ff
202 #define HPC3_ISTAT_SC0MASK 0x100
203 #define HPC3_ISTAT_SC1MASK 0x200
206 #define HPC3_GIOMISC_ERTIME 0x1
207 #define HPC3_GIOMISC_DENDIAN 0x2
210 #define HPC3_EEPROM_EPROT 0x01
211 #define HPC3_EEPROM_CSEL 0x02
212 #define HPC3_EEPROM_ECLK 0x04
213 #define HPC3_EEPROM_DATO 0x08
214 #define HPC3_EEPROM_DATI 0x10
218 #define HPC3_BESTAT_BLMASK 0x000ff
219 #define HPC3_BESTAT_CTYPE 0x00100
220 #define HPC3_BESTAT_PIDSHIFT 9
221 #define HPC3_BESTAT_PIDMASK 0x3f700
237 #define HPC3_DMACFG_D3R_MASK 0x00000001
238 #define HPC3_DMACFG_D3R_SHIFT 0
240 #define HPC3_DMACFG_D4R_MASK 0x0000001e
241 #define HPC3_DMACFG_D4R_SHIFT 1
243 #define HPC3_DMACFG_D5R_MASK 0x000001e0
244 #define HPC3_DMACFG_D5R_SHIFT 5
246 #define HPC3_DMACFG_D3W_MASK 0x00000200
247 #define HPC3_DMACFG_D3W_SHIFT 9
249 #define HPC3_DMACFG_D4W_MASK 0x00003c00
250 #define HPC3_DMACFG_D4W_SHIFT 10
252 #define HPC3_DMACFG_D5W_MASK 0x0003c000
253 #define HPC3_DMACFG_D5W_SHIFT 14
255 #define HPC3_DMACFG_DS16 0x00040000
257 #define HPC3_DMACFG_EVENHI 0x00080000
259 #define HPC3_DMACFG_RTIME 0x00200000
261 #define HPC3_DMACFG_BURST_MASK 0x07c00000
262 #define HPC3_DMACFG_BURST_SHIFT 22
264 #define HPC3_DMACFG_DRQLIVE 0x08000000
267 #define HPC3_PIOCFG_P2R_MASK 0x00001
268 #define HPC3_PIOCFG_P2R_SHIFT 0
270 #define HPC3_PIOCFG_P3R_MASK 0x0001e
271 #define HPC3_PIOCFG_P3R_SHIFT 1
273 #define HPC3_PIOCFG_P4R_MASK 0x001e0
274 #define HPC3_PIOCFG_P4R_SHIFT 5
276 #define HPC3_PIOCFG_P2W_MASK 0x00200
277 #define HPC3_PIOCFG_P2W_SHIFT 9
279 #define HPC3_PIOCFG_P3W_MASK 0x03c00
280 #define HPC3_PIOCFG_P3W_SHIFT 10
282 #define HPC3_PIOCFG_P4W_MASK 0x3c000
283 #define HPC3_PIOCFG_P4W_SHIFT 14
285 #define HPC3_PIOCFG_DS16 0x40000
287 #define HPC3_PIOCFG_EVENHI 0x80000
291 #define HPC3_PROM_WENAB 0x1
295 #define HPC3_PROM_SWAP 0x1
299 #define HPC3_PROM_STAT 0x1
312 #define HPC3_CHIP0_BASE 0x1fb80000
313 #define HPC3_CHIP1_BASE 0x1fb00000