|
#define | VME_MODE_MATCH_MASK (3<<30) |
|
#define | VME_MODE_EXACT_MATCH (2<<30) /* all bits must match */ |
|
#define | VME_MODE_AS_MATCH (1<<30) /* only A16/24/32 must match */ |
|
#define | UNIV_REGOFF_PCI_CSR 0x4 |
|
#define | UNIV_PCI_CSR_D_PE (1<<31) /* detected parity error; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_S_SERR (1<<30) /* SERR (signalled error) asserted; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_R_MA (1<<29) /* received master abort; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_R_TA (1<<28) /* received target abort; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_S_TA (1<<27) /* signalled target abort; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_DEVSEL_MASK (3<<25) /* device select timing (RO) */ |
|
#define | UNIV_PCI_CSR_DP_D (1<<24) /* data parity error detected; write 1 to clear */ |
|
#define | UNIV_PCI_CSR_TFBBC (1<<23) /* target fast back to back capable (RO) */ |
|
#define | UNIV_PCI_CSR_MFBBC (1<<9) /* master fast back to back capable (RO) */ |
|
#define | UNIV_PCI_CSR_SERR_EN (1<<8) /* enable SERR driver */ |
|
#define | UNIV_PCI_CSR_WAIT (1<<7) /* wait cycle control (RO) */ |
|
#define | UNIV_PCI_CSR_PERESP (1<<6) /* parity error response enable */ |
|
#define | UNIV_PCI_CSR_VGAPS (1<<5) /* VGA palette snoop (RO) */ |
|
#define | UNIV_PCI_CSR_MWI_EN (1<<4) /* Memory write and invalidate enable (RO) */ |
|
#define | UNIV_PCI_CSR_SC (1<<3) /* special cycles (RO) */ |
|
#define | UNIV_PCI_CSR_BM (1<<2) /* master enable (MUST SET TO ENABLE VME SLAVES) */ |
|
#define | UNIV_PCI_CSR_MS (1<<1) /* target memory enable */ |
|
#define | UNIV_PCI_CSR_IOS (1<<0) /* target IO enable */ |
|
#define | UNIV_REGOFF_SCYC_CTL 0x170 /* write 0 to disable */ |
|
#define | UNIV_SCYC_CTL_LAS_IO (1<<2) /* PCI address space (1: IO, 0: mem) */ |
|
#define | UNIV_SCYC_CTL_SCYC_RMW (1<<0) /* do a RMW cycle when reading PCI address */ |
|
#define | UNIV_SCYC_CTL_SCYC_ADOH (2<<0) /* do a ADOH cycle when reading/writing PCI address */ |
|
#define | UNIV_REGOFF_SCYC_ADDR 0x174 /* PCI address (must be long word aligned) */ |
|
#define | UNIV_REGOFF_SCYC_EN 0x178 /* mask determining the bits involved in the compare and swap operations for VME RMW cycles */ |
|
#define | UNIV_REGOFF_SCYC_CMP 0x17c /* data to compare with word returned from VME RMW read */ |
|
#define | UNIV_REGOFF_SCYC_SWP 0x180 /* If enabled bits of CMP match, corresponding SWP bits are written back to VME (under control of EN) */ |
|
#define | UNIV_REGOFF_LMISC 0x184 |
|
#define | UNIV_LMISC_CRT_MASK (7<<28) /* Univ. I only, not used on II */ |
|
#define | UNIV_LMISC_CRT_INF (0<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_128_US (1<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_256_US (2<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_512_US (3<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_1024_US (4<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_2048_US (5<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CRT_4096_US (6<<28) /* Coupled Request Timeout */ |
|
#define | UNIV_LMISC_CWT_MASK (7<<24) /* coupled window timer */ |
|
#define | UNIV_LMISC_CWT_DISABLE 0 /* disabled (release VME after 1 coupled xaction) */ |
|
#define | UNIV_LMISC_CWT_16 (1<<24) /* 16 PCI clock cycles */ |
|
#define | UNIV_LMISC_CWT_32 (2<<24) /* 32 PCI clock cycles */ |
|
#define | UNIV_LMISC_CWT_64 (3<<24) /* 64 PCI clock cycles */ |
|
#define | UNIV_LMISC_CWT_128 (4<<24) /* 128 PCI clock cycles */ |
|
#define | UNIV_LMISC_CWT_256 (5<<24) /* 256 PCI clock cycles */ |
|
#define | UNIV_LMISC_CWT_512 (6<<24) /* 512 PCI clock cycles */ |
|
#define | UNIV_REGOFF_L_CMDERR 0x18c |
|
#define | UNIV_L_CMDERR_CMDERR(reg) (((reg)>>28)&0xf) /* extract PCI cmd error log */ |
|
#define | UNIV_L_CMDERR_M_ERR (1<<27) /* multiple errors have occurred */ |
|
#define | UNIV_L_CMDERR_L_STAT (1<<23) /* PCI error log status valid (write 1 to clear and enable logging) */ |
|
#define | UNIV_REGOFF_LAERR 0x190 /* PCI fault address (if L_CMDERR_L_STAT valid) */ |
|
#define | UNIV_REGOFF_DCTL 0x200 |
|
#define | UNIV_DCTL_L2V (1<<31) /* PCI->VME if set */ |
|
#define | UNIV_DCTL_VDW_MSK (3<<22) /* VME max. width mask 0x00c00000 */ |
|
#define | UNIV_DCTL_VDW_8 (0<<22) /* VME max. width 8 */ |
|
#define | UNIV_DCTL_VDW_16 (1<<22) /* VME max. width 16 */ |
|
#define | UNIV_DCTL_VDW_32 (2<<22) /* VME max. width 32 */ |
|
#define | UNIV_DCTL_VDW_64 (3<<22) /* VME max. width 64 */ |
|
#define | UNIV_DCTL_VAS_MSK (7<<16) /* VME AS mask 0x00070000 */ |
|
#define | UNIV_DCTL_VAS_A16 (0<<16) /* VME A16 */ |
|
#define | UNIV_DCTL_VAS_A24 (1<<16) /* VME A24 */ |
|
#define | UNIV_DCTL_VAS_A32 (2<<16) /* VME A32 */ |
|
#define | UNIV_DCTL_PGM_MSK (3<<14) /* VME PGM/DATA mask 0x0000c000 */ |
|
#define | UNIV_DCTL_PGM (1<<14) /* VME PGM(1)/DATA(0) */ |
|
#define | UNIV_DCTL_SUPER_MSK (3<<12) /* VME SUPER/USR mask 0x00003000 */ |
|
#define | UNIV_DCTL_SUPER (1<<12) /* VME SUPER(1)/USR(0) */ |
|
#define | UNIV_DCTL_NO_VINC (1<<9) /* VME no VME address increment [Universe IIa/b ONLY */ |
|
#define | UNIV_DCTL_VCT (1<<8) /* VME enable BLT */ |
|
#define | UNIV_DCTL_LD64EN (1<<7) /* PCI 64 enable */ |
|
#define | UNIV_REGOFF_DTBC 0x204 |
|
#define | UNIV_REGOFF_DLA 0x208 |
|
#define | UNIV_REGOFF_DVA 0x210 |
|
#define | UNIV_REGOFF_DCPP 0x218 |
|
#define | UNIV_DCPP_IMG_NULL (1<<0) /* last packet in list */ |
|
#define | UNIV_DCPP_IMG_PROCESSED (1<<1) /* packet processed */ |
|
#define | UNIV_REGOFF_DGCS 0x220 |
|
#define | UNIV_DGCS_GO (1<<31) /* start xfer */ |
|
#define | UNIV_DGCS_STOP_REQ (1<<30) /* stop xfer (immediate abort) */ |
|
#define | UNIV_DGCS_HALT_REQ (1<<29) /* halt xfer (abort after current packet) */ |
|
#define | UNIV_DGCS_CHAIN (1<<27) /* enable linked list mode */ |
|
#define | UNIV_DGCS_VON_MSK (7<<20) /* VON mask */ |
|
#define | UNIV_DGCS_VON_DONE (0<<20) /* VON counter disabled (do until done) */ |
|
#define | UNIV_DGCS_VON_256 (1<<20) /* VON yield bus after 256 bytes */ |
|
#define | UNIV_DGCS_VON_512 (2<<20) /* VON yield bus after 512 bytes */ |
|
#define | UNIV_DGCS_VON_1024 (3<<20) /* VON yield bus after 1024 bytes */ |
|
#define | UNIV_DGCS_VON_2048 (4<<20) /* VON yield bus after 2048 bytes */ |
|
#define | UNIV_DGCS_VON_4096 (5<<20) /* VON yield bus after 4096 bytes */ |
|
#define | UNIV_DGCS_VON_8192 (6<<20) /* VON yield bus after 8192 bytes */ |
|
#define | UNIV_DGCS_VON_16384 (7<<20) /* VON yield bus after 16384 bytes */ |
|
#define | UNIV_DGCS_VOFF_MSK (15<<16) /* VOFF mask */ |
|
#define | UNIV_DGCS_VOFF_0_US (0<<16) /* re-request VME master after 0 us */ |
|
#define | UNIV_DGCS_VOFF_2_US (8<<16) /* re-request VME master after 2 us */ |
|
#define | UNIV_DGCS_VOFF_4_US (9<<16) /* re-request VME master after 4 us */ |
|
#define | UNIV_DGCS_VOFF_8_US (10<<16)/* re-request VME master after 8 us */ |
|
#define | UNIV_DGCS_VOFF_16_US (1<<16) /* re-request VME master after 16 us */ |
|
#define | UNIV_DGCS_VOFF_32_US (2<<16) /* re-request VME master after 32 us */ |
|
#define | UNIV_DGCS_VOFF_64_US (3<<16) /* re-request VME master after 64 us */ |
|
#define | UNIV_DGCS_VOFF_128_US (4<<16) /* re-request VME master after 128 us */ |
|
#define | UNIV_DGCS_VOFF_256_US (5<<16) /* re-request VME master after 256 us */ |
|
#define | UNIV_DGCS_VOFF_512_US (6<<16) /* re-request VME master after 512 us */ |
|
#define | UNIV_DGCS_VOFF_1024_US (7<<16) /* re-request VME master after 1024 us */ |
|
#define | UNIV_DGCS_ACT (1<<15) /* DMA active */ |
|
#define | UNIV_DGCS_STOP (1<<14) /* DMA stopped */ |
|
#define | UNIV_DGCS_HALT (1<<13) /* DMA halted */ |
|
#define | UNIV_DGCS_DONE (1<<11) /* DMA done (OK) */ |
|
#define | UNIV_DGCS_LERR (1<<10) /* PCI bus error */ |
|
#define | UNIV_DGCS_VERR (1<<9) /* VME bus error */ |
|
#define | UNIV_DGCS_P_ERR (1<<8) /* programming protocol error (e.g. PCI master disabled) */ |
|
#define | UNIV_DGCS_STATUS_CLEAR |
|
#define | UNIV_DGCS_P_ERR (1<<8) /* programming protocol error (e.g. PCI master disabled) */ |
|
#define | UNIV_DGCS_INT_STOP (1<<6) /* interrupt when stopped */ |
|
#define | UNIV_DGCS_INT_HALT (1<<5) /* interrupt when halted */ |
|
#define | UNIV_DGCS_INT_DONE (1<<3) /* interrupt when done */ |
|
#define | UNIV_DGCS_INT_LERR (1<<2) /* interrupt on LERR */ |
|
#define | UNIV_DGCS_INT_VERR (1<<1) /* interrupt on VERR */ |
|
#define | UNIV_DGCS_INT_P_ERR (1<<0) /* interrupt on P_ERR */ |
|
#define | UNIV_DGCS_INT_MSK (0x0000006f) /* interrupt mask */ |
|
#define | UNIV_REGOFF_D_LLUE 0x224 |
|
#define | UNIV_D_LLUE_UPDATE (1<<31) |
|
#define | UNIV_REGOFF_LINT_EN 0x300 |
|
#define | UNIV_LINT_EN_LM3 (1<<23) /* location monitor 3 mask */ |
|
#define | UNIV_LINT_EN_LM2 (1<<22) /* location monitor 2 mask */ |
|
#define | UNIV_LINT_EN_LM1 (1<<21) /* location monitor 1 mask */ |
|
#define | UNIV_LINT_EN_LM0 (1<<20) /* location monitor 0 mask */ |
|
#define | UNIV_LINT_EN_MBOX3 (1<<19) /* mailbox 3 mask */ |
|
#define | UNIV_LINT_EN_MBOX2 (1<<18) /* mailbox 2 mask */ |
|
#define | UNIV_LINT_EN_MBOX1 (1<<17) /* mailbox 1 mask */ |
|
#define | UNIV_LINT_EN_MBOX0 (1<<16) /* mailbox 0 mask */ |
|
#define | UNIV_LINT_EN_ACFAIL (1<<15) /* ACFAIL irq mask */ |
|
#define | UNIV_LINT_EN_SYSFAIL (1<<14) /* SYSFAIL irq mask */ |
|
#define | UNIV_LINT_EN_SW_INT (1<<13) /* PCI (local) software irq */ |
|
#define | UNIV_LINT_EN_SW_IACK (1<<12) /* VME software IACK mask */ |
|
#define | UNIV_LINT_EN_VERR (1<<10) /* PCI VERR irq mask */ |
|
#define | UNIV_LINT_EN_LERR (1<<9) /* PCI LERR irq mask */ |
|
#define | UNIV_LINT_EN_DMA (1<<8) /* PCI DMA irq mask */ |
|
#define | UNIV_LINT_EN_VIRQ7 (1<<7) /* VIRQ7 mask (universe does IACK automatically) */ |
|
#define | UNIV_LINT_EN_VIRQ6 (1<<6) /* VIRQ6 mask */ |
|
#define | UNIV_LINT_EN_VIRQ5 (1<<5) /* VIRQ5 mask */ |
|
#define | UNIV_LINT_EN_VIRQ4 (1<<4) /* VIRQ4 mask */ |
|
#define | UNIV_LINT_EN_VIRQ3 (1<<3) /* VIRQ3 mask */ |
|
#define | UNIV_LINT_EN_VIRQ2 (1<<2) /* VIRQ2 mask */ |
|
#define | UNIV_LINT_EN_VIRQ1 (1<<1) /* VIRQ1 mask */ |
|
#define | UNIV_LINT_EN_VOWN (1<<0) /* VOWN mask */ |
|
#define | UNIV_REGOFF_LINT_STAT 0x304 |
|
#define | UNIV_LINT_STAT_LM3 (1<<23) /* location monitor 3 status */ |
|
#define | UNIV_LINT_STAT_LM2 (1<<22) /* location monitor 2 status */ |
|
#define | UNIV_LINT_STAT_LM1 (1<<21) /* location monitor 1 status */ |
|
#define | UNIV_LINT_STAT_LM0 (1<<20) /* location monitor 0 status */ |
|
#define | UNIV_LINT_STAT_MBOX3 (1<<19) /* mailbox 3 status */ |
|
#define | UNIV_LINT_STAT_MBOX2 (1<<18) /* mailbox 2 status */ |
|
#define | UNIV_LINT_STAT_MBOX1 (1<<17) /* mailbox 1 status */ |
|
#define | UNIV_LINT_STAT_MBOX0 (1<<16) /* mailbox 0 status */ |
|
#define | UNIV_LINT_STAT_ACFAIL (1<<15) /* ACFAIL irq status */ |
|
#define | UNIV_LINT_STAT_SYSFAIL (1<<14) /* SYSFAIL irq status */ |
|
#define | UNIV_LINT_STAT_SW_INT (1<<13) /* PCI (local) software irq */ |
|
#define | UNIV_LINT_STAT_SW_IACK (1<<12) /* VME software IACK status */ |
|
#define | UNIV_LINT_STAT_VERR (1<<10) /* PCI VERR irq status */ |
|
#define | UNIV_LINT_STAT_LERR (1<<9) /* PCI LERR irq status */ |
|
#define | UNIV_LINT_STAT_DMA (1<<8) /* PCI DMA irq status */ |
|
#define | UNIV_LINT_STAT_VIRQ7 (1<<7) /* VIRQ7 status */ |
|
#define | UNIV_LINT_STAT_VIRQ6 (1<<6) /* VIRQ6 status */ |
|
#define | UNIV_LINT_STAT_VIRQ5 (1<<5) /* VIRQ5 status */ |
|
#define | UNIV_LINT_STAT_VIRQ4 (1<<4) /* VIRQ4 status */ |
|
#define | UNIV_LINT_STAT_VIRQ3 (1<<3) /* VIRQ3 status */ |
|
#define | UNIV_LINT_STAT_VIRQ2 (1<<2) /* VIRQ2 status */ |
|
#define | UNIV_LINT_STAT_VIRQ1 (1<<1) /* VIRQ1 status */ |
|
#define | UNIV_LINT_STAT_VOWN (1<<0) /* VOWN status */ |
|
#define | UNIV_LINT_STAT_CLR (0xfff7ff)/* Clear all status bits */ |
|
#define | UNIV_REGOFF_LINT_MAP0 0x308 /* mapping of VME IRQ sources to PCI irqs */ |
|
#define | UNIV_LINT_MAP0_VIRQ7(lint) (((lint)&0x7)<<(7*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ6(lint) (((lint)&0x7)<<(6*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ5(lint) (((lint)&0x7)<<(5*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ4(lint) (((lint)&0x7)<<(4*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ3(lint) (((lint)&0x7)<<(3*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ2(lint) (((lint)&0x7)<<(2*4)) |
|
#define | UNIV_LINT_MAP0_VIRQ1(lint) (((lint)&0x7)<<(1*4)) |
|
#define | UNIV_LINT_MAP0_VOWN(lint) (((lint)&0x7)<<(0*4)) |
|
#define | UNIV_REGOFF_LINT_MAP1 0x30c /* mapping of internal / VME IRQ sources to PCI irqs */ |
|
#define | UNIV_LINT_MAP1_ACFAIL(lint) (((lint)&0x7)<<(7*4)) |
|
#define | UNIV_LINT_MAP1_SYSFAIL(lint) (((lint)&0x7)<<(6*4)) |
|
#define | UNIV_LINT_MAP1_SW_INT(lint) (((lint)&0x7)<<(5*4)) |
|
#define | UNIV_LINT_MAP1_SW_IACK(lint) (((lint)&0x7)<<(4*4)) |
|
#define | UNIV_LINT_MAP1_VERR(lint) (((lint)&0x7)<<(2*4)) |
|
#define | UNIV_LINT_MAP1_LERR(lint) (((lint)&0x7)<<(1*4)) |
|
#define | UNIV_LINT_MAP1_DMA(lint) (((lint)&0x7)<<(0*4)) |
|
#define | UNIV_REGOFF_VINT_EN 0x310 |
|
#define | UNIV_VINT_EN_DISABLE_ALL 0 |
|
#define | UNIV_VINT_EN_SWINT (1<<12) |
|
#define | UNIV_VINT_EN_SWINT_LVL(l) (1<<(((l)&7)+24)) /* universe II only */ |
|
#define | UNIV_REGOFF_VINT_STAT 0x314 |
|
#define | UNIV_VINT_STAT_LINT(lint) (1<<((lint)&7)) |
|
#define | UNIV_VINT_STAT_LINT_MASK (0xff) |
|
#define | UNIV_VINT_STAT_CLR (0xfe0f17ff) |
|
#define | UNIV_VINT_STAT_SWINT(l) (1<<(((l)&7)+24)) |
|
#define | UNIV_REGOFF_VINT_MAP0 0x318 /* VME destination of PCI IRQ source, TODO */ |
|
#define | UNIV_REGOFF_VINT_MAP1 0x31c /* VME destination of PCI IRQ source, TODO */ |
|
#define | UNIV_VINT_MAP1_SWINT(level) (((level)&0x7)<<16) |
|
#define | UNIV_REGOFF_VINT_STATID 0x320 /* our status/id response to IACK, TODO */ |
|
#define | UNIV_VINT_STATID(id) ((id)<<24) |
|
#define | UNIV_REGOFF_VIRQ1_STATID 0x324 /* status/id of VME IRQ level 1 */ |
|
#define | UNIV_REGOFF_VIRQ2_STATID 0x328 /* status/id of VME IRQ level 2 */ |
|
#define | UNIV_REGOFF_VIRQ3_STATID 0x32c /* status/id of VME IRQ level 3 */ |
|
#define | UNIV_REGOFF_VIRQ4_STATID 0x330 /* status/id of VME IRQ level 4 */ |
|
#define | UNIV_REGOFF_VIRQ5_STATID 0x334 /* status/id of VME IRQ level 5 */ |
|
#define | UNIV_REGOFF_VIRQ6_STATID 0x338 /* status/id of VME IRQ level 6 */ |
|
#define | UNIV_REGOFF_VIRQ7_STATID 0x33c /* status/id of VME IRQ level 7 */ |
|
#define | UNIV_VIRQ_ERR (1<<8) /* set if universe encountered a bus error when doing IACK */ |
|
#define | UNIV_VIRQ_STATID_MASK (0xff) |
|
#define | UNIV_REGOFF_LINT_MAP2 0x340 /* mapping of internal sources to PCI irqs */ |
|
#define | UNIV_LINT_MAP2_LM3(lint) (((lint)&0x7)<<7*4) /* location monitor 3 */ |
|
#define | UNIV_LINT_MAP2_LM2(lint) (((lint)&0x7)<<6*4) /* location monitor 2 */ |
|
#define | UNIV_LINT_MAP2_LM1(lint) (((lint)&0x7)<<5*4) /* location monitor 1 */ |
|
#define | UNIV_LINT_MAP2_LM0(lint) (((lint)&0x7)<<4*4) /* location monitor 0 */ |
|
#define | UNIV_LINT_MAP2_MBOX3(lint) (((lint)&0x7)<<3*4) /* mailbox 3 */ |
|
#define | UNIV_LINT_MAP2_MBOX2(lint) (((lint)&0x7)<<2*4) /* mailbox 2 */ |
|
#define | UNIV_LINT_MAP2_MBOX1(lint) (((lint)&0x7)<<1*4) /* mailbox 1 */ |
|
#define | UNIV_LINT_MAP2_MBOX0(lint) (((lint)&0x7)<<0*4) /* mailbox 0 */ |
|
#define | UNIV_REGOFF_VINT_MAP2 0x344 /* mapping of internal sources to VME irqs */ |
|
#define | UNIV_VINT_MAP2_MBOX3(vint) (((vint)&0x7)<<3*4) /* mailbox 3 */ |
|
#define | UNIV_VINT_MAP2_MBOX2(vint) (((vint)&0x7)<<2*4) /* mailbox 2 */ |
|
#define | UNIV_VINT_MAP2_MBOX1(vint) (((vint)&0x7)<<1*4) /* mailbox 1 */ |
|
#define | UNIV_VINT_MAP2_MBOX0(vint) (((vint)&0x7)<<0*4) /* mailbox 0 */ |
|
#define | UNIV_REGOFF_MBOX0 0x348 /* mailbox 0 */ |
|
#define | UNIV_REGOFF_MBOX1 0x34c /* mailbox 1 */ |
|
#define | UNIV_REGOFF_MBOX2 0x350 /* mailbox 2 */ |
|
#define | UNIV_REGOFF_MBOX3 0x354 /* mailbox 3 */ |
|
#define | UNIV_REGOFF_SEMA0 0x358 /* semaphore 0 */ |
|
#define | UNIV_REGOFF_SEMA1 0x35c /* semaphore 0 */ |
|
#define | UNIV_REGOFF_MAST_CTL 0x400 /* master control register */ |
|
#define | UNIV_MAST_CTL_MAXRTRY(val) (((val)&0xf)<<7*4) /* max # of pci master retries */ |
|
#define | UNIV_MAST_CTL_PWON(val) (((val)&0xf)<<6*4) /* posted write xfer count */ |
|
#define | UNIV_MAST_CTL_VRL(val) (((val)&0x3)<<22) /* VME bus request level */ |
|
#define | UNIV_MAST_CTL_VRM (1<<21) /* bus request mode (demand = 0, fair = 1) */ |
|
#define | UNIV_MAST_CTL_VREL (1<<20) /* bus release mode (when done = 0, on request = 1) */ |
|
#define | UNIV_MAST_CTL_VOWN (1<<19) /* bus ownership (release = 0, acquire/hold = 1) */ |
|
#define | UNIV_MAST_CTL_VOWN_ACK (1<<18) /* bus ownership (not owned = 0, acquired/held = 1) */ |
|
#define | UNIV_MAST_CTL_PABS(val) (((val)&0x3)<<3*4) /* PCI aligned burst size (32,64,128 byte / 0x3 is reserved) */ |
|
#define | UNIV_MAST_CTL_BUS_NO(val) (((val)&0xff)<<0*4) /* PCI bus number */ |
|
#define | UNIV_REGOFF_MISC_CTL 0x404 /* misc control register */ |
|
#define | UNIV_MISC_CTL_VBTO(val) (((val)&0x7)<<7*4) /* VME bus timeout (0=disable, 16*2^(val-1) us) */ |
|
#define | UNIV_MISC_CTL_VARB (1<<26) /* VME bus arbitration mode (0=round robin, 1= priority) */ |
|
#define | UNIV_MISC_CTL_VARBTO(val) (((val)&0x3)<<6*4) /* arbitration time out: disable, 16us, 256us, reserved */ |
|
#define | UNIV_MISC_CTL_SW_LRST (1<<23) /* software PCI reset */ |
|
#define | UNIV_MISC_CTL_SW_SYSRST (1<<22) /* software VME reset */ |
|
#define | UNIV_MISC_CTL_BI (1<<20) /* BI mode */ |
|
#define | UNIV_MISC_CTL_ENGBI (1<<19) /* enable global BI mode initiator */ |
|
#define | UNIV_MISC_CTL_SYSCON (1<<17) /* (R/W) 1:universe is system controller */ |
|
#define | UNIV_MISC_CTL_V64AUTO (1<<16) /* (R/W) 1:initiate VME64 auto id slave participation */ |
|
#define | UNIV_REGOFF_U2SPEC 0x4fc |
|
#define | UNIV_U2SPEC_DTKFLTR (1<<12) /* DTAck filter: 0: slow, better filter; 1: fast, poorer filter */ |
|
#define | UNIV_U2SPEC_MASt11 (1<<10) /* Master parameter t11 (DS hi time during BLT and MBLTs) */ |
|
#define | UNIV_U2SPEC_READt27_DEFAULT (0<<8) /* VME master parameter t27: (latch data after DTAck + 25ns) */ |
|
#define | UNIV_U2SPEC_READt27_FAST (1<<8) /* VME master parameter t27: (latch data faster than 25ns) */ |
|
#define | UNIV_U2SPEC_READt27_NODELAY (2<<8) /* VME master parameter t27: (latch data without any delay) */ |
|
#define | UNIV_U2SPEC_POSt28_FAST (1<<2) /* VME slave parameter t28: (faster time of DS to DTAck for posted write) */ |
|
#define | UNIV_U2SPEC_PREt28_FAST (1<<0) /* VME slave parameter t28: (faster time of DS to DTAck for prefetch read) */ |
|
#define | UNIV_REGOFF_LM_CTL 0xf64 |
|
#define | UNIV_LM_CTL_EN (1<<31) /* image enable */ |
|
#define | UNIV_LM_CTL_PGM (1<<23) /* program AM */ |
|
#define | UNIV_LM_CTL_DATA (1<<22) /* data AM */ |
|
#define | UNIV_LM_CTL_SUPER (1<<21) /* supervisor AM */ |
|
#define | UNIV_LM_CTL_USER (1<<20) /* user AM */ |
|
#define | UNIV_LM_CTL_VAS_A16 (0<<16) /* A16 */ |
|
#define | UNIV_LM_CTL_VAS_A24 (1<<16) /* A16 */ |
|
#define | UNIV_LM_CTL_VAS_A32 (2<<16) /* A16 */ |
|
#define | UNIV_REGOFF_LM_BS 0xf68 |
|
#define | UNIV_REGOFF_VRAI_CTL 0xf70 |
|
#define | UNIV_VRAI_CTL_EN (1<<31) /* image enable */ |
|
#define | UNIV_VRAI_CTL_PGM (1<<23) /* program AM */ |
|
#define | UNIV_VRAI_CTL_DATA (1<<22) /* data AM */ |
|
#define | UNIV_VRAI_CTL_SUPER (1<<21) /* supervisor AM */ |
|
#define | UNIV_VRAI_CTL_USER (1<<20) /* user AM */ |
|
#define | UNIV_VRAI_CTL_VAS_A16 (0<<16) /* A16 */ |
|
#define | UNIV_VRAI_CTL_VAS_A24 (1<<16) /* A14 */ |
|
#define | UNIV_VRAI_CTL_VAS_A32 (2<<16) /* A32 */ |
|
#define | UNIV_VRAI_CTL_VAS_MSK (3<<16) |
|
#define | UNIV_REGOFF_VRAI_BS 0xf74 |
|
#define | UNIV_REGOFF_VCSR_CTL 0xf80 |
|
#define | UNIV_VCSR_CTL_EN (1<<31) /* image enable */ |
|
#define | UNIV_VCSR_CTL_LAS_PCI_MEM (0<<0) /* pci mem space */ |
|
#define | UNIV_VCSR_CTL_LAS_PCI_IO (1<<0) /* pci IO space */ |
|
#define | UNIV_VCSR_CTL_LAS_PCI_CFG (2<<0) /* pci config space */ |
|
#define | UNIV_REGOFF_VCSR_TO 0xf84 |
|
#define | UNIV_REGOFF_V_AMERR 0xf88 |
|
#define | UNIV_V_AMERR_AMERR(reg) (((reg)>>26)&0x3f) /* extract error log code */ |
|
#define | UNIV_V_AMERR_IACK (1<<25) /* VMEbus IACK signal */ |
|
#define | UNIV_V_AMERR_M_ERR (1<<24) /* multiple errors occurred */ |
|
#define | UNIV_V_AMERR_V_STAT (1<<23) /* log status valid (write 1 to clear) */ |
|
#define | UNIV_REGOFF_VAERR 0xf8c /* address of fault address (if MERR_V_STAT valid) */ |
|
#define | UNIV_REGOFF_VCSR_CLR 0xff4 |
|
#define | UNIV_VCSR_CLR_RESET (1<<31) /* read/negate LRST (can only be written from VME bus */ |
|
#define | UNIV_VCSR_CLR_SYSFAIL (1<<30) /* read/negate SYSFAIL */ |
|
#define | UNIV_VCSR_CLR_FAIL (1<<29) /* read: board has failed */ |
|
#define | UNIV_REGOFF_VCSR_SET (0xff8) |
|
#define | UNIV_VCSR_SET_RESET (1<<31) /* read/assert LRST (can only be written from VME bus */ |
|
#define | UNIV_VCSR_SET_SYSFAIL (1<<30) /* read/assert SYSFAIL */ |
|
#define | UNIV_VCSR_SET_FAIL (1<<29) /* read: board has failed */ |
|
#define | UNIV_REGOFF_VCSR_BS 0xffc |
|
#define | UNIV_VCSR_BS_MASK (0xf8000000) |
|
#define | UNIV_CSR_OFFSET 0x7f000 |
|