9 #ifndef VME_UNIVERSE_UTIL_H 10 #define VME_UNIVERSE_UTIL_H 77 #define VME_MODE_MATCH_MASK (3<<30) 78 #define VME_MODE_EXACT_MATCH (2<<30) 79 #define VME_MODE_AS_MATCH (1<<30) 82 typedef unsigned long LERegister;
100 #define UNIV_REGOFF_PCI_CSR 0x4 101 # define UNIV_PCI_CSR_D_PE (1<<31) 102 # define UNIV_PCI_CSR_S_SERR (1<<30) 103 # define UNIV_PCI_CSR_R_MA (1<<29) 104 # define UNIV_PCI_CSR_R_TA (1<<28) 105 # define UNIV_PCI_CSR_S_TA (1<<27) 106 # define UNIV_PCI_CSR_DEVSEL_MASK (3<<25) 107 # define UNIV_PCI_CSR_DP_D (1<<24) 108 # define UNIV_PCI_CSR_TFBBC (1<<23) 109 # define UNIV_PCI_CSR_MFBBC (1<<9) 110 # define UNIV_PCI_CSR_SERR_EN (1<<8) 111 # define UNIV_PCI_CSR_WAIT (1<<7) 112 # define UNIV_PCI_CSR_PERESP (1<<6) 113 # define UNIV_PCI_CSR_VGAPS (1<<5) 114 # define UNIV_PCI_CSR_MWI_EN (1<<4) 115 # define UNIV_PCI_CSR_SC (1<<3) 116 # define UNIV_PCI_CSR_BM (1<<2) 117 # define UNIV_PCI_CSR_MS (1<<1) 118 # define UNIV_PCI_CSR_IOS (1<<0) 121 #define UNIV_REGOFF_SCYC_CTL 0x170 122 # define UNIV_SCYC_CTL_LAS_IO (1<<2) 123 # define UNIV_SCYC_CTL_SCYC_RMW (1<<0) 124 # define UNIV_SCYC_CTL_SCYC_ADOH (2<<0) 127 #define UNIV_REGOFF_SCYC_ADDR 0x174 130 #define UNIV_REGOFF_SCYC_EN 0x178 133 #define UNIV_REGOFF_SCYC_CMP 0x17c 136 #define UNIV_REGOFF_SCYC_SWP 0x180 139 #define UNIV_REGOFF_LMISC 0x184 140 # define UNIV_LMISC_CRT_MASK (7<<28) 141 # define UNIV_LMISC_CRT_INF (0<<28) 142 # define UNIV_LMISC_CRT_128_US (1<<28) 143 # define UNIV_LMISC_CRT_256_US (2<<28) 144 # define UNIV_LMISC_CRT_512_US (3<<28) 145 # define UNIV_LMISC_CRT_1024_US (4<<28) 146 # define UNIV_LMISC_CRT_2048_US (5<<28) 147 # define UNIV_LMISC_CRT_4096_US (6<<28) 149 # define UNIV_LMISC_CWT_MASK (7<<24) 150 # define UNIV_LMISC_CWT_DISABLE 0 151 # define UNIV_LMISC_CWT_16 (1<<24) 152 # define UNIV_LMISC_CWT_32 (2<<24) 153 # define UNIV_LMISC_CWT_64 (3<<24) 154 # define UNIV_LMISC_CWT_128 (4<<24) 155 # define UNIV_LMISC_CWT_256 (5<<24) 156 # define UNIV_LMISC_CWT_512 (6<<24) 159 #define UNIV_REGOFF_L_CMDERR 0x18c 160 # define UNIV_L_CMDERR_CMDERR(reg) (((reg)>>28)&0xf) 161 # define UNIV_L_CMDERR_M_ERR (1<<27) 162 # define UNIV_L_CMDERR_L_STAT (1<<23) 165 #define UNIV_REGOFF_LAERR 0x190 167 #define UNIV_REGOFF_DCTL 0x200 168 # define UNIV_DCTL_L2V (1<<31) 169 # define UNIV_DCTL_VDW_MSK (3<<22) 170 # define UNIV_DCTL_VDW_8 (0<<22) 171 # define UNIV_DCTL_VDW_16 (1<<22) 172 # define UNIV_DCTL_VDW_32 (2<<22) 173 # define UNIV_DCTL_VDW_64 (3<<22) 174 # define UNIV_DCTL_VAS_MSK (7<<16) 175 # define UNIV_DCTL_VAS_A16 (0<<16) 176 # define UNIV_DCTL_VAS_A24 (1<<16) 177 # define UNIV_DCTL_VAS_A32 (2<<16) 178 # define UNIV_DCTL_PGM_MSK (3<<14) 179 # define UNIV_DCTL_PGM (1<<14) 180 # define UNIV_DCTL_SUPER_MSK (3<<12) 181 # define UNIV_DCTL_SUPER (1<<12) 182 # define UNIV_DCTL_NO_VINC (1<<9) 183 # define UNIV_DCTL_VCT (1<<8) 184 # define UNIV_DCTL_LD64EN (1<<7) 187 #define UNIV_REGOFF_DTBC 0x204 189 #define UNIV_REGOFF_DLA 0x208 193 #define UNIV_REGOFF_DVA 0x210 198 #define UNIV_REGOFF_DCPP 0x218 200 # define UNIV_DCPP_IMG_NULL (1<<0) 201 # define UNIV_DCPP_IMG_PROCESSED (1<<1) 204 #define UNIV_REGOFF_DGCS 0x220 205 # define UNIV_DGCS_GO (1<<31) 206 # define UNIV_DGCS_STOP_REQ (1<<30) 207 # define UNIV_DGCS_HALT_REQ (1<<29) 208 # define UNIV_DGCS_CHAIN (1<<27) 209 # define UNIV_DGCS_VON_MSK (7<<20) 210 # define UNIV_DGCS_VON_DONE (0<<20) 211 # define UNIV_DGCS_VON_256 (1<<20) 212 # define UNIV_DGCS_VON_512 (2<<20) 213 # define UNIV_DGCS_VON_1024 (3<<20) 214 # define UNIV_DGCS_VON_2048 (4<<20) 215 # define UNIV_DGCS_VON_4096 (5<<20) 216 # define UNIV_DGCS_VON_8192 (6<<20) 217 # define UNIV_DGCS_VON_16384 (7<<20) 218 # define UNIV_DGCS_VOFF_MSK (15<<16) 219 # define UNIV_DGCS_VOFF_0_US (0<<16) 220 # define UNIV_DGCS_VOFF_2_US (8<<16) 221 # define UNIV_DGCS_VOFF_4_US (9<<16) 222 # define UNIV_DGCS_VOFF_8_US (10<<16) 223 # define UNIV_DGCS_VOFF_16_US (1<<16) 224 # define UNIV_DGCS_VOFF_32_US (2<<16) 225 # define UNIV_DGCS_VOFF_64_US (3<<16) 226 # define UNIV_DGCS_VOFF_128_US (4<<16) 227 # define UNIV_DGCS_VOFF_256_US (5<<16) 228 # define UNIV_DGCS_VOFF_512_US (6<<16) 229 # define UNIV_DGCS_VOFF_1024_US (7<<16) 231 # define UNIV_DGCS_ACT (1<<15) 232 # define UNIV_DGCS_STOP (1<<14) 233 # define UNIV_DGCS_HALT (1<<13) 234 # define UNIV_DGCS_DONE (1<<11) 235 # define UNIV_DGCS_LERR (1<<10) 236 # define UNIV_DGCS_VERR (1<<9) 237 # define UNIV_DGCS_P_ERR (1<<8) 238 # define UNIV_DGCS_STATUS_CLEAR\ 239 (UNIV_DGCS_ACT|UNIV_DGCS_STOP|UNIV_DGCS_HALT|\ 240 UNIV_DGCS_DONE|UNIV_DGCS_LERR|UNIV_DGCS_VERR|UNIV_DGCS_P_ERR) 241 # define UNIV_DGCS_P_ERR (1<<8) 243 # define UNIV_DGCS_INT_STOP (1<<6) 244 # define UNIV_DGCS_INT_HALT (1<<5) 245 # define UNIV_DGCS_INT_DONE (1<<3) 246 # define UNIV_DGCS_INT_LERR (1<<2) 247 # define UNIV_DGCS_INT_VERR (1<<1) 248 # define UNIV_DGCS_INT_P_ERR (1<<0) 249 # define UNIV_DGCS_INT_MSK (0x0000006f) 252 #define UNIV_REGOFF_D_LLUE 0x224 253 # define UNIV_D_LLUE_UPDATE (1<<31) 257 #define UNIV_REGOFF_LINT_EN 0x300 258 # define UNIV_LINT_EN_LM3 (1<<23) 259 # define UNIV_LINT_EN_LM2 (1<<22) 260 # define UNIV_LINT_EN_LM1 (1<<21) 261 # define UNIV_LINT_EN_LM0 (1<<20) 262 # define UNIV_LINT_EN_MBOX3 (1<<19) 263 # define UNIV_LINT_EN_MBOX2 (1<<18) 264 # define UNIV_LINT_EN_MBOX1 (1<<17) 265 # define UNIV_LINT_EN_MBOX0 (1<<16) 266 # define UNIV_LINT_EN_ACFAIL (1<<15) 267 # define UNIV_LINT_EN_SYSFAIL (1<<14) 268 # define UNIV_LINT_EN_SW_INT (1<<13) 269 # define UNIV_LINT_EN_SW_IACK (1<<12) 270 # define UNIV_LINT_EN_VERR (1<<10) 271 # define UNIV_LINT_EN_LERR (1<<9) 272 # define UNIV_LINT_EN_DMA (1<<8) 273 # define UNIV_LINT_EN_VIRQ7 (1<<7) 274 # define UNIV_LINT_EN_VIRQ6 (1<<6) 275 # define UNIV_LINT_EN_VIRQ5 (1<<5) 276 # define UNIV_LINT_EN_VIRQ4 (1<<4) 277 # define UNIV_LINT_EN_VIRQ3 (1<<3) 278 # define UNIV_LINT_EN_VIRQ2 (1<<2) 279 # define UNIV_LINT_EN_VIRQ1 (1<<1) 280 # define UNIV_LINT_EN_VOWN (1<<0) 283 #define UNIV_REGOFF_LINT_STAT 0x304 284 # define UNIV_LINT_STAT_LM3 (1<<23) 285 # define UNIV_LINT_STAT_LM2 (1<<22) 286 # define UNIV_LINT_STAT_LM1 (1<<21) 287 # define UNIV_LINT_STAT_LM0 (1<<20) 288 # define UNIV_LINT_STAT_MBOX3 (1<<19) 289 # define UNIV_LINT_STAT_MBOX2 (1<<18) 290 # define UNIV_LINT_STAT_MBOX1 (1<<17) 291 # define UNIV_LINT_STAT_MBOX0 (1<<16) 292 # define UNIV_LINT_STAT_ACFAIL (1<<15) 293 # define UNIV_LINT_STAT_SYSFAIL (1<<14) 294 # define UNIV_LINT_STAT_SW_INT (1<<13) 295 # define UNIV_LINT_STAT_SW_IACK (1<<12) 296 # define UNIV_LINT_STAT_VERR (1<<10) 297 # define UNIV_LINT_STAT_LERR (1<<9) 298 # define UNIV_LINT_STAT_DMA (1<<8) 299 # define UNIV_LINT_STAT_VIRQ7 (1<<7) 300 # define UNIV_LINT_STAT_VIRQ6 (1<<6) 301 # define UNIV_LINT_STAT_VIRQ5 (1<<5) 302 # define UNIV_LINT_STAT_VIRQ4 (1<<4) 303 # define UNIV_LINT_STAT_VIRQ3 (1<<3) 304 # define UNIV_LINT_STAT_VIRQ2 (1<<2) 305 # define UNIV_LINT_STAT_VIRQ1 (1<<1) 306 # define UNIV_LINT_STAT_VOWN (1<<0) 307 # define UNIV_LINT_STAT_CLR (0xfff7ff) 310 #define UNIV_REGOFF_LINT_MAP0 0x308 311 # define UNIV_LINT_MAP0_VIRQ7(lint) (((lint)&0x7)<<(7*4)) 312 # define UNIV_LINT_MAP0_VIRQ6(lint) (((lint)&0x7)<<(6*4)) 313 # define UNIV_LINT_MAP0_VIRQ5(lint) (((lint)&0x7)<<(5*4)) 314 # define UNIV_LINT_MAP0_VIRQ4(lint) (((lint)&0x7)<<(4*4)) 315 # define UNIV_LINT_MAP0_VIRQ3(lint) (((lint)&0x7)<<(3*4)) 316 # define UNIV_LINT_MAP0_VIRQ2(lint) (((lint)&0x7)<<(2*4)) 317 # define UNIV_LINT_MAP0_VIRQ1(lint) (((lint)&0x7)<<(1*4)) 318 # define UNIV_LINT_MAP0_VOWN(lint) (((lint)&0x7)<<(0*4)) 320 #define UNIV_REGOFF_LINT_MAP1 0x30c 321 # define UNIV_LINT_MAP1_ACFAIL(lint) (((lint)&0x7)<<(7*4)) 322 # define UNIV_LINT_MAP1_SYSFAIL(lint) (((lint)&0x7)<<(6*4)) 323 # define UNIV_LINT_MAP1_SW_INT(lint) (((lint)&0x7)<<(5*4)) 324 # define UNIV_LINT_MAP1_SW_IACK(lint) (((lint)&0x7)<<(4*4)) 325 # define UNIV_LINT_MAP1_VERR(lint) (((lint)&0x7)<<(2*4)) 326 # define UNIV_LINT_MAP1_LERR(lint) (((lint)&0x7)<<(1*4)) 327 # define UNIV_LINT_MAP1_DMA(lint) (((lint)&0x7)<<(0*4)) 330 #define UNIV_REGOFF_VINT_EN 0x310 331 # define UNIV_VINT_EN_DISABLE_ALL 0 332 # define UNIV_VINT_EN_SWINT (1<<12) 333 # define UNIV_VINT_EN_SWINT_LVL(l) (1<<(((l)&7)+24)) 337 #define UNIV_REGOFF_VINT_STAT 0x314 338 # define UNIV_VINT_STAT_LINT(lint) (1<<((lint)&7)) 339 # define UNIV_VINT_STAT_LINT_MASK (0xff) 340 # define UNIV_VINT_STAT_CLR (0xfe0f17ff) 341 # define UNIV_VINT_STAT_SWINT(l) (1<<(((l)&7)+24)) 343 #define UNIV_REGOFF_VINT_MAP0 0x318 345 #define UNIV_REGOFF_VINT_MAP1 0x31c 346 # define UNIV_VINT_MAP1_SWINT(level) (((level)&0x7)<<16) 352 #define UNIV_REGOFF_VINT_STATID 0x320 353 # define UNIV_VINT_STATID(id) ((id)<<24) 355 #define UNIV_REGOFF_VIRQ1_STATID 0x324 356 #define UNIV_REGOFF_VIRQ2_STATID 0x328 357 #define UNIV_REGOFF_VIRQ3_STATID 0x32c 358 #define UNIV_REGOFF_VIRQ4_STATID 0x330 359 #define UNIV_REGOFF_VIRQ5_STATID 0x334 360 #define UNIV_REGOFF_VIRQ6_STATID 0x338 361 #define UNIV_REGOFF_VIRQ7_STATID 0x33c 362 # define UNIV_VIRQ_ERR (1<<8) 363 # define UNIV_VIRQ_STATID_MASK (0xff) 365 #define UNIV_REGOFF_LINT_MAP2 0x340 366 # define UNIV_LINT_MAP2_LM3(lint) (((lint)&0x7)<<7*4) 367 # define UNIV_LINT_MAP2_LM2(lint) (((lint)&0x7)<<6*4) 368 # define UNIV_LINT_MAP2_LM1(lint) (((lint)&0x7)<<5*4) 369 # define UNIV_LINT_MAP2_LM0(lint) (((lint)&0x7)<<4*4) 370 # define UNIV_LINT_MAP2_MBOX3(lint) (((lint)&0x7)<<3*4) 371 # define UNIV_LINT_MAP2_MBOX2(lint) (((lint)&0x7)<<2*4) 372 # define UNIV_LINT_MAP2_MBOX1(lint) (((lint)&0x7)<<1*4) 373 # define UNIV_LINT_MAP2_MBOX0(lint) (((lint)&0x7)<<0*4) 375 #define UNIV_REGOFF_VINT_MAP2 0x344 376 # define UNIV_VINT_MAP2_MBOX3(vint) (((vint)&0x7)<<3*4) 377 # define UNIV_VINT_MAP2_MBOX2(vint) (((vint)&0x7)<<2*4) 378 # define UNIV_VINT_MAP2_MBOX1(vint) (((vint)&0x7)<<1*4) 379 # define UNIV_VINT_MAP2_MBOX0(vint) (((vint)&0x7)<<0*4) 381 #define UNIV_REGOFF_MBOX0 0x348 382 #define UNIV_REGOFF_MBOX1 0x34c 383 #define UNIV_REGOFF_MBOX2 0x350 384 #define UNIV_REGOFF_MBOX3 0x354 386 #define UNIV_REGOFF_SEMA0 0x358 387 #define UNIV_REGOFF_SEMA1 0x35c 390 #define UNIV_REGOFF_MAST_CTL 0x400 391 # define UNIV_MAST_CTL_MAXRTRY(val) (((val)&0xf)<<7*4) 392 # define UNIV_MAST_CTL_PWON(val) (((val)&0xf)<<6*4) 393 # define UNIV_MAST_CTL_VRL(val) (((val)&0x3)<<22) 394 # define UNIV_MAST_CTL_VRM (1<<21) 395 # define UNIV_MAST_CTL_VREL (1<<20) 396 # define UNIV_MAST_CTL_VOWN (1<<19) 397 # define UNIV_MAST_CTL_VOWN_ACK (1<<18) 398 # define UNIV_MAST_CTL_PABS(val) (((val)&0x3)<<3*4) 399 # define UNIV_MAST_CTL_BUS_NO(val) (((val)&0xff)<<0*4) 401 #define UNIV_REGOFF_MISC_CTL 0x404 402 # define UNIV_MISC_CTL_VBTO(val) (((val)&0x7)<<7*4) 403 # define UNIV_MISC_CTL_VARB (1<<26) 404 # define UNIV_MISC_CTL_VARBTO(val) (((val)&0x3)<<6*4) 405 # define UNIV_MISC_CTL_SW_LRST (1<<23) 406 # define UNIV_MISC_CTL_SW_SYSRST (1<<22) 407 # define UNIV_MISC_CTL_BI (1<<20) 408 # define UNIV_MISC_CTL_ENGBI (1<<19) 409 # define UNIV_MISC_CTL_SYSCON (1<<17) 410 # define UNIV_MISC_CTL_V64AUTO (1<<16) 415 #define UNIV_REGOFF_U2SPEC 0x4fc 416 # define UNIV_U2SPEC_DTKFLTR (1<<12) 417 # define UNIV_U2SPEC_MASt11 (1<<10) 418 # define UNIV_U2SPEC_READt27_DEFAULT (0<<8) 419 # define UNIV_U2SPEC_READt27_FAST (1<<8) 420 # define UNIV_U2SPEC_READt27_NODELAY (2<<8) 421 # define UNIV_U2SPEC_POSt28_FAST (1<<2) 422 # define UNIV_U2SPEC_PREt28_FAST (1<<0) 425 #define UNIV_REGOFF_LM_CTL 0xf64 426 # define UNIV_LM_CTL_EN (1<<31) 427 # define UNIV_LM_CTL_PGM (1<<23) 428 # define UNIV_LM_CTL_DATA (1<<22) 429 # define UNIV_LM_CTL_SUPER (1<<21) 430 # define UNIV_LM_CTL_USER (1<<20) 431 # define UNIV_LM_CTL_VAS_A16 (0<<16) 432 # define UNIV_LM_CTL_VAS_A24 (1<<16) 433 # define UNIV_LM_CTL_VAS_A32 (2<<16) 436 #define UNIV_REGOFF_LM_BS 0xf68 439 #define UNIV_REGOFF_VRAI_CTL 0xf70 440 # define UNIV_VRAI_CTL_EN (1<<31) 441 # define UNIV_VRAI_CTL_PGM (1<<23) 442 # define UNIV_VRAI_CTL_DATA (1<<22) 443 # define UNIV_VRAI_CTL_SUPER (1<<21) 444 # define UNIV_VRAI_CTL_USER (1<<20) 445 # define UNIV_VRAI_CTL_VAS_A16 (0<<16) 446 # define UNIV_VRAI_CTL_VAS_A24 (1<<16) 447 # define UNIV_VRAI_CTL_VAS_A32 (2<<16) 448 # define UNIV_VRAI_CTL_VAS_MSK (3<<16) 451 #define UNIV_REGOFF_VRAI_BS 0xf74 454 #define UNIV_REGOFF_VCSR_CTL 0xf80 455 # define UNIV_VCSR_CTL_EN (1<<31) 456 # define UNIV_VCSR_CTL_LAS_PCI_MEM (0<<0) 457 # define UNIV_VCSR_CTL_LAS_PCI_IO (1<<0) 458 # define UNIV_VCSR_CTL_LAS_PCI_CFG (2<<0) 461 #define UNIV_REGOFF_VCSR_TO 0xf84 464 #define UNIV_REGOFF_V_AMERR 0xf88 465 # define UNIV_V_AMERR_AMERR(reg) (((reg)>>26)&0x3f) 466 # define UNIV_V_AMERR_IACK (1<<25) 467 # define UNIV_V_AMERR_M_ERR (1<<24) 468 # define UNIV_V_AMERR_V_STAT (1<<23) 471 #define UNIV_REGOFF_VAERR 0xf8c 474 #define UNIV_REGOFF_VCSR_CLR 0xff4 475 # define UNIV_VCSR_CLR_RESET (1<<31) 476 # define UNIV_VCSR_CLR_SYSFAIL (1<<30) 477 # define UNIV_VCSR_CLR_FAIL (1<<29) 480 #define UNIV_REGOFF_VCSR_SET (0xff8) 481 # define UNIV_VCSR_SET_RESET (1<<31) 482 # define UNIV_VCSR_SET_SYSFAIL (1<<30) 483 # define UNIV_VCSR_SET_FAIL (1<<29) 486 #define UNIV_REGOFF_VCSR_BS 0xffc 487 #define UNIV_VCSR_BS_MASK (0xf8000000) 490 #define UNIV_CSR_OFFSET 0x7f000 500 extern volatile LERegister *vmeUniverse0BaseAddr;
501 extern int vmeUniverse0PciIrqLine;
506 vmeUniverseInit(
void);
512 vmeUniverseReset(
void);
525 vmeUniverseMasterPortsShow(FILE *f);
531 vmeUniverseSlavePortsShow(FILE *f);
535 vmeUniverseDisableAllMasters(
void);
538 vmeUniverseDisableAllSlaves(
void);
563 vmeUniverseMasterPortCfg(
565 unsigned long address_space,
566 unsigned long vme_address,
567 unsigned long local_address,
568 unsigned long length);
594 vmeUniverseXlateAddr(
604 vmeUniverseSlavePortCfg(
606 unsigned long address_space,
607 unsigned long vme_address,
608 unsigned long local_address,
609 unsigned long length);
621 unsigned long local_addr,
622 unsigned long vme_addr,
623 unsigned long count);
626 vmeUniverseStartDMAXX(
627 volatile LERegister *ubase,
628 unsigned long local_addr,
629 unsigned long vme_addr,
630 unsigned long count);
637 vmeUniverseReadReg(
unsigned long offset);
641 vmeUniverseWriteReg(
unsigned long value,
unsigned long offset);
647 vmeUniverseCvtToLE(
unsigned long *ptr,
unsigned long num);
651 vmeUniverseResetBus(
void);
658 vmeUniverseReadRegXX(
volatile LERegister *ubase,
unsigned long offset);
661 vmeUniverseWriteRegXX(
volatile LERegister *ubase,
unsigned long value,
unsigned long offset);
664 vmeUniverseXlateAddrXX(
665 volatile LERegister *ubase,
674 vmeUniverseMasterPortCfgXX(
675 volatile LERegister *ubase,
677 unsigned long address_space,
678 unsigned long vme_address,
679 unsigned long local_address,
680 unsigned long length);
683 vmeUniverseSlavePortCfgXX(
684 volatile LERegister *ubase,
686 unsigned long address_space,
687 unsigned long vme_address,
688 unsigned long local_address,
689 unsigned long length);
692 vmeUniverseDisableAllMastersXX(
volatile LERegister *ubase);
695 vmeUniverseDisableAllSlavesXX(
volatile LERegister *ubase);
701 vmeUniverseMasterPortsShowXX(
702 volatile LERegister *ubase,FILE *f);
708 vmeUniverseSlavePortsShowXX(
709 volatile LERegister *ubase,FILE *f);
745 vmeUniverseIntRaiseXX(
volatile LERegister *base,
int level,
unsigned vector);
748 vmeUniverseIntRaise(
int level,
unsigned vector);
772 vmeUniverseMapCRGXX(
volatile LERegister *base,
unsigned long vme_base,
unsigned long address_space);
775 vmeUniverseMapCRG(
unsigned long vme_base,
unsigned long address_space);
800 typedef void (*VmeUniverseISR) (
void *usrArg,
unsigned long vector);
816 #define UNIV_VOWN_INT_VEC 256 817 #define UNIV_DMA_INT_VEC 257 818 #define UNIV_LERR_INT_VEC 258 819 #define UNIV_VERR_INT_VEC 259 821 #define UNIV_VME_SW_IACK_INT_VEC 261 822 #define UNIV_PCI_SW_INT_VEC 262 823 #define UNIV_SYSFAIL_INT_VEC 263 824 #define UNIV_ACFAIL_INT_VEC 264 825 #define UNIV_MBOX0_INT_VEC 265 826 #define UNIV_MBOX1_INT_VEC 266 827 #define UNIV_MBOX2_INT_VEC 267 828 #define UNIV_MBOX3_INT_VEC 268 829 #define UNIV_LM0_INT_VEC 269 830 #define UNIV_LM1_INT_VEC 270 831 #define UNIV_LM2_INT_VEC 271 832 #define UNIV_LM3_INT_VEC 272 834 #define UNIV_NUM_INT_VECS 273 841 vmeUniverseInstallISR(
unsigned long vector, VmeUniverseISR handler,
void *usrArg);
848 vmeUniverseRemoveISR(
unsigned long vector, VmeUniverseISR handler,
void *usrArg);
854 vmeUniverseISRGet(
unsigned long vector,
void **parg);
864 vmeUniverseIntEnable(
unsigned int level);
866 vmeUniverseIntDisable(
unsigned int level);
877 vmeUniverseIntIsEnabled(
unsigned int level);
915 vmeUniverseIntRoute(
unsigned int level,
unsigned int pin);
943 vmeUniverseIntLoopbackTst(
int level,
unsigned vector);
990 vmeUniverseInstallIrqMgr(
int vmeIrqUnivOut,
992 int specialIrqUnivOut,
993 int specialIrqPicLine);
996 #if defined(__INSIDE_RTEMS_BSP__) 1029 #define VMEUNIVERSE_IRQ_MGR_FLAG_SHARED 1 1030 #define VMEUNIVERSE_IRQ_MGR_FLAG_PW_WORKAROUND 2 1033 vmeUniverseInstallIrqMgrAlt(
int flags,
int uni_pin0,
int pic_pin0, ...);
1036 vmeUniverseInstallIrqMgrVa(
int flags,
int uni_pin0,
int pic_pin0, va_list ap);
vxworks compatible addressing modes
Definition: vmeUniverse.h:88