Go to the documentation of this file.
32 #define LAS0_SPARE_00 0x0000
33 #define LAS0_SPARE_04 0x0004
34 #define LAS0_USER_IO 0x0008
35 #define LAS0_SPARE_0C 0x000C
36 #define LAS0_ADC 0x0010
37 #define LAS0_DAC1 0x0014
38 #define LAS0_DAC2 0x0018
39 #define LAS0_SPARE_1C 0x001C
40 #define LAS0_SPARE_20 0x0020
41 #define LAS0_DAC 0x0024
42 #define LAS0_PACER 0x0028
43 #define LAS0_TIMER 0x002C
44 #define LAS0_IT 0x0030
45 #define LAS0_CLEAR 0x0034
46 #define LAS0_OVERRUN 0x0038
47 #define LAS0_SPARE_3C 0x003C
53 #define LAS0_PCLK 0x0040
54 #define LAS0_BCLK 0x0044
55 #define LAS0_ADC_SCNT 0x0048
56 #define LAS0_DAC1_UCNT 0x004C
57 #define LAS0_DAC2_UCNT 0x0050
58 #define LAS0_DCNT 0x0054
59 #define LAS0_ACNT 0x0058
60 #define LAS0_DAC_CLK 0x005C
61 #define LAS0_UTC0 0x0060
62 #define LAS0_UTC1 0x0064
63 #define LAS0_UTC2 0x0068
64 #define LAS0_UTC_CTRL 0x006C
65 #define LAS0_DIO0 0x0070
66 #define LAS0_DIO1 0x0074
67 #define LAS0_DIO0_CTRL 0x0078
68 #define LAS0_DIO_STATUS 0x007C
74 #define LAS0_BOARD_RESET 0x0100
75 #define LAS0_DMA0_SRC 0x0104
76 #define LAS0_DMA1_SRC 0x0108
77 #define LAS0_ADC_CONVERSION 0x010C
78 #define LAS0_BURST_START 0x0110
79 #define LAS0_PACER_START 0x0114
80 #define LAS0_PACER_STOP 0x0118
81 #define LAS0_ACNT_STOP_ENABLE 0x011C
82 #define LAS0_PACER_REPEAT 0x0120
83 #define LAS0_DIN_START 0x0124
84 #define LAS0_DIN_FIFO_CLEAR 0x0128
85 #define LAS0_ADC_FIFO_CLEAR 0x012C
86 #define LAS0_CGT_WRITE 0x0130
87 #define LAS0_CGL_WRITE 0x0134
88 #define LAS0_CG_DATA 0x0138
89 #define LAS0_CGT_ENABLE 0x013C
90 #define LAS0_CG_ENABLE 0x0140
91 #define LAS0_CGT_PAUSE 0x0144
92 #define LAS0_CGT_RESET 0x0148
93 #define LAS0_CGT_CLEAR 0x014C
94 #define LAS0_DAC1_CTRL 0x0150
95 #define LAS0_DAC1_SRC 0x0154
96 #define LAS0_DAC1_CYCLE 0x0158
97 #define LAS0_DAC1_RESET 0x015C
98 #define LAS0_DAC1_FIFO_CLEAR 0x0160
99 #define LAS0_DAC2_CTRL 0x0164
100 #define LAS0_DAC2_SRC 0x0168
101 #define LAS0_DAC2_CYCLE 0x016C
102 #define LAS0_DAC2_RESET 0x0170
103 #define LAS0_DAC2_FIFO_CLEAR 0x0174
104 #define LAS0_ADC_SCNT_SRC 0x0178
105 #define LAS0_PACER_SELECT 0x0180
106 #define LAS0_SBUS0_SRC 0x0184
107 #define LAS0_SBUS0_ENABLE 0x0188
108 #define LAS0_SBUS1_SRC 0x018C
109 #define LAS0_SBUS1_ENABLE 0x0190
110 #define LAS0_SBUS2_SRC 0x0198
111 #define LAS0_SBUS2_ENABLE 0x019C
112 #define LAS0_ETRG_POLARITY 0x01A4
113 #define LAS0_EINT_POLARITY 0x01A8
114 #define LAS0_UTC0_CLOCK 0x01AC
115 #define LAS0_UTC0_GATE 0x01B0
116 #define LAS0_UTC1_CLOCK 0x01B4
117 #define LAS0_UTC1_GATE 0x01B8
118 #define LAS0_UTC2_CLOCK 0x01BC
119 #define LAS0_UTC2_GATE 0x01C0
120 #define LAS0_UOUT0_SELECT 0x01C4
121 #define LAS0_UOUT1_SELECT 0x01C8
122 #define LAS0_DMA0_RESET 0x01CC
123 #define LAS0_DMA1_RESET 0x01D0
129 #define LAS1_ADC_FIFO 0x0000
130 #define LAS1_HDIO_FIFO 0x0004
131 #define LAS1_DAC1_FIFO 0x0008
132 #define LAS1_DAC2_FIFO 0x000C
138 #define LCFG_ITCSR 0x0068
139 #define LCFG_DMAMODE0 0x0080
140 #define LCFG_DMAPADR0 0x0084
141 #define LCFG_DMALADR0 0x0088
142 #define LCFG_DMASIZ0 0x008C
143 #define LCFG_DMADPR0 0x0090
144 #define LCFG_DMAMODE1 0x0094
145 #define LCFG_DMAPADR1 0x0098
146 #define LCFG_DMALADR1 0x009C
147 #define LCFG_DMASIZ1 0x00A0
148 #define LCFG_DMADPR1 0x00A4
149 #define LCFG_DMACSR0 0x00A8
150 #define LCFG_DMACSR1 0x00A9
151 #define LCFG_DMAARB 0x00AC
152 #define LCFG_DMATHR 0x00B0
159 #define FS_DAC1_NOT_EMPTY 0x0001
160 #define FS_DAC1_HEMPTY 0x0002
161 #define FS_DAC1_NOT_FULL 0x0004
162 #define FS_DAC2_NOT_EMPTY 0x0010
163 #define FS_DAC2_HEMPTY 0x0020
164 #define FS_DAC2_NOT_FULL 0x0040
165 #define FS_ADC_NOT_EMPTY 0x0100
166 #define FS_ADC_HEMPTY 0x0200
167 #define FS_ADC_NOT_FULL 0x0400
168 #define FS_DIN_NOT_EMPTY 0x1000
169 #define FS_DIN_HEMPTY 0x2000
170 #define FS_DIN_NOT_FULL 0x4000
173 #define TS_PCLK_GATE 0x0001
175 #define TS_BCLK_GATE 0x0002
177 #define TS_DCNT_GATE 0x0004
180 #define TS_ACNT_GATE 0x0008
182 #define TS_PCLK_RUN 0x0010
189 #define POL_POSITIVE 0x0
190 #define POL_NEGATIVE 0x1
194 #define UOUT_DAC1 0x1
195 #define UOUT_DAC2 0x2
196 #define UOUT_SOFTWARE 0x3
199 #define PCLK_INTERNAL 1
200 #define PCLK_EXTERNAL 0
203 #define ADC_SCNT_CGT_RESET 0x0
204 #define ADC_SCNT_FIFO_WRITE 0x1
207 #define ADC_START_SOFTWARE 0x0
208 #define ADC_START_PCLK 0x1
209 #define ADC_START_BCLK 0x2
210 #define ADC_START_DIGITAL_IT 0x3
211 #define ADC_START_DAC1_MARKER1 0x4
212 #define ADC_START_DAC2_MARKER1 0x5
213 #define ADC_START_SBUS0 0x6
214 #define ADC_START_SBUS1 0x7
215 #define ADC_START_SBUS2 0x8
218 #define BCLK_START_SOFTWARE 0x0
219 #define BCLK_START_PCLK 0x1
220 #define BCLK_START_ETRIG 0x2
221 #define BCLK_START_DIGITAL_IT 0x3
222 #define BCLK_START_SBUS0 0x4
223 #define BCLK_START_SBUS1 0x5
224 #define BCLK_START_SBUS2 0x6
227 #define PCLK_START_SOFTWARE 0x0
228 #define PCLK_START_ETRIG 0x1
229 #define PCLK_START_DIGITAL_IT 0x2
230 #define PCLK_START_UTC2 0x3
231 #define PCLK_START_SBUS0 0x4
232 #define PCLK_START_SBUS1 0x5
233 #define PCLK_START_SBUS2 0x6
234 #define PCLK_START_D_SOFTWARE 0x8
235 #define PCLK_START_D_ETRIG 0x9
236 #define PCLK_START_D_DIGITAL_IT 0xA
237 #define PCLK_START_D_UTC2 0xB
238 #define PCLK_START_D_SBUS0 0xC
239 #define PCLK_START_D_SBUS1 0xD
240 #define PCLK_START_D_SBUS2 0xE
241 #define PCLK_START_ETRIG_GATED 0xF
244 #define PCLK_STOP_SOFTWARE 0x0
245 #define PCLK_STOP_ETRIG 0x1
246 #define PCLK_STOP_DIGITAL_IT 0x2
247 #define PCLK_STOP_ACNT 0x3
248 #define PCLK_STOP_UTC2 0x4
249 #define PCLK_STOP_SBUS0 0x5
250 #define PCLK_STOP_SBUS1 0x6
251 #define PCLK_STOP_SBUS2 0x7
252 #define PCLK_STOP_A_SOFTWARE 0x8
253 #define PCLK_STOP_A_ETRIG 0x9
254 #define PCLK_STOP_A_DIGITAL_IT 0xA
255 #define PCLK_STOP_A_UTC2 0xC
256 #define PCLK_STOP_A_SBUS0 0xD
257 #define PCLK_STOP_A_SBUS1 0xE
258 #define PCLK_STOP_A_SBUS2 0xF
261 #define ACNT_STOP 0x0
262 #define ACNT_NO_STOP 0x1
265 #define DAC_START_SOFTWARE 0x0
266 #define DAC_START_CGT 0x1
267 #define DAC_START_DAC_CLK 0x2
268 #define DAC_START_EPCLK 0x3
269 #define DAC_START_SBUS0 0x4
270 #define DAC_START_SBUS1 0x5
271 #define DAC_START_SBUS2 0x6
274 #define DAC_CYCLE_SINGLE 0x0
275 #define DAC_CYCLE_MULTI 0x1
278 #define M8254_EVENT_COUNTER 0
279 #define M8254_HW_ONE_SHOT 1
280 #define M8254_RATE_GENERATOR 2
281 #define M8254_SQUARE_WAVE 3
282 #define M8254_SW_STROBE 4
283 #define M8254_HW_STROBE 5
286 #define CUTC0_8MHZ 0x0
287 #define CUTC0_EXT_TC_CLOCK1 0x1
288 #define CUTC0_EXT_TC_CLOCK2 0x2
289 #define CUTC0_EXT_PCLK 0x3
292 #define CUTC1_8MHZ 0x0
293 #define CUTC1_EXT_TC_CLOCK1 0x1
294 #define CUTC1_EXT_TC_CLOCK2 0x2
295 #define CUTC1_EXT_PCLK 0x3
296 #define CUTC1_UTC0_OUT 0x4
297 #define CUTC1_DIN_SIGNAL 0x5
300 #define CUTC2_8MHZ 0x0
301 #define CUTC2_EXT_TC_CLOCK1 0x1
302 #define CUTC2_EXT_TC_CLOCK2 0x2
303 #define CUTC2_EXT_PCLK 0x3
304 #define CUTC2_UTC1_OUT 0x4
307 #define GUTC0_NOT_GATED 0x0
308 #define GUTC0_GATED 0x1
309 #define GUTC0_EXT_TC_GATE1 0x2
310 #define GUTC0_EXT_TC_GATE2 0x3
313 #define GUTC1_NOT_GATED 0x0
314 #define GUTC1_GATED 0x1
315 #define GUTC1_EXT_TC_GATE1 0x2
316 #define GUTC1_EXT_TC_GATE2 0x3
317 #define GUTC1_UTC0_OUT 0x4
320 #define GUTC2_NOT_GATED 0x0
321 #define GUTC2_GATED 0x1
322 #define GUTC2_EXT_TC_GATE1 0x2
323 #define GUTC2_EXT_TC_GATE2 0x3
324 #define GUTC2_UTC1_OUT 0x4
327 #define IRQM_ADC_FIFO_WRITE 0x0001
328 #define IRQM_CGT_RESET 0x0002
329 #define IRQM_CGT_PAUSE 0x0008
330 #define IRQM_ADC_ABOUT_CNT 0x0010
331 #define IRQM_ADC_DELAY_CNT 0x0020
332 #define IRQM_ADC_SAMPLE_CNT 0x0040
333 #define IRQM_DAC1_UCNT 0x0080
334 #define IRQM_DAC2_UCNT 0x0100
335 #define IRQM_UTC1 0x0200
336 #define IRQM_UTC1_INV 0x0400
337 #define IRQM_UTC2 0x0800
338 #define IRQM_DIGITAL_IT 0x1000
339 #define IRQM_EXTERNAL_IT 0x2000
340 #define IRQM_ETRIG_RISING 0x4000
341 #define IRQM_ETRIG_FALLING 0x8000
344 #define DMAS_DISABLED 0x0
345 #define DMAS_ADC_SCNT 0x1
346 #define DMAS_DAC1_UCNT 0x2
347 #define DMAS_DAC2_UCNT 0x3
348 #define DMAS_UTC1 0x4
349 #define DMAS_ADFIFO_HALF_FULL 0x8
350 #define DMAS_DAC1_FIFO_HALF_EMPTY 0x9
351 #define DMAS_DAC2_FIFO_HALF_EMPTY 0xA
354 #define DMALADDR_ADC 0x40000000
355 #define DMALADDR_HDIN 0x40000004
356 #define DMALADDR_DAC1 0x40000008
357 #define DMALADDR_DAC2 0x4000000C
360 #define DIO_MODE_EVENT 0
361 #define DIO_MODE_MATCH 1
364 #define DTBL_DISABLE 0
365 #define DTBL_ENABLE 1
368 #define HDIN_SOFTWARE 0x0
370 #define HDIN_UTC0 0x2
371 #define HDIN_UTC1 0x3
372 #define HDIN_UTC2 0x4
373 #define HDIN_EPCLK 0x5
374 #define HDIN_ETRG 0x6
381 #define CGT_PAUSE_DISABLE 0
382 #define CGT_PAUSE_ENABLE 1
386 #define AOUT_UNIP10 1