Go to the documentation of this file. 1 #ifndef __marb_foo_defs_h
2 #define __marb_foo_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_foo_rw_intm_slots 4
88 unsigned int dummy1 : 28;
90 #define REG_RD_ADDR_marb_foo_rw_intm_slots 0
91 #define REG_WR_ADDR_marb_foo_rw_intm_slots 0
93 #define STRIDE_marb_foo_rw_l2_slots 4
97 unsigned int dummy1 : 28;
99 #define REG_RD_ADDR_marb_foo_rw_l2_slots 256
100 #define REG_WR_ADDR_marb_foo_rw_l2_slots 256
102 #define STRIDE_marb_foo_rw_regs_slots 4
106 unsigned int dummy1 : 28;
108 #define REG_RD_ADDR_marb_foo_rw_regs_slots 512
109 #define REG_WR_ADDR_marb_foo_rw_regs_slots 512
113 unsigned int intm_bsize : 2;
114 unsigned int l2_bsize : 2;
115 unsigned int dummy1 : 28;
117 #define REG_RD_ADDR_marb_foo_rw_sclr_burst 528
118 #define REG_WR_ADDR_marb_foo_rw_sclr_burst 528
122 unsigned int intm_bsize : 2;
123 unsigned int l2_bsize : 2;
124 unsigned int dummy1 : 28;
126 #define REG_RD_ADDR_marb_foo_rw_dma0_burst 532
127 #define REG_WR_ADDR_marb_foo_rw_dma0_burst 532
131 unsigned int intm_bsize : 2;
132 unsigned int l2_bsize : 2;
133 unsigned int dummy1 : 28;
135 #define REG_RD_ADDR_marb_foo_rw_dma1_burst 536
136 #define REG_WR_ADDR_marb_foo_rw_dma1_burst 536
140 unsigned int intm_bsize : 2;
141 unsigned int l2_bsize : 2;
142 unsigned int dummy1 : 28;
144 #define REG_RD_ADDR_marb_foo_rw_dma2_burst 540
145 #define REG_WR_ADDR_marb_foo_rw_dma2_burst 540
149 unsigned int intm_bsize : 2;
150 unsigned int l2_bsize : 2;
151 unsigned int dummy1 : 28;
153 #define REG_RD_ADDR_marb_foo_rw_dma3_burst 544
154 #define REG_WR_ADDR_marb_foo_rw_dma3_burst 544
158 unsigned int intm_bsize : 2;
159 unsigned int l2_bsize : 2;
160 unsigned int dummy1 : 28;
162 #define REG_RD_ADDR_marb_foo_rw_dma4_burst 548
163 #define REG_WR_ADDR_marb_foo_rw_dma4_burst 548
167 unsigned int intm_bsize : 2;
168 unsigned int l2_bsize : 2;
169 unsigned int dummy1 : 28;
171 #define REG_RD_ADDR_marb_foo_rw_dma5_burst 552
172 #define REG_WR_ADDR_marb_foo_rw_dma5_burst 552
176 unsigned int intm_bsize : 2;
177 unsigned int l2_bsize : 2;
178 unsigned int dummy1 : 28;
180 #define REG_RD_ADDR_marb_foo_rw_dma6_burst 556
181 #define REG_WR_ADDR_marb_foo_rw_dma6_burst 556
185 unsigned int intm_bsize : 2;
186 unsigned int l2_bsize : 2;
187 unsigned int dummy1 : 28;
189 #define REG_RD_ADDR_marb_foo_rw_dma7_burst 560
190 #define REG_WR_ADDR_marb_foo_rw_dma7_burst 560
194 unsigned int intm_bsize : 2;
195 unsigned int l2_bsize : 2;
196 unsigned int dummy1 : 28;
198 #define REG_RD_ADDR_marb_foo_rw_dma9_burst 564
199 #define REG_WR_ADDR_marb_foo_rw_dma9_burst 564
203 unsigned int intm_bsize : 2;
204 unsigned int l2_bsize : 2;
205 unsigned int dummy1 : 28;
207 #define REG_RD_ADDR_marb_foo_rw_dma11_burst 568
208 #define REG_WR_ADDR_marb_foo_rw_dma11_burst 568
212 unsigned int intm_bsize : 2;
213 unsigned int l2_bsize : 2;
214 unsigned int dummy1 : 28;
216 #define REG_RD_ADDR_marb_foo_rw_cpui_burst 572
217 #define REG_WR_ADDR_marb_foo_rw_cpui_burst 572
221 unsigned int intm_bsize : 2;
222 unsigned int l2_bsize : 2;
223 unsigned int dummy1 : 28;
225 #define REG_RD_ADDR_marb_foo_rw_cpud_burst 576
226 #define REG_WR_ADDR_marb_foo_rw_cpud_burst 576
230 unsigned int intm_bsize : 2;
231 unsigned int l2_bsize : 2;
232 unsigned int dummy1 : 28;
234 #define REG_RD_ADDR_marb_foo_rw_iop_burst 580
235 #define REG_WR_ADDR_marb_foo_rw_iop_burst 580
239 unsigned int intm_bsize : 2;
240 unsigned int l2_bsize : 2;
241 unsigned int dummy1 : 28;
243 #define REG_RD_ADDR_marb_foo_rw_ccdstat_burst 584
244 #define REG_WR_ADDR_marb_foo_rw_ccdstat_burst 584
248 unsigned int bp0 : 1;
249 unsigned int bp1 : 1;
250 unsigned int bp2 : 1;
251 unsigned int bp3 : 1;
252 unsigned int dummy1 : 28;
254 #define REG_RD_ADDR_marb_foo_rw_intr_mask 588
255 #define REG_WR_ADDR_marb_foo_rw_intr_mask 588
259 unsigned int bp0 : 1;
260 unsigned int bp1 : 1;
261 unsigned int bp2 : 1;
262 unsigned int bp3 : 1;
263 unsigned int dummy1 : 28;
265 #define REG_RD_ADDR_marb_foo_rw_ack_intr 592
266 #define REG_WR_ADDR_marb_foo_rw_ack_intr 592
270 unsigned int bp0 : 1;
271 unsigned int bp1 : 1;
272 unsigned int bp2 : 1;
273 unsigned int bp3 : 1;
274 unsigned int dummy1 : 28;
276 #define REG_RD_ADDR_marb_foo_r_intr 596
280 unsigned int bp0 : 1;
281 unsigned int bp1 : 1;
282 unsigned int bp2 : 1;
283 unsigned int bp3 : 1;
284 unsigned int dummy1 : 28;
286 #define REG_RD_ADDR_marb_foo_r_masked_intr 600
290 unsigned int sclr : 1;
291 unsigned int dma0 : 1;
292 unsigned int dma1 : 1;
293 unsigned int dma2 : 1;
294 unsigned int dma3 : 1;
295 unsigned int dma4 : 1;
296 unsigned int dma5 : 1;
297 unsigned int dma6 : 1;
298 unsigned int dma7 : 1;
299 unsigned int dma9 : 1;
300 unsigned int dma11 : 1;
301 unsigned int cpui : 1;
302 unsigned int cpud : 1;
303 unsigned int iop : 1;
304 unsigned int ccdstat : 1;
305 unsigned int dummy1 : 17;
307 #define REG_RD_ADDR_marb_foo_rw_stop_mask 604
308 #define REG_WR_ADDR_marb_foo_rw_stop_mask 604
312 unsigned int sclr : 1;
313 unsigned int dma0 : 1;
314 unsigned int dma1 : 1;
315 unsigned int dma2 : 1;
316 unsigned int dma3 : 1;
317 unsigned int dma4 : 1;
318 unsigned int dma5 : 1;
319 unsigned int dma6 : 1;
320 unsigned int dma7 : 1;
321 unsigned int dma9 : 1;
322 unsigned int dma11 : 1;
323 unsigned int cpui : 1;
324 unsigned int cpud : 1;
325 unsigned int iop : 1;
326 unsigned int ccdstat : 1;
327 unsigned int dummy1 : 17;
329 #define REG_RD_ADDR_marb_foo_r_stopped 608
333 unsigned int sclr : 1;
334 unsigned int dma0 : 1;
335 unsigned int dma1 : 1;
336 unsigned int dma2 : 1;
337 unsigned int dma3 : 1;
338 unsigned int dma4 : 1;
339 unsigned int dma5 : 1;
340 unsigned int dma6 : 1;
341 unsigned int dma7 : 1;
342 unsigned int dma9 : 1;
343 unsigned int dma11 : 1;
344 unsigned int cpui : 1;
345 unsigned int cpud : 1;
346 unsigned int iop : 1;
347 unsigned int ccdstat : 1;
348 unsigned int dummy1 : 17;
350 #define REG_RD_ADDR_marb_foo_rw_no_snoop 896
351 #define REG_WR_ADDR_marb_foo_rw_no_snoop 896
355 unsigned int dummy1 : 11;
356 unsigned int cpui : 1;
357 unsigned int cpud : 1;
358 unsigned int dummy2 : 19;
360 #define REG_RD_ADDR_marb_foo_rw_no_snoop_rq 900
361 #define REG_WR_ADDR_marb_foo_rw_no_snoop_rq 900
411 #ifndef __marb_foo_bp_defs_h
412 #define __marb_foo_bp_defs_h
425 #define REG_RD( scope, inst, reg ) \
426 REG_READ( reg_##scope##_##reg, \
427 (inst) + REG_RD_ADDR_##scope##_##reg )
431 #define REG_WR( scope, inst, reg, val ) \
432 REG_WRITE( reg_##scope##_##reg, \
433 (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
437 #define REG_RD_VECT( scope, inst, reg, index ) \
438 REG_READ( reg_##scope##_##reg, \
439 (inst) + REG_RD_ADDR_##scope##_##reg + \
440 (index) * STRIDE_##scope##_##reg )
444 #define REG_WR_VECT( scope, inst, reg, index, val ) \
445 REG_WRITE( reg_##scope##_##reg, \
446 (inst) + REG_WR_ADDR_##scope##_##reg + \
447 (index) * STRIDE_##scope##_##reg, (val) )
451 #define REG_RD_INT( scope, inst, reg ) \
452 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
456 #define REG_WR_INT( scope, inst, reg, val ) \
457 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
460 #ifndef REG_RD_INT_VECT
461 #define REG_RD_INT_VECT( scope, inst, reg, index ) \
462 REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
463 (index) * STRIDE_##scope##_##reg )
466 #ifndef REG_WR_INT_VECT
467 #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
468 REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
469 (index) * STRIDE_##scope##_##reg, (val) )
472 #ifndef REG_TYPE_CONV
473 #define REG_TYPE_CONV( type, orgtype, val ) \
474 ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
477 #ifndef reg_page_size
478 #define reg_page_size 8192
482 #define REG_ADDR( scope, inst, reg ) \
483 ( (inst) + REG_RD_ADDR_##scope##_##reg )
486 #ifndef REG_ADDR_VECT
487 #define REG_ADDR_VECT( scope, inst, reg, index ) \
488 ( (inst) + REG_RD_ADDR_##scope##_##reg + \
489 (index) * STRIDE_##scope##_##reg )
496 #define REG_RD_ADDR_marb_foo_bp_rw_first_addr 0
497 #define REG_WR_ADDR_marb_foo_bp_rw_first_addr 0
501 #define REG_RD_ADDR_marb_foo_bp_rw_last_addr 4
502 #define REG_WR_ADDR_marb_foo_bp_rw_last_addr 4
508 unsigned int rd_excl : 1;
509 unsigned int pri_wr : 1;
510 unsigned int us_rd : 1;
511 unsigned int us_wr : 1;
512 unsigned int us_rd_excl : 1;
513 unsigned int us_pri_wr : 1;
514 unsigned int dummy1 : 24;
516 #define REG_RD_ADDR_marb_foo_bp_rw_op 8
517 #define REG_WR_ADDR_marb_foo_bp_rw_op 8
521 unsigned int sclr : 1;
522 unsigned int dma0 : 1;
523 unsigned int dma1 : 1;
524 unsigned int dma2 : 1;
525 unsigned int dma3 : 1;
526 unsigned int dma4 : 1;
527 unsigned int dma5 : 1;
528 unsigned int dma6 : 1;
529 unsigned int dma7 : 1;
530 unsigned int dma9 : 1;
531 unsigned int dma11 : 1;
532 unsigned int cpui : 1;
533 unsigned int cpud : 1;
534 unsigned int iop : 1;
535 unsigned int ccdstat : 1;
536 unsigned int dummy1 : 17;
538 #define REG_RD_ADDR_marb_foo_bp_rw_clients 12
539 #define REG_WR_ADDR_marb_foo_bp_rw_clients 12
544 unsigned int dummy1 : 31;
546 #define REG_RD_ADDR_marb_foo_bp_rw_options 16
547 #define REG_WR_ADDR_marb_foo_bp_rw_options 16
551 #define REG_RD_ADDR_marb_foo_bp_r_brk_addr 20
557 unsigned int rd_excl : 1;
558 unsigned int pri_wr : 1;
559 unsigned int us_rd : 1;
560 unsigned int us_wr : 1;
561 unsigned int us_rd_excl : 1;
562 unsigned int us_pri_wr : 1;
563 unsigned int dummy1 : 24;
565 #define REG_RD_ADDR_marb_foo_bp_r_brk_op 24
569 unsigned int sclr : 1;
570 unsigned int dma0 : 1;
571 unsigned int dma1 : 1;
572 unsigned int dma2 : 1;
573 unsigned int dma3 : 1;
574 unsigned int dma4 : 1;
575 unsigned int dma5 : 1;
576 unsigned int dma6 : 1;
577 unsigned int dma7 : 1;
578 unsigned int dma9 : 1;
579 unsigned int dma11 : 1;
580 unsigned int cpui : 1;
581 unsigned int cpud : 1;
582 unsigned int iop : 1;
583 unsigned int ccdstat : 1;
584 unsigned int dummy1 : 17;
586 #define REG_RD_ADDR_marb_foo_bp_r_brk_clients 28
590 unsigned int sclr : 1;
591 unsigned int dma0 : 1;
592 unsigned int dma1 : 1;
593 unsigned int dma2 : 1;
594 unsigned int dma3 : 1;
595 unsigned int dma4 : 1;
596 unsigned int dma5 : 1;
597 unsigned int dma6 : 1;
598 unsigned int dma7 : 1;
599 unsigned int dma9 : 1;
600 unsigned int dma11 : 1;
601 unsigned int cpui : 1;
602 unsigned int cpud : 1;
603 unsigned int iop : 1;
604 unsigned int ccdstat : 1;
605 unsigned int dummy1 : 17;
607 #define REG_RD_ADDR_marb_foo_bp_r_brk_first_client 32
611 #define REG_RD_ADDR_marb_foo_bp_r_brk_size 36
615 #define REG_RD_ADDR_marb_foo_bp_rw_ack 40
616 #define REG_WR_ADDR_marb_foo_bp_rw_ack 40