29 #define CASTINT (unsigned int *)
39 #define UNIVERSE_ADRS(reg) (CASTINT (UNIVERSE_BASE_ADRS + reg ))
43 #define UNIV_BUS_ADRS(reg) (CASTINT (UNIV_BUS_BASE_ADRS + (reg)))
78 #define UNIVERSE_DMA_INT 0x0100
79 #define UNIVERSE_LERR_INT 0x0200
80 #define UNIVERSE_VERR_INT 0x0400
81 #define UNIVERSE_VME_SW_IACK_INT 0x1000
82 #define UNIVERSE_PCI_SW_INT 0x2000
83 #define UNIVERSE_SYSFAIL_INT 0x4000
84 #define UNIVERSE_ACFAIL_INT 0x8000
86 #define UNIVERSE_INT_MASK 0x0000f700
89 #define UNIVERSE_CNFG_OFFSET 0x100
98 #define UNIVERSE_PCI_ID UNIVERSE_ADRS(0x00)
102 #define UNIVERSE_PCI_CSR UNIVERSE_ADRS(0x04)
112 #define UNIVERSE_PCI_CLASS UNIVERSE_ADRS(0x08)
116 #define UNIVERSE_PCI_MISC0 UNIVERSE_ADRS(0x0c)
123 #define UNIVERSE_PCI_BS UNIVERSE_ADRS(0x10)
127 #define UNIVERSE_PCI_MISC1 UNIVERSE_ADRS(0x3c)
131 #define UNIVERSE_LSI0_CTL UNIVERSE_ADRS(0x100)
138 #define UNIVERSE_LSI0_BS UNIVERSE_ADRS(0x104)
145 #define UNIVERSE_LSI0_BD UNIVERSE_ADRS(0x108)
152 #define UNIVERSE_LSI0_TO UNIVERSE_ADRS(0x10c)
156 #define UNIVERSE_LSI1_CTL UNIVERSE_ADRS(0x114)
163 #define UNIVERSE_LSI1_BS UNIVERSE_ADRS(0x118)
170 #define UNIVERSE_LSI1_BD UNIVERSE_ADRS(0x11C)
177 #define UNIVERSE_LSI1_TO UNIVERSE_ADRS(0x120)
181 #define UNIVERSE_LSI2_CTL UNIVERSE_ADRS(0x128)
188 #define UNIVERSE_LSI2_BS UNIVERSE_ADRS(0x12C)
195 #define UNIVERSE_LSI2_BD UNIVERSE_ADRS(0x130)
202 #define UNIVERSE_LSI2_TO UNIVERSE_ADRS(0x134)
206 #define UNIVERSE_LSI3_CTL UNIVERSE_ADRS(0x13C)
213 #define UNIVERSE_LSI3_BS UNIVERSE_ADRS(0x140)
220 #define UNIVERSE_LSI3_BD UNIVERSE_ADRS(0x144)
227 #define UNIVERSE_LSI3_TO UNIVERSE_ADRS(0x148)
234 #define UNIVERSE_SCYC_CTL UNIVERSE_ADRS(0x170)
241 #define UNIVERSE_SCYC_ADDR UNIVERSE_ADRS(0x174)
245 #define UNIVERSE_SCYC_EN UNIVERSE_ADRS(0x178)
249 #define UNIVERSE_SCYC_CMP UNIVERSE_ADRS(0x17c)
253 #define UNIVERSE_SCYC_SWP UNIVERSE_ADRS(0x180)
257 #define UNIVERSE_LMISC UNIVERSE_ADRS(0x184)
258 #define UNIVERSE_SLSI UNIVERSE_ADRS(0x188)
259 #define UNIVERSE_L_CMDERR UNIVERSE_ADRS(0x18c)
260 #define UNIVERSE_LAERR UNIVERSE_ADRS(0x190)
261 #define UNIVERSE_DCTL UNIVERSE_ADRS(0x200)
262 #define UNIVERSE_DTBC UNIVERSE_ADRS(0x204)
263 #define UNIVERSE_DLA UNIVERSE_ADRS(0x208)
264 #define UNIVERSE_DVA UNIVERSE_ADRS(0x210)
265 #define UNIVERSE_DCPP UNIVERSE_ADRS(0x218)
266 #define UNIVERSE_DGCS UNIVERSE_ADRS(0x220)
267 #define UNIVERSE_D_LLUE UNIVERSE_ADRS(0x224)
268 #define UNIVERSE_LINT_EN UNIVERSE_ADRS(0x300)
269 #define UNIVERSE_LINT_STAT UNIVERSE_ADRS(0x304)
270 #define UNIVERSE_LINT_MAP0 UNIVERSE_ADRS(0x308)
271 #define UNIVERSE_LINT_MAP1 UNIVERSE_ADRS(0x30C)
272 #define UNIVERSE_VINT_EN UNIVERSE_ADRS(0x310)
273 #define UNIVERSE_VINT_STAT UNIVERSE_ADRS(0x314)
274 #define UNIVERSE_VINT_MAP0 UNIVERSE_ADRS(0x318)
275 #define UNIVERSE_VINT_MAP1 UNIVERSE_ADRS(0x31C)
276 #define UNIVERSE_STATID UNIVERSE_ADRS(0x320)
277 #define UNIVERSE_V1_STATID UNIVERSE_ADRS(0x324)
278 #define UNIVERSE_V2_STATID UNIVERSE_ADRS(0x328)
279 #define UNIVERSE_V3_STATID UNIVERSE_ADRS(0x32C)
280 #define UNIVERSE_V4_STATID UNIVERSE_ADRS(0x330)
281 #define UNIVERSE_V5_STATID UNIVERSE_ADRS(0x334)
282 #define UNIVERSE_V6_STATID UNIVERSE_ADRS(0x338)
283 #define UNIVERSE_V7_STATID UNIVERSE_ADRS(0x33C)
284 #define UNIVERSE_MAST_CTL UNIVERSE_ADRS(0x400)
285 #define UNIVERSE_MISC_CTL UNIVERSE_ADRS(0x404)
286 #define UNIVERSE_MISC_STAT UNIVERSE_ADRS(0x408)
287 #define UNIVERSE_USER_AM UNIVERSE_ADRS(0x40C)
288 #define UNIVERSE_VSI0_CTL UNIVERSE_ADRS(0xF00)
289 #define UNIVERSE_VSI0_BS UNIVERSE_ADRS(0xF04)
290 #define UNIVERSE_VSI0_BD UNIVERSE_ADRS(0xF08)
291 #define UNIVERSE_VSI0_TO UNIVERSE_ADRS(0xF0C)
292 #define UNIVERSE_VSI1_CTL UNIVERSE_ADRS(0xF14)
293 #define UNIVERSE_VSI1_BS UNIVERSE_ADRS(0xF18)
294 #define UNIVERSE_VSI1_BD UNIVERSE_ADRS(0xF1C)
295 #define UNIVERSE_VSI1_TO UNIVERSE_ADRS(0xF20)
296 #define UNIVERSE_VSI2_CTL UNIVERSE_ADRS(0xF28)
297 #define UNIVERSE_VSI2_BS UNIVERSE_ADRS(0xF2C)
298 #define UNIVERSE_VSI2_BD UNIVERSE_ADRS(0xF30)
299 #define UNIVERSE_VSI2_TO UNIVERSE_ADRS(0xF34)
300 #define UNIVERSE_VSI3_CTL UNIVERSE_ADRS(0xF3C)
301 #define UNIVERSE_VSI3_BS UNIVERSE_ADRS(0xF40)
302 #define UNIVERSE_VSI3_BD UNIVERSE_ADRS(0xF44)
303 #define UNIVERSE_VSI3_TO UNIVERSE_ADRS(0xF48)
304 #define UNIVERSE_VRAI_CTL UNIVERSE_ADRS(0xF70)
305 #define UNIVERSE_VRAI_BS UNIVERSE_ADRS(0xF74)
306 #define UNIVERSE_VCSR_CTL UNIVERSE_ADRS(0xF80)
307 #define UNIVERSE_VCSR_TO UNIVERSE_ADRS(0xF84)
308 #define UNIVERSE_V_AMERR UNIVERSE_ADRS(0xF88)
309 #define UNIVERSE_VAERR UNIVERSE_ADRS(0xF8C)
310 #define UNIVERSE_VCSR_CLR UNIVERSE_ADRS(0xFF4)
311 #define UNIVERSE_VCSR_SET UNIVERSE_ADRS(0xFF8)
312 #define UNIVERSE_VCSR_BS UNIVERSE_ADRS(0xFFC)
318 #define PCI_MISC0_LATENCY_TIMER 0x0000f800
322 #define PCI_CSR_MASK 0x007ffc00
323 #define PCI_CSR_D_PE (1 << 31)
324 #define PCI_CSR_S_SERR (1 << 30)
325 #define PCI_CSR_R_MA (1 << 29)
326 #define PCI_CSR_R_TA (1 << 28)
327 #define PCI_CSR_S_TA (1 << 27)
328 #define PCI_CSR_DEVSEL_MEDIUM (1 << 25)
329 #define PCI_CSR_DP_D (1 << 24)
331 #define PCI_CSR_TFBBC (1 << 23)
333 #define PCI_CSR_MFBBC (1 << 9)
335 #define PCI_CSR_SERR_EN (1 << 8)
336 #define PCI_CSR_WAIT (1 << 7)
337 #define PCI_CSR_PERSP (1 << 6)
338 #define PCI_CSR_VGAPS (1 << 5)
339 #define PCI_CSR_MWI_EN (1 << 4)
341 #define PCI_CSR_SC (1 << 3)
343 #define PCI_CSR_BM (1 << 2)
344 #define PCI_CSR_MS (1 << 1)
345 #define PCI_CSR_IOS (1)
349 #define LSI0_CTL_MASK 0x3f380efc
350 #define LSI0_CTL_EN (1 << 31)
351 #define LSI0_CTL_WP (1 << 30)
352 #define LSI0_CTL_D8 (0 << 22)
353 #define LSI0_CTL_D16 (1 << 22)
354 #define LSI0_CTL_D32 (2 << 22)
355 #define LSI0_CTL_D64 (3 << 22)
356 #define LSI0_CTL_A16 (0 << 16)
357 #define LSI0_CTL_A24 (1 << 16)
358 #define LSI0_CTL_A32 (2 << 16)
359 #define LSI0_CTL_CSR (5 << 16)
360 #define LSI0_CTL_USER1 (6 << 16)
361 #define LSI0_CTL_USER2 (7 << 16)
362 #define LSI0_CTL_PGM (1 << 14)
363 #define LSI0_CTL_DATA (0 << 14)
364 #define LSI0_CTL_SUP (1 << 12)
365 #define LSI0_CTL_USR (0 << 12)
366 #define LSI0_CTL_BLK (1 << 8)
367 #define LSI0_CTL_SINGLE (0 << 8)
368 #define LSI0_CTL_PCI_MEM (0 << 0)
369 #define LSI0_CTL_PCI_IO (1 << 0)
370 #define LSI0_CTL_PCI_CONFIG (2 << 0)
374 #define LSI0_BS_MASK 0x00000fff
378 #define LSI0_BD_MASK 0x00000fff
382 #define LSI0_TO_MASK 0x00000fff
386 #define LSI1_CTL_MASK 0x3f380efc
387 #define LSI1_CTL_EN (1 << 31)
388 #define LSI1_CTL_WP (1 << 30)
389 #define LSI1_CTL_D8 (0 << 22)
390 #define LSI1_CTL_D16 (1 << 22)
391 #define LSI1_CTL_D32 (2 << 22)
392 #define LSI1_CTL_D64 (3 << 22)
393 #define LSI1_CTL_A16 (0 << 16)
394 #define LSI1_CTL_A24 (1 << 16)
395 #define LSI1_CTL_A32 (2 << 16)
396 #define LSI1_CTL_CSR (5 << 16)
397 #define LSI1_CTL_USER1 (6 << 16)
398 #define LSI1_CTL_USER2 (7 << 16)
399 #define LSI1_CTL_PGM (1 << 14)
400 #define LSI1_CTL_DATA (0 << 14)
401 #define LSI1_CTL_SUP (1 << 12)
402 #define LSI1_CTL_USR (0 << 12)
403 #define LSI1_CTL_BLK (1 << 8)
404 #define LSI1_CTL_SINGLE (0 << 8)
405 #define LSI1_CTL_PCI_MEM (0 << 0)
406 #define LSI1_CTL_PCI_IO (1 << 0)
407 #define LSI1_CTL_PCI_CONFIG (2 << 0)
411 #define LSI1_BS_MASK 0x0000ffff
415 #define LSI1_BD_MASK 0x0000ffff
419 #define LSI1_TO_MASK 0x0000ffff
423 #define LSI2_CTL_MASK 0x3f380efc
424 #define LSI2_CTL_EN (1 << 31)
425 #define LSI2_CTL_WP (1 << 30)
426 #define LSI2_CTL_D8 (0 << 22)
427 #define LSI2_CTL_D16 (1 << 22)
428 #define LSI2_CTL_D32 (2 << 22)
429 #define LSI2_CTL_D64 (3 << 22)
430 #define LSI2_CTL_A16 (0 << 16)
431 #define LSI2_CTL_A24 (1 << 16)
432 #define LSI2_CTL_A32 (2 << 16)
433 #define LSI2_CTL_CSR (5 << 16)
434 #define LSI2_CTL_USER1 (6 << 16)
435 #define LSI2_CTL_USER2 (7 << 16)
436 #define LSI2_CTL_PGM (1 << 14)
437 #define LSI2_CTL_DATA (0 << 14)
438 #define LSI2_CTL_SUP (1 << 12)
439 #define LSI2_CTL_USR (0 << 12)
440 #define LSI2_CTL_BLK (1 << 8)
441 #define LSI2_CTL_SINGLE (0 << 8)
442 #define LSI2_CTL_PCI_MEM (0 << 0)
443 #define LSI2_CTL_PCI_IO (1 << 0)
444 #define LSI2_CTL_PCI_CONFIG (2 << 0)
448 #define LSI2_BS_MASK 0x0000ffff
452 #define LSI2_BD_MASK 0x0000ffff
456 #define LSI2_TO_MASK 0x0000ffff
460 #define LSI3_CTL_MASK 0x3f380efc
461 #define LSI3_CTL_EN (1 << 31)
462 #define LSI3_CTL_WP (1 << 30)
463 #define LSI3_CTL_D8 (0 << 22)
464 #define LSI3_CTL_D16 (1 << 22)
465 #define LSI3_CTL_D32 (2 << 22)
466 #define LSI3_CTL_D64 (3 << 22)
467 #define LSI3_CTL_A16 (0 << 16)
468 #define LSI3_CTL_A24 (1 << 16)
469 #define LSI3_CTL_A32 (2 << 16)
470 #define LSI3_CTL_CSR (5 << 16)
471 #define LSI3_CTL_USER1 (6 << 16)
472 #define LSI3_CTL_USER2 (7 << 16)
473 #define LSI3_CTL_PGM (1 << 14)
474 #define LSI3_CTL_DATA (0 << 14)
475 #define LSI3_CTL_SUP (1 << 12)
476 #define LSI3_CTL_USR (0 << 12)
477 #define LSI3_CTL_BLK (1 << 8)
478 #define LSI3_CTL_SINGLE (0 << 8)
479 #define LSI3_CTL_PCI_MEM (0 << 0)
480 #define LSI3_CTL_PCI_IO (1 << 0)
481 #define LSI3_CTL_PCI_CONFIG (2 << 0)
485 #define LSI3_BS_MASK 0x0000ffff
489 #define LSI3_BD_MASK 0x0000ffff
493 #define LSI3_TO_MASK 0x0000ffff
497 #define SCYC_CTL_MASK 0xfffffffc
498 #define SCYC_CTL_DISABLE (0)
499 #define SCYC_CTL_RMW (1)
500 #define SCYC_CTL_ADO (2)
504 #define SCYC_ADDR_MASK 0x3
508 #define LMISC_CRT_INFINITE (0 << 28)
509 #define LMISC_CRT_128_USEC (1 << 28)
510 #define LMISC_CRT_256_USEC (2 << 28)
511 #define LMISC_CRT_512_USEC (3 << 28)
512 #define LMISC_CRT_1024_USEC (4 << 28)
513 #define LMISC_CRT_2048_USEC (5 << 28)
514 #define LMISC_CRT_4096_USEC (6 << 28)
516 #define LMISC_CWT_DISABLE (0 << 24)
518 #define LMISC_CWT_16_CLKS (1 << 24)
519 #define LMISC_CWT_32_CLKS (2 << 24)
520 #define LMISC_CWT_64_CLKS (3 << 24)
521 #define LMISC_CWT_128_CLKS (4 << 24)
522 #define LMISC_CWT_256_CLKS (5 << 24)
523 #define LMISC_CWT_512_CLKS (6 << 24)
529 #define SLSI_EN (1 << 31)
530 #define SLSI_WP (1 << 30)
531 #define SLSI_D16 (1 << 20)
532 #define SLSI_D32 (2 << 20)
533 #define SLSI_PGM (1 << 12)
534 #define SLSI_DATA (0 << 12)
535 #define SLSI_SUP (1 << 8)
536 #define SLSI_USR (0 << 8)
537 #define SLSI_PCI_MEM (0 << 0)
538 #define SLSI_PCI_IO (1 << 0)
539 #define SLSI_PCI_CONFIG (2 << 0)
543 #define L_CMDERR_LOG (0xf << 28)
544 #define L_CMDERR_MASK 0x078fffff
545 #define L_CMDERR_M_ERR (1 << 27)
546 #define L_CMDERR_L_STAT (1 << 23)
547 #define L_CMDERR_L_ENABLE (1 << 23)
551 #define DCTL_MASK 0x7f380e7f
552 #define DCTL_L2V (1 << 31)
553 #define DCTL_VDW_8 (0)
554 #define DCTL_VDW_16 (1 << 22)
555 #define DCTL_VDW_32 (2 << 22)
556 #define DCTL_VDW_64 (3 << 22)
557 #define DCTL_VAS_A16 (0)
558 #define DCTL_VAS_A24 (1 << 16)
559 #define DCTL_VAS_A32 (2 << 16)
560 #define DCTL_VAS_USER1 (6 << 16)
561 #define DCTL_VAS_USER2 (7 << 16)
562 #define DCTL_PGM_DATA (0)
563 #define DCTL_PGM_PRGM (1 << 14)
564 #define DCTL_SUPER_USER (0)
565 #define DCTL_SUPER_SUP (1 << 12)
566 #define DCTL_VCT_EN (1 << 8)
567 #define DCTL_LD64EN (1 << 7)
571 #define DTBC_MASK 0xff000000
575 #define DGCS_MASK 0x00000000
576 #define DGCS_GO (1 << 31)
577 #define DGCS_STOP_REQ (1 << 30)
578 #define DGCS_HALT_REQ (1 << 29)
579 #define DGCS_CHAIN (1 << 27)
580 #define DGCS_VON_DONE (0)
581 #define DGCS_VON_256 (1 << 20)
582 #define DGCS_VON_512 (2 << 20)
583 #define DGCS_VON_1024 (3 << 20)
584 #define DGCS_VON_2048 (4 << 20)
585 #define DGCS_VON_4096 (5 << 20)
586 #define DGCS_VON_8192 (6 << 20)
587 #define DGCS_VON_16384 (7 << 20)
588 #define DGCS_VOFF_0 (0)
589 #define DGCS_VOFF_16 (1 << 16)
590 #define DGCS_VOFF_32 (2 << 16)
591 #define DGCS_VOFF_64 (3 << 16)
592 #define DGCS_VOFF_128 (4 << 16)
593 #define DGCS_VOFF_256 (5 << 16)
594 #define DGCS_VOFF_512 (6 << 16)
595 #define DGCS_VOFF_1024 (7 << 16)
596 #define DGCS_ACT (1 << 15)
597 #define DGCS_STOP (1 << 14)
598 #define DGCS_HALT (1 << 13)
599 #define DGCS_DONE (1 << 11)
600 #define DGCS_LERR (1 << 10)
601 #define DGCS_VERR (1 << 9)
602 #define DGCS_P_ERR (1 << 8)
603 #define DGCS_INT_STOP (1 << 6)
604 #define DGCS_INT_HALT (1 << 5)
605 #define DGCS_INT_DONE (1 << 3)
606 #define DGCS_INT_LERR (1 << 2)
607 #define DGCS_INT_VERR (1 << 1)
608 #define DGCS_INT_P_ERR (1)
614 #define PCI_BS_SPACE (1)
618 #define LINT_EN_MASK 0xffff0000
619 #define LINT_EN_ACFAIL (1 << 15)
620 #define LINT_EN_SYSFAIL (1 << 14)
621 #define LINT_EN_SW_INT (1 << 13)
622 #define LINT_EN_SW_IACK (1 << 12)
623 #define LINT_EN_VERR (1 << 10)
624 #define LINT_EN_LERR (1 << 9)
625 #define LINT_EN_DMA (1 << 8)
626 #define LINT_EN_VIRQ7 (1 << 7)
627 #define LINT_EN_VIRQ6 (1 << 6)
628 #define LINT_EN_VIRQ5 (1 << 5)
629 #define LINT_EN_VIRQ4 (1 << 4)
630 #define LINT_EN_VIRQ3 (1 << 3)
631 #define LINT_EN_VIRQ2 (1 << 2)
632 #define LINT_EN_VIRQ1 (1 << 1)
633 #define LINT_EN_VOWN (1 << 0)
637 #define LINT_STAT_MASK 0xffff0800
638 #define LINT_STAT_ACFAIL (1 << 15)
639 #define LINT_STAT_SYSFAIL (1 << 14)
640 #define LINT_STAT_SW_INT (1 << 13)
641 #define LINT_STAT_SW_IACK (1 << 12)
642 #define LINT_STAT_VERR (1 << 10)
643 #define LINT_STAT_LERR (1 << 9)
644 #define LINT_STAT_DMA (1 << 8)
645 #define LINT_STAT_VIRQ7 (1 << 7)
646 #define LINT_STAT_VIRQ6 (1 << 6)
647 #define LINT_STAT_VIRQ5 (1 << 5)
648 #define LINT_STAT_VIRQ4 (1 << 4)
649 #define LINT_STAT_VIRQ3 (1 << 3)
650 #define LINT_STAT_VIRQ2 (1 << 2)
651 #define LINT_STAT_VIRQ1 (1 << 1)
652 #define LINT_STAT_VOWN (1 << 0)
654 #define LINT_STAT_CLEAR 0xf7ff
655 #define LINT_STAT_INT_MASK 0xd7ff
656 #define LINT_STAT_FAIL_MASK 0x0000c000
660 #define LINT_MAP0_MASK 0x88888888
664 #define LINT_MAP1_MASK 0x8888f888
668 #define VINT_EN_MASK 0xffffe800
669 #define VINT_EN_SW_INT (1 << 12)
670 #define VINT_EN_VERR (1 << 10)
671 #define VINT_EN_LERR (1 << 9)
672 #define VINT_EN_DMA (1 << 8)
673 #define VINT_EN_LINT7 (1 << 7)
674 #define VINT_EN_LINT6 (1 << 6)
675 #define VINT_EN_LINT5 (1 << 5)
676 #define VINT_EN_LINT4 (1 << 4)
677 #define VINT_EN_LINT3 (1 << 3)
678 #define VINT_EN_LINT2 (1 << 2)
679 #define VINT_EN_LINT1 (1 << 1)
680 #define VINT_EN_LINT0 (1)
684 #define VINT_STAT_MASK 0xffffe800
685 #define VINT_STAT_SW_INT (1 << 12)
686 #define VINT_STAT_VERR (1 << 10)
687 #define VINT_STAT_LERR (1 << 9)
688 #define VINT_STAT_DMA (1 << 8)
689 #define VINT_STAT_LINT7 (1 << 7)
690 #define VINT_STAT_LINT6 (1 << 6)
691 #define VINT_STAT_LINT5 (1 << 5)
692 #define VINT_STAT_LINT4 (1 << 4)
693 #define VINT_STAT_LINT3 (1 << 3)
694 #define VINT_STAT_LINT2 (1 << 2)
695 #define VINT_STAT_LINT1 (1 << 1)
696 #define VINT_STAT_LINT0 (1)
698 #define VINT_STAT_CLEAR 0x17ff
702 #define VINT_MAP0_MASK 0x88888888
703 #define VINT_MAP0_MAPPING 0x76543210
707 #define VINT_MAP1_MASK 0xfffefeee
708 #define VINT_MAP1_DMA_MASK 0x07
709 #define VINT_MAP1_DMA_LVL_1 0x01
710 #define VINT_MAP1_DMA_LVL_2 0x02
711 #define VINT_MAP1_DMA_LVL_3 0x03
712 #define VINT_MAP1_DMA_LVL_4 0x04
713 #define VINT_MAP1_DMA_LVL_5 0x05
714 #define VINT_MAP1_DMA_LVL_6 0x06
715 #define VINT_MAP1_DMA_LVL_7 0x07
719 #define STATID_MASK 0x1ffffff
723 #define V1_STATID_ERR (1 << 8)
727 #define V2_STATID_ERR (1 << 8)
731 #define V3_STATID_ERR (1 << 8)
735 #define V4_STATID_ERR (1 << 8)
739 #define V5_STATID_ERR (1 << 8)
743 #define V6_STATID_ERR (1 << 8)
747 #define V7_STATID_ERR (1 << 8)
751 #define MAST_CTL_MASK 0x0003ef00
752 #define MAST_CTL_RTRY_FOREVER (0 << 28)
753 #define MAST_CTL_PWON_128 (0 << 24)
754 #define MAST_CTL_PWON_256 (1 << 24)
755 #define MAST_CTL_PWON_512 (2 << 24)
756 #define MAST_CTL_PWON_1024 (3 << 24)
757 #define MAST_CTL_PWON_2048 (4 << 24)
758 #define MAST_CTL_PWON_4096 (5 << 24)
759 #define MAST_CTL_VRL0 (0 << 22)
760 #define MAST_CTL_VRL1 (1 << 22)
761 #define MAST_CTL_VRL2 (2 << 22)
762 #define MAST_CTL_VRL3 (3 << 22)
763 #define MAST_CTL_VRM_FAIR (1 << 21)
764 #define MAST_CTL_VRM_DEMAND (0 << 21)
765 #define MAST_CTL_VREL_RWD (0 << 20)
766 #define MAST_CTL_VREL_ROR (1 << 20)
767 #define MAST_CTL_VOWN (1 << 19)
768 #define MAST_CTL_VOWN_ACK (1 << 18)
769 #define MAST_CTL_PABS_32 (0 << 12)
770 #define MAST_CTL_PABS_64 (1 << 12)
771 #define MAST_CTL_PABS_128 (2 << 12)
775 #define MISC_CTL_MASK 0x0820ffff
776 #define MISC_CTL_VBTO_DISABLE (0 << 28)
777 #define MISC_CTL_VBTO_16USEC (1 << 28)
778 #define MISC_CTL_VBTO_32USEC (2 << 28)
779 #define MISC_CTL_VBTO_64USEC (3 << 28)
780 #define MISC_CTL_VBTO_128USEC (4 << 28)
781 #define MISC_CTL_VBTO_256USEC (5 << 28)
782 #define MISC_CTL_VBTO_512USEC (6 << 28)
783 #define MISC_CTL_VBTO_1024USEC (7 << 28)
784 #define MISC_CTL_VARB_PRIORITY (1 << 26)
785 #define MISC_CTL_VARB_RROBIN (0 << 26)
786 #define MISC_CTL_VARBTO_DISABLE (0 << 24)
787 #define MISC_CTL_VARBTO_16USEC (1 << 24)
788 #define MISC_CTL_VARBTO_256USEC (2 << 24)
789 #define MISC_CTL_SW_LRST (1 << 23)
790 #define MISC_CTL_SW_SRST (1 << 22)
791 #define MISC_CTL_BI_MODE (1 << 20)
792 #define MISC_CTL_ENGBI (1 << 19)
793 #define MISC_CTL_RESCIND (1 << 18)
794 #define MISC_CTL_NO_RESCIND (0 << 18)
795 #define MISC_CTL_SYSCON (1 << 17)
796 #define MISC_CTL_NOT_SYSCON (0 << 17)
797 #define MISC_CTL_V64AUTO (1 << 16)
801 #define MISC_STAT_LCL_SIZE_32 (0 << 30)
802 #define MISC_STAT_LCL_SIZE_64 (1 << 30)
803 #define MISC_STAT_DY4AUTO (1 << 27)
804 #define MISC_STAT_MYBBSY_NEGATED (1 << 21)
805 #define MISC_STAT_DY4DONE (1 << 19)
806 #define MISC_STAT_TXFE (1 << 18)
807 #define MISC_STAT_RXFE (1 << 17)
811 #define VSI0_CTL_MASK 0x1f08ff3c
812 #define VSI0_CTL_EN (1 << 31)
813 #define VSI0_CTL_PWEN (1 << 30)
814 #define VSI0_CTL_PREN (1 << 29)
815 #define VSI0_CTL_AM_DATA (1 << 22)
816 #define VSI0_CTL_AM_PGM (2 << 22)
817 #define VSI0_CTL_AM_SUPER (2 << 20)
818 #define VSI0_CTL_AM_USER (1 << 20)
819 #define VSI0_CTL_VAS_A16 (0 << 16)
820 #define VSI0_CTL_VAS_A24 (1 << 16)
821 #define VSI0_CTL_VAS_A32 (2 << 16)
822 #define VSI0_CTL_VAS_USER1 (6 << 16)
823 #define VSI0_CTL_VAS_USER2 (7 << 16)
824 #define VSI0_CTL_LD64EN (1 << 7)
825 #define VSI0_CTL_LLRMW (1 << 6)
826 #define VSI0_CTL_LAS_MEM (0 << 0)
827 #define VSI0_CTL_LAS_IO (1 << 0)
828 #define VSI0_CTL_LAS_CFG (2 << 0)
832 #define VSI0_BS_MASK 0x00000fff
836 #define VSI0_BD_MASK 0x00000fff
840 #define VSI0_TO_MASK 0x00000fff
844 #define VSI1_CTL_MASK 0x1f08ff3c
845 #define VSI1_CTL_EN (1 << 31)
846 #define VSI1_CTL_PWEN (1 << 30)
847 #define VSI1_CTL_PREN (1 << 29)
848 #define VSI1_CTL_AM_DATA (1 << 22)
849 #define VSI1_CTL_AM_PGM (2 << 22)
850 #define VSI1_CTL_AM_SUPER (2 << 20)
851 #define VSI1_CTL_AM_USER (1 << 20)
852 #define VSI1_CTL_VAS_A16 (0 << 16)
853 #define VSI1_CTL_VAS_A24 (1 << 16)
854 #define VSI1_CTL_VAS_A32 (2 << 16)
855 #define VSI1_CTL_VAS_USER1 (6 << 16)
856 #define VSI1_CTL_VAS_USER2 (7 << 16)
857 #define VSI1_CTL_LD64EN (1 << 7)
858 #define VSI1_CTL_LLRMW (1 << 6)
859 #define VSI1_CTL_LAS_MEM (0 << 0)
860 #define VSI1_CTL_LAS_IO (1 << 0)
861 #define VSI1_CTL_LAS_CFG (2 << 0)
865 #define VSI1_BS_MASK 0x0000ffff
869 #define VSI1_BD_MASK 0x0000ffff
873 #define VSI1_TO_MASK 0x0000ffff
877 #define VSI2_CTL_MASK 0x1f08ff3c
878 #define VSI2_CTL_EN (1 << 31)
879 #define VSI2_CTL_PWEN (1 << 30)
880 #define VSI2_CTL_PREN (1 << 29)
881 #define VSI2_CTL_AM_DATA (1 << 22)
882 #define VSI2_CTL_AM_PGM (2 << 22)
883 #define VSI2_CTL_AM_SUPER (2 << 20)
884 #define VSI2_CTL_AM_USER (1 << 20)
885 #define VSI2_CTL_VAS_A16 (0 << 16)
886 #define VSI2_CTL_VAS_A24 (1 << 16)
887 #define VSI2_CTL_VAS_A32 (2 << 16)
888 #define VSI2_CTL_VAS_USER1 (6 << 16)
889 #define VSI2_CTL_VAS_USER2 (7 << 16)
890 #define VSI2_CTL_LD64EN (1 << 7)
891 #define VSI2_CTL_LLRMW (1 << 6)
892 #define VSI2_CTL_LAS_MEM (0 << 0)
893 #define VSI2_CTL_LAS_IO (1 << 0)
894 #define VSI2_CTL_LAS_CFG (2 << 0)
898 #define VSI2_BS_MASK 0x0000ffff
902 #define VSI2_BD_MASK 0x0000ffff
906 #define VSI2_TO_MASK 0x0000ffff
910 #define VSI3_CTL_MASK 0x1f08ff3c
911 #define VSI3_CTL_EN (1 << 31)
912 #define VSI3_CTL_PWEN (1 << 30)
913 #define VSI3_CTL_PREN (1 << 29)
914 #define VSI3_CTL_AM_DATA (1 << 22)
915 #define VSI3_CTL_AM_PGM (2 << 22)
916 #define VSI3_CTL_AM_SUPER (2 << 20)
917 #define VSI3_CTL_AM_USER (1 << 20)
918 #define VSI3_CTL_VAS_A16 (0 << 16)
919 #define VSI3_CTL_VAS_A24 (1 << 16)
920 #define VSI3_CTL_VAS_A32 (2 << 16)
921 #define VSI3_CTL_VAS_USER1 (6 << 16)
922 #define VSI3_CTL_VAS_USER2 (7 << 16)
923 #define VSI3_CTL_LD64EN (1 << 7)
924 #define VSI3_CTL_LLRMW (1 << 6)
925 #define VSI3_CTL_LAS_MEM (0 << 0)
926 #define VSI3_CTL_LAS_IO (1 << 0)
927 #define VSI3_CTL_LAS_CFG (2 << 0)
931 #define VSI3_BS_MASK 0x0000ffff
935 #define VSI3_BD_MASK 0x0000ffff
939 #define VSI3_TO_MASK 0x0000ffff
943 #define VRAI_CTL_EN (1 << 31)
944 #define VRAI_CTL_AM_DATA (1 << 22)
945 #define VRAI_CTL_AM_PGM (2 << 22)
946 #define VRAI_CTL_AM_SUPER (2 << 20)
947 #define VRAI_CTL_AM_USER (1 << 20)
948 #define VRAI_CTL_VAS_A16 (0 << 16)
949 #define VRAI_CTL_VAS_A24 (1 << 16)
950 #define VRAI_CTL_VAS_A32 (2 << 16)
951 #define VRAI_CTL_VAS_USER1 (6 << 16)
952 #define VRAI_CTL_VAS_USER2 (7 << 16)
958 #define VCSR_CTL_EN (1 << 31)
959 #define VCSR_CTL_LAS_MEM (0 << 0)
960 #define VCSR_CTL_LAS_IO (1 << 0)
961 #define VCSR_CTL_LAS_CFG (2 << 0)
965 #define V_AMERR_MASK 0x07ffffff
966 #define V_AMERR_IACK (1 << 25)
967 #define V_AMERR_M_ERR (1 << 24)
968 #define V_AMERR_V_STAT (1 << 23)
972 #define VCSR_CLR_MASK 0x1fffffff
973 #define VCSR_CLR_RESET (1 << 31)
974 #define VCSR_CLR_SYSFAIL (1 << 30)
975 #define VCSR_CLR_FAIL (1 << 29)
979 #define VCSR_SET_RESET (1 << 31)
980 #define VCSR_SET_SYSFAIL (1 << 30)
981 #define VCSR_SET_FAIL (1 << 29)
985 #define VCSR_BS_MASK 0x3ffffff