00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef INCuniverseh
00016 #define INCuniverseh
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifdef _ASMLANGUAGE
00027 #define CASTINT
00028 #else
00029 #define CASTINT (unsigned int *)
00030 #endif
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef UNIVERSE_ADRS
00039 #define UNIVERSE_ADRS(reg) (CASTINT (UNIVERSE_BASE_ADRS + reg ))
00040 #endif
00041
00042 #ifndef UNIV_BUS_ADRS
00043 #define UNIV_BUS_ADRS(reg) (CASTINT (UNIV_BUS_BASE_ADRS + (reg)))
00044 #endif
00045
00046 #ifndef _ASMLANGUAGE
00047
00048 typedef struct
00049 {
00050 UINT32 *regAddr;
00051 UINT32 regVal;
00052 UINT32 regMask;
00053 } UNIVERSE_REG_TYPE;
00054
00055 typedef struct
00056 {
00057 UINT32 pciBs;
00058 UINT32 mastCtl;
00059 UINT32 miscCtl;
00060 UNIVERSE_REG_TYPE pciLsi[4][4];
00061 } UNIVERSE_CNFG_HDR;
00062
00063 #endif
00064
00065
00066
00067 #define LVL0 0x0001
00068 #define LVL1 0x0002
00069 #define LVL2 0x0004
00070 #define LVL3 0x0008
00071 #define LVL4 0x0010
00072 #define LVL5 0x0020
00073 #define LVL6 0x0040
00074 #define LVL7 0x0080
00075
00076
00077
00078 #define UNIVERSE_DMA_INT 0x0100
00079 #define UNIVERSE_LERR_INT 0x0200
00080 #define UNIVERSE_VERR_INT 0x0400
00081 #define UNIVERSE_VME_SW_IACK_INT 0x1000
00082 #define UNIVERSE_PCI_SW_INT 0x2000
00083 #define UNIVERSE_SYSFAIL_INT 0x4000
00084 #define UNIVERSE_ACFAIL_INT 0x8000
00085
00086 #define UNIVERSE_INT_MASK 0x0000f700
00087
00088
00089 #define UNIVERSE_CNFG_OFFSET 0x100
00090
00091
00092
00093
00094
00095
00096
00097
00098 #define UNIVERSE_PCI_ID UNIVERSE_ADRS(0x00)
00099
00100
00101
00102 #define UNIVERSE_PCI_CSR UNIVERSE_ADRS(0x04)
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112 #define UNIVERSE_PCI_CLASS UNIVERSE_ADRS(0x08)
00113
00114
00115
00116 #define UNIVERSE_PCI_MISC0 UNIVERSE_ADRS(0x0c)
00117
00118
00119
00120
00121
00122
00123 #define UNIVERSE_PCI_BS UNIVERSE_ADRS(0x10)
00124
00125
00126
00127 #define UNIVERSE_PCI_MISC1 UNIVERSE_ADRS(0x3c)
00128
00129
00130
00131 #define UNIVERSE_LSI0_CTL UNIVERSE_ADRS(0x100)
00132
00133
00134
00135
00136
00137
00138 #define UNIVERSE_LSI0_BS UNIVERSE_ADRS(0x104)
00139
00140
00141
00142
00143
00144
00145 #define UNIVERSE_LSI0_BD UNIVERSE_ADRS(0x108)
00146
00147
00148
00149
00150
00151
00152 #define UNIVERSE_LSI0_TO UNIVERSE_ADRS(0x10c)
00153
00154
00155
00156 #define UNIVERSE_LSI1_CTL UNIVERSE_ADRS(0x114)
00157
00158
00159
00160
00161
00162
00163 #define UNIVERSE_LSI1_BS UNIVERSE_ADRS(0x118)
00164
00165
00166
00167
00168
00169
00170 #define UNIVERSE_LSI1_BD UNIVERSE_ADRS(0x11C)
00171
00172
00173
00174
00175
00176
00177 #define UNIVERSE_LSI1_TO UNIVERSE_ADRS(0x120)
00178
00179
00180
00181 #define UNIVERSE_LSI2_CTL UNIVERSE_ADRS(0x128)
00182
00183
00184
00185
00186
00187
00188 #define UNIVERSE_LSI2_BS UNIVERSE_ADRS(0x12C)
00189
00190
00191
00192
00193
00194
00195 #define UNIVERSE_LSI2_BD UNIVERSE_ADRS(0x130)
00196
00197
00198
00199
00200
00201
00202 #define UNIVERSE_LSI2_TO UNIVERSE_ADRS(0x134)
00203
00204
00205
00206 #define UNIVERSE_LSI3_CTL UNIVERSE_ADRS(0x13C)
00207
00208
00209
00210
00211
00212
00213 #define UNIVERSE_LSI3_BS UNIVERSE_ADRS(0x140)
00214
00215
00216
00217
00218
00219
00220 #define UNIVERSE_LSI3_BD UNIVERSE_ADRS(0x144)
00221
00222
00223
00224
00225
00226
00227 #define UNIVERSE_LSI3_TO UNIVERSE_ADRS(0x148)
00228
00229
00230
00231
00232
00233
00234 #define UNIVERSE_SCYC_CTL UNIVERSE_ADRS(0x170)
00235
00236
00237
00238
00239
00240
00241 #define UNIVERSE_SCYC_ADDR UNIVERSE_ADRS(0x174)
00242
00243
00244
00245 #define UNIVERSE_SCYC_EN UNIVERSE_ADRS(0x178)
00246
00247
00248
00249 #define UNIVERSE_SCYC_CMP UNIVERSE_ADRS(0x17c)
00250
00251
00252
00253 #define UNIVERSE_SCYC_SWP UNIVERSE_ADRS(0x180)
00254
00255
00256
00257 #define UNIVERSE_LMISC UNIVERSE_ADRS(0x184)
00258 #define UNIVERSE_SLSI UNIVERSE_ADRS(0x188)
00259 #define UNIVERSE_L_CMDERR UNIVERSE_ADRS(0x18c)
00260 #define UNIVERSE_LAERR UNIVERSE_ADRS(0x190)
00261 #define UNIVERSE_DCTL UNIVERSE_ADRS(0x200)
00262 #define UNIVERSE_DTBC UNIVERSE_ADRS(0x204)
00263 #define UNIVERSE_DLA UNIVERSE_ADRS(0x208)
00264 #define UNIVERSE_DVA UNIVERSE_ADRS(0x210)
00265 #define UNIVERSE_DCPP UNIVERSE_ADRS(0x218)
00266 #define UNIVERSE_DGCS UNIVERSE_ADRS(0x220)
00267 #define UNIVERSE_D_LLUE UNIVERSE_ADRS(0x224)
00268 #define UNIVERSE_LINT_EN UNIVERSE_ADRS(0x300)
00269 #define UNIVERSE_LINT_STAT UNIVERSE_ADRS(0x304)
00270 #define UNIVERSE_LINT_MAP0 UNIVERSE_ADRS(0x308)
00271 #define UNIVERSE_LINT_MAP1 UNIVERSE_ADRS(0x30C)
00272 #define UNIVERSE_VINT_EN UNIVERSE_ADRS(0x310)
00273 #define UNIVERSE_VINT_STAT UNIVERSE_ADRS(0x314)
00274 #define UNIVERSE_VINT_MAP0 UNIVERSE_ADRS(0x318)
00275 #define UNIVERSE_VINT_MAP1 UNIVERSE_ADRS(0x31C)
00276 #define UNIVERSE_STATID UNIVERSE_ADRS(0x320)
00277 #define UNIVERSE_V1_STATID UNIVERSE_ADRS(0x324)
00278 #define UNIVERSE_V2_STATID UNIVERSE_ADRS(0x328)
00279 #define UNIVERSE_V3_STATID UNIVERSE_ADRS(0x32C)
00280 #define UNIVERSE_V4_STATID UNIVERSE_ADRS(0x330)
00281 #define UNIVERSE_V5_STATID UNIVERSE_ADRS(0x334)
00282 #define UNIVERSE_V6_STATID UNIVERSE_ADRS(0x338)
00283 #define UNIVERSE_V7_STATID UNIVERSE_ADRS(0x33C)
00284 #define UNIVERSE_MAST_CTL UNIVERSE_ADRS(0x400)
00285 #define UNIVERSE_MISC_CTL UNIVERSE_ADRS(0x404)
00286 #define UNIVERSE_MISC_STAT UNIVERSE_ADRS(0x408)
00287 #define UNIVERSE_USER_AM UNIVERSE_ADRS(0x40C)
00288 #define UNIVERSE_VSI0_CTL UNIVERSE_ADRS(0xF00)
00289 #define UNIVERSE_VSI0_BS UNIVERSE_ADRS(0xF04)
00290 #define UNIVERSE_VSI0_BD UNIVERSE_ADRS(0xF08)
00291 #define UNIVERSE_VSI0_TO UNIVERSE_ADRS(0xF0C)
00292 #define UNIVERSE_VSI1_CTL UNIVERSE_ADRS(0xF14)
00293 #define UNIVERSE_VSI1_BS UNIVERSE_ADRS(0xF18)
00294 #define UNIVERSE_VSI1_BD UNIVERSE_ADRS(0xF1C)
00295 #define UNIVERSE_VSI1_TO UNIVERSE_ADRS(0xF20)
00296 #define UNIVERSE_VSI2_CTL UNIVERSE_ADRS(0xF28)
00297 #define UNIVERSE_VSI2_BS UNIVERSE_ADRS(0xF2C)
00298 #define UNIVERSE_VSI2_BD UNIVERSE_ADRS(0xF30)
00299 #define UNIVERSE_VSI2_TO UNIVERSE_ADRS(0xF34)
00300 #define UNIVERSE_VSI3_CTL UNIVERSE_ADRS(0xF3C)
00301 #define UNIVERSE_VSI3_BS UNIVERSE_ADRS(0xF40)
00302 #define UNIVERSE_VSI3_BD UNIVERSE_ADRS(0xF44)
00303 #define UNIVERSE_VSI3_TO UNIVERSE_ADRS(0xF48)
00304 #define UNIVERSE_VRAI_CTL UNIVERSE_ADRS(0xF70)
00305 #define UNIVERSE_VRAI_BS UNIVERSE_ADRS(0xF74)
00306 #define UNIVERSE_VCSR_CTL UNIVERSE_ADRS(0xF80)
00307 #define UNIVERSE_VCSR_TO UNIVERSE_ADRS(0xF84)
00308 #define UNIVERSE_V_AMERR UNIVERSE_ADRS(0xF88)
00309 #define UNIVERSE_VAERR UNIVERSE_ADRS(0xF8C)
00310 #define UNIVERSE_VCSR_CLR UNIVERSE_ADRS(0xFF4)
00311 #define UNIVERSE_VCSR_SET UNIVERSE_ADRS(0xFF8)
00312 #define UNIVERSE_VCSR_BS UNIVERSE_ADRS(0xFFC)
00313
00314
00315
00316
00317
00318 #define PCI_MISC0_LATENCY_TIMER 0x0000f800
00319
00320
00321
00322 #define PCI_CSR_MASK 0x007ffc00
00323 #define PCI_CSR_D_PE (1 << 31)
00324 #define PCI_CSR_S_SERR (1 << 30)
00325 #define PCI_CSR_R_MA (1 << 29)
00326 #define PCI_CSR_R_TA (1 << 28)
00327 #define PCI_CSR_S_TA (1 << 27)
00328 #define PCI_CSR_DEVSEL_MEDIUM (1 << 25)
00329 #define PCI_CSR_DP_D (1 << 24)
00330
00331 #define PCI_CSR_TFBBC (1 << 23)
00332
00333 #define PCI_CSR_MFBBC (1 << 9)
00334
00335 #define PCI_CSR_SERR_EN (1 << 8)
00336 #define PCI_CSR_WAIT (1 << 7)
00337 #define PCI_CSR_PERSP (1 << 6)
00338 #define PCI_CSR_VGAPS (1 << 5)
00339 #define PCI_CSR_MWI_EN (1 << 4)
00340
00341 #define PCI_CSR_SC (1 << 3)
00342
00343 #define PCI_CSR_BM (1 << 2)
00344 #define PCI_CSR_MS (1 << 1)
00345 #define PCI_CSR_IOS (1)
00346
00347
00348
00349 #define LSI0_CTL_MASK 0x3f380efc
00350 #define LSI0_CTL_EN (1 << 31)
00351 #define LSI0_CTL_WP (1 << 30)
00352 #define LSI0_CTL_D8 (0 << 22)
00353 #define LSI0_CTL_D16 (1 << 22)
00354 #define LSI0_CTL_D32 (2 << 22)
00355 #define LSI0_CTL_D64 (3 << 22)
00356 #define LSI0_CTL_A16 (0 << 16)
00357 #define LSI0_CTL_A24 (1 << 16)
00358 #define LSI0_CTL_A32 (2 << 16)
00359 #define LSI0_CTL_CSR (5 << 16)
00360 #define LSI0_CTL_USER1 (6 << 16)
00361 #define LSI0_CTL_USER2 (7 << 16)
00362 #define LSI0_CTL_PGM (1 << 14)
00363 #define LSI0_CTL_DATA (0 << 14)
00364 #define LSI0_CTL_SUP (1 << 12)
00365 #define LSI0_CTL_USR (0 << 12)
00366 #define LSI0_CTL_BLK (1 << 8)
00367 #define LSI0_CTL_SINGLE (0 << 8)
00368 #define LSI0_CTL_PCI_MEM (0 << 0)
00369 #define LSI0_CTL_PCI_IO (1 << 0)
00370 #define LSI0_CTL_PCI_CONFIG (2 << 0)
00371
00372
00373
00374 #define LSI0_BS_MASK 0x00000fff
00375
00376
00377
00378 #define LSI0_BD_MASK 0x00000fff
00379
00380
00381
00382 #define LSI0_TO_MASK 0x00000fff
00383
00384
00385
00386 #define LSI1_CTL_MASK 0x3f380efc
00387 #define LSI1_CTL_EN (1 << 31)
00388 #define LSI1_CTL_WP (1 << 30)
00389 #define LSI1_CTL_D8 (0 << 22)
00390 #define LSI1_CTL_D16 (1 << 22)
00391 #define LSI1_CTL_D32 (2 << 22)
00392 #define LSI1_CTL_D64 (3 << 22)
00393 #define LSI1_CTL_A16 (0 << 16)
00394 #define LSI1_CTL_A24 (1 << 16)
00395 #define LSI1_CTL_A32 (2 << 16)
00396 #define LSI1_CTL_CSR (5 << 16)
00397 #define LSI1_CTL_USER1 (6 << 16)
00398 #define LSI1_CTL_USER2 (7 << 16)
00399 #define LSI1_CTL_PGM (1 << 14)
00400 #define LSI1_CTL_DATA (0 << 14)
00401 #define LSI1_CTL_SUP (1 << 12)
00402 #define LSI1_CTL_USR (0 << 12)
00403 #define LSI1_CTL_BLK (1 << 8)
00404 #define LSI1_CTL_SINGLE (0 << 8)
00405 #define LSI1_CTL_PCI_MEM (0 << 0)
00406 #define LSI1_CTL_PCI_IO (1 << 0)
00407 #define LSI1_CTL_PCI_CONFIG (2 << 0)
00408
00409
00410
00411 #define LSI1_BS_MASK 0x0000ffff
00412
00413
00414
00415 #define LSI1_BD_MASK 0x0000ffff
00416
00417
00418
00419 #define LSI1_TO_MASK 0x0000ffff
00420
00421
00422
00423 #define LSI2_CTL_MASK 0x3f380efc
00424 #define LSI2_CTL_EN (1 << 31)
00425 #define LSI2_CTL_WP (1 << 30)
00426 #define LSI2_CTL_D8 (0 << 22)
00427 #define LSI2_CTL_D16 (1 << 22)
00428 #define LSI2_CTL_D32 (2 << 22)
00429 #define LSI2_CTL_D64 (3 << 22)
00430 #define LSI2_CTL_A16 (0 << 16)
00431 #define LSI2_CTL_A24 (1 << 16)
00432 #define LSI2_CTL_A32 (2 << 16)
00433 #define LSI2_CTL_CSR (5 << 16)
00434 #define LSI2_CTL_USER1 (6 << 16)
00435 #define LSI2_CTL_USER2 (7 << 16)
00436 #define LSI2_CTL_PGM (1 << 14)
00437 #define LSI2_CTL_DATA (0 << 14)
00438 #define LSI2_CTL_SUP (1 << 12)
00439 #define LSI2_CTL_USR (0 << 12)
00440 #define LSI2_CTL_BLK (1 << 8)
00441 #define LSI2_CTL_SINGLE (0 << 8)
00442 #define LSI2_CTL_PCI_MEM (0 << 0)
00443 #define LSI2_CTL_PCI_IO (1 << 0)
00444 #define LSI2_CTL_PCI_CONFIG (2 << 0)
00445
00446
00447
00448 #define LSI2_BS_MASK 0x0000ffff
00449
00450
00451
00452 #define LSI2_BD_MASK 0x0000ffff
00453
00454
00455
00456 #define LSI2_TO_MASK 0x0000ffff
00457
00458
00459
00460 #define LSI3_CTL_MASK 0x3f380efc
00461 #define LSI3_CTL_EN (1 << 31)
00462 #define LSI3_CTL_WP (1 << 30)
00463 #define LSI3_CTL_D8 (0 << 22)
00464 #define LSI3_CTL_D16 (1 << 22)
00465 #define LSI3_CTL_D32 (2 << 22)
00466 #define LSI3_CTL_D64 (3 << 22)
00467 #define LSI3_CTL_A16 (0 << 16)
00468 #define LSI3_CTL_A24 (1 << 16)
00469 #define LSI3_CTL_A32 (2 << 16)
00470 #define LSI3_CTL_CSR (5 << 16)
00471 #define LSI3_CTL_USER1 (6 << 16)
00472 #define LSI3_CTL_USER2 (7 << 16)
00473 #define LSI3_CTL_PGM (1 << 14)
00474 #define LSI3_CTL_DATA (0 << 14)
00475 #define LSI3_CTL_SUP (1 << 12)
00476 #define LSI3_CTL_USR (0 << 12)
00477 #define LSI3_CTL_BLK (1 << 8)
00478 #define LSI3_CTL_SINGLE (0 << 8)
00479 #define LSI3_CTL_PCI_MEM (0 << 0)
00480 #define LSI3_CTL_PCI_IO (1 << 0)
00481 #define LSI3_CTL_PCI_CONFIG (2 << 0)
00482
00483
00484
00485 #define LSI3_BS_MASK 0x0000ffff
00486
00487
00488
00489 #define LSI3_BD_MASK 0x0000ffff
00490
00491
00492
00493 #define LSI3_TO_MASK 0x0000ffff
00494
00495
00496
00497 #define SCYC_CTL_MASK 0xfffffffc
00498 #define SCYC_CTL_DISABLE (0)
00499 #define SCYC_CTL_RMW (1)
00500 #define SCYC_CTL_ADO (2)
00501
00502
00503
00504 #define SCYC_ADDR_MASK 0x3
00505
00506
00507
00508 #define LMISC_CRT_INFINITE (0 << 28)
00509 #define LMISC_CRT_128_USEC (1 << 28)
00510 #define LMISC_CRT_256_USEC (2 << 28)
00511 #define LMISC_CRT_512_USEC (3 << 28)
00512 #define LMISC_CRT_1024_USEC (4 << 28)
00513 #define LMISC_CRT_2048_USEC (5 << 28)
00514 #define LMISC_CRT_4096_USEC (6 << 28)
00515
00516 #define LMISC_CWT_DISABLE (0 << 24)
00517
00518 #define LMISC_CWT_16_CLKS (1 << 24)
00519 #define LMISC_CWT_32_CLKS (2 << 24)
00520 #define LMISC_CWT_64_CLKS (3 << 24)
00521 #define LMISC_CWT_128_CLKS (4 << 24)
00522 #define LMISC_CWT_256_CLKS (5 << 24)
00523 #define LMISC_CWT_512_CLKS (6 << 24)
00524
00525
00526
00527
00528
00529 #define SLSI_EN (1 << 31)
00530 #define SLSI_WP (1 << 30)
00531 #define SLSI_D16 (1 << 20)
00532 #define SLSI_D32 (2 << 20)
00533 #define SLSI_PGM (1 << 12)
00534 #define SLSI_DATA (0 << 12)
00535 #define SLSI_SUP (1 << 8)
00536 #define SLSI_USR (0 << 8)
00537 #define SLSI_PCI_MEM (0 << 0)
00538 #define SLSI_PCI_IO (1 << 0)
00539 #define SLSI_PCI_CONFIG (2 << 0)
00540
00541
00542
00543 #define L_CMDERR_LOG (0xf << 28)
00544 #define L_CMDERR_MASK 0x078fffff
00545 #define L_CMDERR_M_ERR (1 << 27)
00546 #define L_CMDERR_L_STAT (1 << 23)
00547 #define L_CMDERR_L_ENABLE (1 << 23)
00548
00549
00550
00551 #define DCTL_MASK 0x7f380e7f
00552 #define DCTL_L2V (1 << 31)
00553 #define DCTL_VDW_8 (0)
00554 #define DCTL_VDW_16 (1 << 22)
00555 #define DCTL_VDW_32 (2 << 22)
00556 #define DCTL_VDW_64 (3 << 22)
00557 #define DCTL_VAS_A16 (0)
00558 #define DCTL_VAS_A24 (1 << 16)
00559 #define DCTL_VAS_A32 (2 << 16)
00560 #define DCTL_VAS_USER1 (6 << 16)
00561 #define DCTL_VAS_USER2 (7 << 16)
00562 #define DCTL_PGM_DATA (0)
00563 #define DCTL_PGM_PRGM (1 << 14)
00564 #define DCTL_SUPER_USER (0)
00565 #define DCTL_SUPER_SUP (1 << 12)
00566 #define DCTL_VCT_EN (1 << 8)
00567 #define DCTL_LD64EN (1 << 7)
00568
00569
00570
00571 #define DTBC_MASK 0xff000000
00572
00573
00574
00575 #define DGCS_MASK 0x00000000
00576 #define DGCS_GO (1 << 31)
00577 #define DGCS_STOP_REQ (1 << 30)
00578 #define DGCS_HALT_REQ (1 << 29)
00579 #define DGCS_CHAIN (1 << 27)
00580 #define DGCS_VON_DONE (0)
00581 #define DGCS_VON_256 (1 << 20)
00582 #define DGCS_VON_512 (2 << 20)
00583 #define DGCS_VON_1024 (3 << 20)
00584 #define DGCS_VON_2048 (4 << 20)
00585 #define DGCS_VON_4096 (5 << 20)
00586 #define DGCS_VON_8192 (6 << 20)
00587 #define DGCS_VON_16384 (7 << 20)
00588 #define DGCS_VOFF_0 (0)
00589 #define DGCS_VOFF_16 (1 << 16)
00590 #define DGCS_VOFF_32 (2 << 16)
00591 #define DGCS_VOFF_64 (3 << 16)
00592 #define DGCS_VOFF_128 (4 << 16)
00593 #define DGCS_VOFF_256 (5 << 16)
00594 #define DGCS_VOFF_512 (6 << 16)
00595 #define DGCS_VOFF_1024 (7 << 16)
00596 #define DGCS_ACT (1 << 15)
00597 #define DGCS_STOP (1 << 14)
00598 #define DGCS_HALT (1 << 13)
00599 #define DGCS_DONE (1 << 11)
00600 #define DGCS_LERR (1 << 10)
00601 #define DGCS_VERR (1 << 9)
00602 #define DGCS_P_ERR (1 << 8)
00603 #define DGCS_INT_STOP (1 << 6)
00604 #define DGCS_INT_HALT (1 << 5)
00605 #define DGCS_INT_DONE (1 << 3)
00606 #define DGCS_INT_LERR (1 << 2)
00607 #define DGCS_INT_VERR (1 << 1)
00608 #define DGCS_INT_P_ERR (1)
00609
00610
00611
00612
00613
00614 #define PCI_BS_SPACE (1)
00615
00616
00617
00618 #define LINT_EN_MASK 0xffff0000
00619 #define LINT_EN_ACFAIL (1 << 15)
00620 #define LINT_EN_SYSFAIL (1 << 14)
00621 #define LINT_EN_SW_INT (1 << 13)
00622 #define LINT_EN_SW_IACK (1 << 12)
00623 #define LINT_EN_VERR (1 << 10)
00624 #define LINT_EN_LERR (1 << 9)
00625 #define LINT_EN_DMA (1 << 8)
00626 #define LINT_EN_VIRQ7 (1 << 7)
00627 #define LINT_EN_VIRQ6 (1 << 6)
00628 #define LINT_EN_VIRQ5 (1 << 5)
00629 #define LINT_EN_VIRQ4 (1 << 4)
00630 #define LINT_EN_VIRQ3 (1 << 3)
00631 #define LINT_EN_VIRQ2 (1 << 2)
00632 #define LINT_EN_VIRQ1 (1 << 1)
00633 #define LINT_EN_VOWN (1 << 0)
00634
00635
00636
00637 #define LINT_STAT_MASK 0xffff0800
00638 #define LINT_STAT_ACFAIL (1 << 15)
00639 #define LINT_STAT_SYSFAIL (1 << 14)
00640 #define LINT_STAT_SW_INT (1 << 13)
00641 #define LINT_STAT_SW_IACK (1 << 12)
00642 #define LINT_STAT_VERR (1 << 10)
00643 #define LINT_STAT_LERR (1 << 9)
00644 #define LINT_STAT_DMA (1 << 8)
00645 #define LINT_STAT_VIRQ7 (1 << 7)
00646 #define LINT_STAT_VIRQ6 (1 << 6)
00647 #define LINT_STAT_VIRQ5 (1 << 5)
00648 #define LINT_STAT_VIRQ4 (1 << 4)
00649 #define LINT_STAT_VIRQ3 (1 << 3)
00650 #define LINT_STAT_VIRQ2 (1 << 2)
00651 #define LINT_STAT_VIRQ1 (1 << 1)
00652 #define LINT_STAT_VOWN (1 << 0)
00653
00654 #define LINT_STAT_CLEAR 0xf7ff
00655 #define LINT_STAT_INT_MASK 0xd7ff
00656 #define LINT_STAT_FAIL_MASK 0x0000c000
00657
00658
00659
00660 #define LINT_MAP0_MASK 0x88888888
00661
00662
00663
00664 #define LINT_MAP1_MASK 0x8888f888
00665
00666
00667
00668 #define VINT_EN_MASK 0xffffe800
00669 #define VINT_EN_SW_INT (1 << 12)
00670 #define VINT_EN_VERR (1 << 10)
00671 #define VINT_EN_LERR (1 << 9)
00672 #define VINT_EN_DMA (1 << 8)
00673 #define VINT_EN_LINT7 (1 << 7)
00674 #define VINT_EN_LINT6 (1 << 6)
00675 #define VINT_EN_LINT5 (1 << 5)
00676 #define VINT_EN_LINT4 (1 << 4)
00677 #define VINT_EN_LINT3 (1 << 3)
00678 #define VINT_EN_LINT2 (1 << 2)
00679 #define VINT_EN_LINT1 (1 << 1)
00680 #define VINT_EN_LINT0 (1)
00681
00682
00683
00684 #define VINT_STAT_MASK 0xffffe800
00685 #define VINT_STAT_SW_INT (1 << 12)
00686 #define VINT_STAT_VERR (1 << 10)
00687 #define VINT_STAT_LERR (1 << 9)
00688 #define VINT_STAT_DMA (1 << 8)
00689 #define VINT_STAT_LINT7 (1 << 7)
00690 #define VINT_STAT_LINT6 (1 << 6)
00691 #define VINT_STAT_LINT5 (1 << 5)
00692 #define VINT_STAT_LINT4 (1 << 4)
00693 #define VINT_STAT_LINT3 (1 << 3)
00694 #define VINT_STAT_LINT2 (1 << 2)
00695 #define VINT_STAT_LINT1 (1 << 1)
00696 #define VINT_STAT_LINT0 (1)
00697
00698 #define VINT_STAT_CLEAR 0x17ff
00699
00700
00701
00702 #define VINT_MAP0_MASK 0x88888888
00703 #define VINT_MAP0_MAPPING 0x76543210
00704
00705
00706
00707 #define VINT_MAP1_MASK 0xfffefeee
00708 #define VINT_MAP1_DMA_MASK 0x07
00709 #define VINT_MAP1_DMA_LVL_1 0x01
00710 #define VINT_MAP1_DMA_LVL_2 0x02
00711 #define VINT_MAP1_DMA_LVL_3 0x03
00712 #define VINT_MAP1_DMA_LVL_4 0x04
00713 #define VINT_MAP1_DMA_LVL_5 0x05
00714 #define VINT_MAP1_DMA_LVL_6 0x06
00715 #define VINT_MAP1_DMA_LVL_7 0x07
00716
00717
00718
00719 #define STATID_MASK 0x1ffffff
00720
00721
00722
00723 #define V1_STATID_ERR (1 << 8)
00724
00725
00726
00727 #define V2_STATID_ERR (1 << 8)
00728
00729
00730
00731 #define V3_STATID_ERR (1 << 8)
00732
00733
00734
00735 #define V4_STATID_ERR (1 << 8)
00736
00737
00738
00739 #define V5_STATID_ERR (1 << 8)
00740
00741
00742
00743 #define V6_STATID_ERR (1 << 8)
00744
00745
00746
00747 #define V7_STATID_ERR (1 << 8)
00748
00749
00750
00751 #define MAST_CTL_MASK 0x0003ef00
00752 #define MAST_CTL_RTRY_FOREVER (0 << 28)
00753 #define MAST_CTL_PWON_128 (0 << 24)
00754 #define MAST_CTL_PWON_256 (1 << 24)
00755 #define MAST_CTL_PWON_512 (2 << 24)
00756 #define MAST_CTL_PWON_1024 (3 << 24)
00757 #define MAST_CTL_PWON_2048 (4 << 24)
00758 #define MAST_CTL_PWON_4096 (5 << 24)
00759 #define MAST_CTL_VRL0 (0 << 22)
00760 #define MAST_CTL_VRL1 (1 << 22)
00761 #define MAST_CTL_VRL2 (2 << 22)
00762 #define MAST_CTL_VRL3 (3 << 22)
00763 #define MAST_CTL_VRM_FAIR (1 << 21)
00764 #define MAST_CTL_VRM_DEMAND (0 << 21)
00765 #define MAST_CTL_VREL_RWD (0 << 20)
00766 #define MAST_CTL_VREL_ROR (1 << 20)
00767 #define MAST_CTL_VOWN (1 << 19)
00768 #define MAST_CTL_VOWN_ACK (1 << 18)
00769 #define MAST_CTL_PABS_32 (0 << 12)
00770 #define MAST_CTL_PABS_64 (1 << 12)
00771 #define MAST_CTL_PABS_128 (2 << 12)
00772
00773
00774
00775 #define MISC_CTL_MASK 0x0820ffff
00776 #define MISC_CTL_VBTO_DISABLE (0 << 28)
00777 #define MISC_CTL_VBTO_16USEC (1 << 28)
00778 #define MISC_CTL_VBTO_32USEC (2 << 28)
00779 #define MISC_CTL_VBTO_64USEC (3 << 28)
00780 #define MISC_CTL_VBTO_128USEC (4 << 28)
00781 #define MISC_CTL_VBTO_256USEC (5 << 28)
00782 #define MISC_CTL_VBTO_512USEC (6 << 28)
00783 #define MISC_CTL_VBTO_1024USEC (7 << 28)
00784 #define MISC_CTL_VARB_PRIORITY (1 << 26)
00785 #define MISC_CTL_VARB_RROBIN (0 << 26)
00786 #define MISC_CTL_VARBTO_DISABLE (0 << 24)
00787 #define MISC_CTL_VARBTO_16USEC (1 << 24)
00788 #define MISC_CTL_VARBTO_256USEC (2 << 24)
00789 #define MISC_CTL_SW_LRST (1 << 23)
00790 #define MISC_CTL_SW_SRST (1 << 22)
00791 #define MISC_CTL_BI_MODE (1 << 20)
00792 #define MISC_CTL_ENGBI (1 << 19)
00793 #define MISC_CTL_RESCIND (1 << 18)
00794 #define MISC_CTL_NO_RESCIND (0 << 18)
00795 #define MISC_CTL_SYSCON (1 << 17)
00796 #define MISC_CTL_NOT_SYSCON (0 << 17)
00797 #define MISC_CTL_V64AUTO (1 << 16)
00798
00799
00800
00801 #define MISC_STAT_LCL_SIZE_32 (0 << 30)
00802 #define MISC_STAT_LCL_SIZE_64 (1 << 30)
00803 #define MISC_STAT_DY4AUTO (1 << 27)
00804 #define MISC_STAT_MYBBSY_NEGATED (1 << 21)
00805 #define MISC_STAT_DY4DONE (1 << 19)
00806 #define MISC_STAT_TXFE (1 << 18)
00807 #define MISC_STAT_RXFE (1 << 17)
00808
00809
00810
00811 #define VSI0_CTL_MASK 0x1f08ff3c
00812 #define VSI0_CTL_EN (1 << 31)
00813 #define VSI0_CTL_PWEN (1 << 30)
00814 #define VSI0_CTL_PREN (1 << 29)
00815 #define VSI0_CTL_AM_DATA (1 << 22)
00816 #define VSI0_CTL_AM_PGM (2 << 22)
00817 #define VSI0_CTL_AM_SUPER (2 << 20)
00818 #define VSI0_CTL_AM_USER (1 << 20)
00819 #define VSI0_CTL_VAS_A16 (0 << 16)
00820 #define VSI0_CTL_VAS_A24 (1 << 16)
00821 #define VSI0_CTL_VAS_A32 (2 << 16)
00822 #define VSI0_CTL_VAS_USER1 (6 << 16)
00823 #define VSI0_CTL_VAS_USER2 (7 << 16)
00824 #define VSI0_CTL_LD64EN (1 << 7)
00825 #define VSI0_CTL_LLRMW (1 << 6)
00826 #define VSI0_CTL_LAS_MEM (0 << 0)
00827 #define VSI0_CTL_LAS_IO (1 << 0)
00828 #define VSI0_CTL_LAS_CFG (2 << 0)
00829
00830
00831
00832 #define VSI0_BS_MASK 0x00000fff
00833
00834
00835
00836 #define VSI0_BD_MASK 0x00000fff
00837
00838
00839
00840 #define VSI0_TO_MASK 0x00000fff
00841
00842
00843
00844 #define VSI1_CTL_MASK 0x1f08ff3c
00845 #define VSI1_CTL_EN (1 << 31)
00846 #define VSI1_CTL_PWEN (1 << 30)
00847 #define VSI1_CTL_PREN (1 << 29)
00848 #define VSI1_CTL_AM_DATA (1 << 22)
00849 #define VSI1_CTL_AM_PGM (2 << 22)
00850 #define VSI1_CTL_AM_SUPER (2 << 20)
00851 #define VSI1_CTL_AM_USER (1 << 20)
00852 #define VSI1_CTL_VAS_A16 (0 << 16)
00853 #define VSI1_CTL_VAS_A24 (1 << 16)
00854 #define VSI1_CTL_VAS_A32 (2 << 16)
00855 #define VSI1_CTL_VAS_USER1 (6 << 16)
00856 #define VSI1_CTL_VAS_USER2 (7 << 16)
00857 #define VSI1_CTL_LD64EN (1 << 7)
00858 #define VSI1_CTL_LLRMW (1 << 6)
00859 #define VSI1_CTL_LAS_MEM (0 << 0)
00860 #define VSI1_CTL_LAS_IO (1 << 0)
00861 #define VSI1_CTL_LAS_CFG (2 << 0)
00862
00863
00864
00865 #define VSI1_BS_MASK 0x0000ffff
00866
00867
00868
00869 #define VSI1_BD_MASK 0x0000ffff
00870
00871
00872
00873 #define VSI1_TO_MASK 0x0000ffff
00874
00875
00876
00877 #define VSI2_CTL_MASK 0x1f08ff3c
00878 #define VSI2_CTL_EN (1 << 31)
00879 #define VSI2_CTL_PWEN (1 << 30)
00880 #define VSI2_CTL_PREN (1 << 29)
00881 #define VSI2_CTL_AM_DATA (1 << 22)
00882 #define VSI2_CTL_AM_PGM (2 << 22)
00883 #define VSI2_CTL_AM_SUPER (2 << 20)
00884 #define VSI2_CTL_AM_USER (1 << 20)
00885 #define VSI2_CTL_VAS_A16 (0 << 16)
00886 #define VSI2_CTL_VAS_A24 (1 << 16)
00887 #define VSI2_CTL_VAS_A32 (2 << 16)
00888 #define VSI2_CTL_VAS_USER1 (6 << 16)
00889 #define VSI2_CTL_VAS_USER2 (7 << 16)
00890 #define VSI2_CTL_LD64EN (1 << 7)
00891 #define VSI2_CTL_LLRMW (1 << 6)
00892 #define VSI2_CTL_LAS_MEM (0 << 0)
00893 #define VSI2_CTL_LAS_IO (1 << 0)
00894 #define VSI2_CTL_LAS_CFG (2 << 0)
00895
00896
00897
00898 #define VSI2_BS_MASK 0x0000ffff
00899
00900
00901
00902 #define VSI2_BD_MASK 0x0000ffff
00903
00904
00905
00906 #define VSI2_TO_MASK 0x0000ffff
00907
00908
00909
00910 #define VSI3_CTL_MASK 0x1f08ff3c
00911 #define VSI3_CTL_EN (1 << 31)
00912 #define VSI3_CTL_PWEN (1 << 30)
00913 #define VSI3_CTL_PREN (1 << 29)
00914 #define VSI3_CTL_AM_DATA (1 << 22)
00915 #define VSI3_CTL_AM_PGM (2 << 22)
00916 #define VSI3_CTL_AM_SUPER (2 << 20)
00917 #define VSI3_CTL_AM_USER (1 << 20)
00918 #define VSI3_CTL_VAS_A16 (0 << 16)
00919 #define VSI3_CTL_VAS_A24 (1 << 16)
00920 #define VSI3_CTL_VAS_A32 (2 << 16)
00921 #define VSI3_CTL_VAS_USER1 (6 << 16)
00922 #define VSI3_CTL_VAS_USER2 (7 << 16)
00923 #define VSI3_CTL_LD64EN (1 << 7)
00924 #define VSI3_CTL_LLRMW (1 << 6)
00925 #define VSI3_CTL_LAS_MEM (0 << 0)
00926 #define VSI3_CTL_LAS_IO (1 << 0)
00927 #define VSI3_CTL_LAS_CFG (2 << 0)
00928
00929
00930
00931 #define VSI3_BS_MASK 0x0000ffff
00932
00933
00934
00935 #define VSI3_BD_MASK 0x0000ffff
00936
00937
00938
00939 #define VSI3_TO_MASK 0x0000ffff
00940
00941
00942
00943 #define VRAI_CTL_EN (1 << 31)
00944 #define VRAI_CTL_AM_DATA (1 << 22)
00945 #define VRAI_CTL_AM_PGM (2 << 22)
00946 #define VRAI_CTL_AM_SUPER (2 << 20)
00947 #define VRAI_CTL_AM_USER (1 << 20)
00948 #define VRAI_CTL_VAS_A16 (0 << 16)
00949 #define VRAI_CTL_VAS_A24 (1 << 16)
00950 #define VRAI_CTL_VAS_A32 (2 << 16)
00951 #define VRAI_CTL_VAS_USER1 (6 << 16)
00952 #define VRAI_CTL_VAS_USER2 (7 << 16)
00953
00954
00955
00956
00957
00958 #define VCSR_CTL_EN (1 << 31)
00959 #define VCSR_CTL_LAS_MEM (0 << 0)
00960 #define VCSR_CTL_LAS_IO (1 << 0)
00961 #define VCSR_CTL_LAS_CFG (2 << 0)
00962
00963
00964
00965 #define V_AMERR_MASK 0x07ffffff
00966 #define V_AMERR_IACK (1 << 25)
00967 #define V_AMERR_M_ERR (1 << 24)
00968 #define V_AMERR_V_STAT (1 << 23)
00969
00970
00971
00972 #define VCSR_CLR_MASK 0x1fffffff
00973 #define VCSR_CLR_RESET (1 << 31)
00974 #define VCSR_CLR_SYSFAIL (1 << 30)
00975 #define VCSR_CLR_FAIL (1 << 29)
00976
00977
00978
00979 #define VCSR_SET_RESET (1 << 31)
00980 #define VCSR_SET_SYSFAIL (1 << 30)
00981 #define VCSR_SET_FAIL (1 << 29)
00982
00983
00984
00985 #define VCSR_BS_MASK 0x3ffffff
00986
00987 #endif