Go to the documentation of this file. 1 #ifndef __marb_bar_defs_h
2 #define __marb_bar_defs_h
15 #define REG_RD( scope, inst, reg ) \
16 REG_READ( reg_##scope##_##reg, \
17 (inst) + REG_RD_ADDR_##scope##_##reg )
21 #define REG_WR( scope, inst, reg, val ) \
22 REG_WRITE( reg_##scope##_##reg, \
23 (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
27 #define REG_RD_VECT( scope, inst, reg, index ) \
28 REG_READ( reg_##scope##_##reg, \
29 (inst) + REG_RD_ADDR_##scope##_##reg + \
30 (index) * STRIDE_##scope##_##reg )
34 #define REG_WR_VECT( scope, inst, reg, index, val ) \
35 REG_WRITE( reg_##scope##_##reg, \
36 (inst) + REG_WR_ADDR_##scope##_##reg + \
37 (index) * STRIDE_##scope##_##reg, (val) )
41 #define REG_RD_INT( scope, inst, reg ) \
42 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
46 #define REG_WR_INT( scope, inst, reg, val ) \
47 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
50 #ifndef REG_RD_INT_VECT
51 #define REG_RD_INT_VECT( scope, inst, reg, index ) \
52 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
53 (index) * STRIDE_##scope##_##reg )
56 #ifndef REG_WR_INT_VECT
57 #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
58 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
59 (index) * STRIDE_##scope##_##reg, (val) )
63 #define REG_TYPE_CONV( type, orgtype, val ) \
64 ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
68 #define reg_page_size 8192
72 #define REG_ADDR( scope, inst, reg ) \
73 ( (inst) + REG_RD_ADDR_##scope##_##reg )
77 #define REG_ADDR_VECT( scope, inst, reg, index ) \
78 ( (inst) + REG_RD_ADDR_##scope##_##reg + \
79 (index) * STRIDE_##scope##_##reg )
84 #define STRIDE_marb_bar_rw_ddr2_slots 4
88 unsigned int dummy1 : 28;
90 #define REG_RD_ADDR_marb_bar_rw_ddr2_slots 0
91 #define REG_WR_ADDR_marb_bar_rw_ddr2_slots 0
95 unsigned int ddr2_bsize : 2;
96 unsigned int dummy1 : 30;
98 #define REG_RD_ADDR_marb_bar_rw_h264_rd_burst 256
99 #define REG_WR_ADDR_marb_bar_rw_h264_rd_burst 256
103 unsigned int ddr2_bsize : 2;
104 unsigned int dummy1 : 30;
106 #define REG_RD_ADDR_marb_bar_rw_h264_wr_burst 260
107 #define REG_WR_ADDR_marb_bar_rw_h264_wr_burst 260
111 unsigned int ddr2_bsize : 2;
112 unsigned int dummy1 : 30;
114 #define REG_RD_ADDR_marb_bar_rw_ccd_burst 264
115 #define REG_WR_ADDR_marb_bar_rw_ccd_burst 264
119 unsigned int ddr2_bsize : 2;
120 unsigned int dummy1 : 30;
122 #define REG_RD_ADDR_marb_bar_rw_vin_wr_burst 268
123 #define REG_WR_ADDR_marb_bar_rw_vin_wr_burst 268
127 unsigned int ddr2_bsize : 2;
128 unsigned int dummy1 : 30;
130 #define REG_RD_ADDR_marb_bar_rw_vin_rd_burst 272
131 #define REG_WR_ADDR_marb_bar_rw_vin_rd_burst 272
135 unsigned int ddr2_bsize : 2;
136 unsigned int dummy1 : 30;
138 #define REG_RD_ADDR_marb_bar_rw_sclr_rd_burst 276
139 #define REG_WR_ADDR_marb_bar_rw_sclr_rd_burst 276
143 unsigned int ddr2_bsize : 2;
144 unsigned int dummy1 : 30;
146 #define REG_RD_ADDR_marb_bar_rw_vout_burst 280
147 #define REG_WR_ADDR_marb_bar_rw_vout_burst 280
151 unsigned int ddr2_bsize : 2;
152 unsigned int dummy1 : 30;
154 #define REG_RD_ADDR_marb_bar_rw_sclr_fifo_burst 284
155 #define REG_WR_ADDR_marb_bar_rw_sclr_fifo_burst 284
159 unsigned int ddr2_bsize : 2;
160 unsigned int dummy1 : 30;
162 #define REG_RD_ADDR_marb_bar_rw_l2cache_burst 288
163 #define REG_WR_ADDR_marb_bar_rw_l2cache_burst 288
167 unsigned int bp0 : 1;
168 unsigned int bp1 : 1;
169 unsigned int bp2 : 1;
170 unsigned int bp3 : 1;
171 unsigned int dummy1 : 28;
173 #define REG_RD_ADDR_marb_bar_rw_intr_mask 292
174 #define REG_WR_ADDR_marb_bar_rw_intr_mask 292
178 unsigned int bp0 : 1;
179 unsigned int bp1 : 1;
180 unsigned int bp2 : 1;
181 unsigned int bp3 : 1;
182 unsigned int dummy1 : 28;
184 #define REG_RD_ADDR_marb_bar_rw_ack_intr 296
185 #define REG_WR_ADDR_marb_bar_rw_ack_intr 296
189 unsigned int bp0 : 1;
190 unsigned int bp1 : 1;
191 unsigned int bp2 : 1;
192 unsigned int bp3 : 1;
193 unsigned int dummy1 : 28;
195 #define REG_RD_ADDR_marb_bar_r_intr 300
199 unsigned int bp0 : 1;
200 unsigned int bp1 : 1;
201 unsigned int bp2 : 1;
202 unsigned int bp3 : 1;
203 unsigned int dummy1 : 28;
205 #define REG_RD_ADDR_marb_bar_r_masked_intr 304
209 unsigned int h264_rd : 1;
210 unsigned int h264_wr : 1;
211 unsigned int ccd : 1;
212 unsigned int vin_wr : 1;
213 unsigned int vin_rd : 1;
214 unsigned int sclr_rd : 1;
215 unsigned int vout : 1;
216 unsigned int sclr_fifo : 1;
217 unsigned int l2cache : 1;
218 unsigned int dummy1 : 23;
220 #define REG_RD_ADDR_marb_bar_rw_stop_mask 308
221 #define REG_WR_ADDR_marb_bar_rw_stop_mask 308
225 unsigned int h264_rd : 1;
226 unsigned int h264_wr : 1;
227 unsigned int ccd : 1;
228 unsigned int vin_wr : 1;
229 unsigned int vin_rd : 1;
230 unsigned int sclr_rd : 1;
231 unsigned int vout : 1;
232 unsigned int sclr_fifo : 1;
233 unsigned int l2cache : 1;
234 unsigned int dummy1 : 23;
236 #define REG_RD_ADDR_marb_bar_r_stopped 312
240 unsigned int h264_rd : 1;
241 unsigned int h264_wr : 1;
242 unsigned int ccd : 1;
243 unsigned int vin_wr : 1;
244 unsigned int vin_rd : 1;
245 unsigned int sclr_rd : 1;
246 unsigned int vout : 1;
247 unsigned int sclr_fifo : 1;
248 unsigned int l2cache : 1;
249 unsigned int dummy1 : 23;
251 #define REG_RD_ADDR_marb_bar_rw_no_snoop 576
252 #define REG_WR_ADDR_marb_bar_rw_no_snoop 576
285 #ifndef __marb_bar_bp_defs_h
286 #define __marb_bar_bp_defs_h
299 #define REG_RD( scope, inst, reg ) \
300 REG_READ( reg_##scope##_##reg, \
301 (inst) + REG_RD_ADDR_##scope##_##reg )
305 #define REG_WR( scope, inst, reg, val ) \
306 REG_WRITE( reg_##scope##_##reg, \
307 (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
311 #define REG_RD_VECT( scope, inst, reg, index ) \
312 REG_READ( reg_##scope##_##reg, \
313 (inst) + REG_RD_ADDR_##scope##_##reg + \
314 (index) * STRIDE_##scope##_##reg )
318 #define REG_WR_VECT( scope, inst, reg, index, val ) \
319 REG_WRITE( reg_##scope##_##reg, \
320 (inst) + REG_WR_ADDR_##scope##_##reg + \
321 (index) * STRIDE_##scope##_##reg, (val) )
325 #define REG_RD_INT( scope, inst, reg ) \
326 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
330 #define REG_WR_INT( scope, inst, reg, val ) \
331 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
334 #ifndef REG_RD_INT_VECT
335 #define REG_RD_INT_VECT( scope, inst, reg, index ) \
336 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
337 (index) * STRIDE_##scope##_##reg )
340 #ifndef REG_WR_INT_VECT
341 #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
342 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
343 (index) * STRIDE_##scope##_##reg, (val) )
346 #ifndef REG_TYPE_CONV
347 #define REG_TYPE_CONV( type, orgtype, val ) \
348 ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
351 #ifndef reg_page_size
352 #define reg_page_size 8192
356 #define REG_ADDR( scope, inst, reg ) \
357 ( (inst) + REG_RD_ADDR_##scope##_##reg )
360 #ifndef REG_ADDR_VECT
361 #define REG_ADDR_VECT( scope, inst, reg, index ) \
362 ( (inst) + REG_RD_ADDR_##scope##_##reg + \
363 (index) * STRIDE_##scope##_##reg )
370 #define REG_RD_ADDR_marb_bar_bp_rw_first_addr 0
371 #define REG_WR_ADDR_marb_bar_bp_rw_first_addr 0
375 #define REG_RD_ADDR_marb_bar_bp_rw_last_addr 4
376 #define REG_WR_ADDR_marb_bar_bp_rw_last_addr 4
382 unsigned int rd_excl : 1;
383 unsigned int pri_wr : 1;
384 unsigned int us_rd : 1;
385 unsigned int us_wr : 1;
386 unsigned int us_rd_excl : 1;
387 unsigned int us_pri_wr : 1;
388 unsigned int dummy1 : 24;
390 #define REG_RD_ADDR_marb_bar_bp_rw_op 8
391 #define REG_WR_ADDR_marb_bar_bp_rw_op 8
395 unsigned int h264_rd : 1;
396 unsigned int h264_wr : 1;
397 unsigned int ccd : 1;
398 unsigned int vin_wr : 1;
399 unsigned int vin_rd : 1;
400 unsigned int sclr_rd : 1;
401 unsigned int vout : 1;
402 unsigned int sclr_fifo : 1;
403 unsigned int l2cache : 1;
404 unsigned int dummy1 : 23;
406 #define REG_RD_ADDR_marb_bar_bp_rw_clients 12
407 #define REG_WR_ADDR_marb_bar_bp_rw_clients 12
412 unsigned int dummy1 : 31;
414 #define REG_RD_ADDR_marb_bar_bp_rw_options 16
415 #define REG_WR_ADDR_marb_bar_bp_rw_options 16
419 #define REG_RD_ADDR_marb_bar_bp_r_brk_addr 20
425 unsigned int rd_excl : 1;
426 unsigned int pri_wr : 1;
427 unsigned int us_rd : 1;
428 unsigned int us_wr : 1;
429 unsigned int us_rd_excl : 1;
430 unsigned int us_pri_wr : 1;
431 unsigned int dummy1 : 24;
433 #define REG_RD_ADDR_marb_bar_bp_r_brk_op 24
437 unsigned int h264_rd : 1;
438 unsigned int h264_wr : 1;
439 unsigned int ccd : 1;
440 unsigned int vin_wr : 1;
441 unsigned int vin_rd : 1;
442 unsigned int sclr_rd : 1;
443 unsigned int vout : 1;
444 unsigned int sclr_fifo : 1;
445 unsigned int l2cache : 1;
446 unsigned int dummy1 : 23;
448 #define REG_RD_ADDR_marb_bar_bp_r_brk_clients 28
452 unsigned int h264_rd : 1;
453 unsigned int h264_wr : 1;
454 unsigned int ccd : 1;
455 unsigned int vin_wr : 1;
456 unsigned int vin_rd : 1;
457 unsigned int sclr_rd : 1;
458 unsigned int vout : 1;
459 unsigned int sclr_fifo : 1;
460 unsigned int l2cache : 1;
461 unsigned int dummy1 : 23;
463 #define REG_RD_ADDR_marb_bar_bp_r_brk_first_client 32
467 #define REG_RD_ADDR_marb_bar_bp_r_brk_size 36
471 #define REG_RD_ADDR_marb_bar_bp_rw_ack 40
472 #define REG_WR_ADDR_marb_bar_bp_rw_ack 40