1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _M68K_BVME6000HW_H_
3 #define _M68K_BVME6000HW_H_
11 #define BVME_PIT_BASE 0xffa00000
43 } PitRegs_t
, *PitRegsPtr
;
45 #define bvmepit ((*(volatile PitRegsPtr)(BVME_PIT_BASE)))
47 #define BVME_RTC_BASE 0xff900000
83 } RtcRegs_t
, *RtcPtr_t
;
86 #define BVME_I596_BASE 0xff100000
88 #define BVME_ETHIRQ_REG 0xff20000b
90 #define BVME_LOCAL_IRQ_STAT 0xff20000f
92 #define BVME_ETHERR 0x02
93 #define BVME_ABORT_STATUS 0x08
95 #define BVME_NCR53C710_BASE 0xff000000
97 #define BVME_SCC_A_ADDR 0xffb0000b
98 #define BVME_SCC_B_ADDR 0xffb00003
99 #define BVME_SCC_RTxC 7372800
101 #define BVME_CONFIG_REG 0xff500003
103 #define config_reg_ptr (volatile unsigned char *)BVME_CONFIG_REG
105 #define BVME_CONFIG_SW1 0x08
106 #define BVME_CONFIG_SW2 0x04
107 #define BVME_CONFIG_SW3 0x02
108 #define BVME_CONFIG_SW4 0x01
111 #define BVME_IRQ_TYPE_PRIO 0
113 #define BVME_IRQ_PRN (IRQ_USER+20)
114 #define BVME_IRQ_TIMER (IRQ_USER+25)
115 #define BVME_IRQ_I596 IRQ_AUTO_2
116 #define BVME_IRQ_SCSI IRQ_AUTO_3
117 #define BVME_IRQ_RTC IRQ_AUTO_6
118 #define BVME_IRQ_ABORT IRQ_AUTO_7
121 #define BVME_IRQ_SCC_BASE IRQ_USER
122 #define BVME_IRQ_SCCB_TX IRQ_USER
123 #define BVME_IRQ_SCCB_STAT (IRQ_USER+2)
124 #define BVME_IRQ_SCCB_RX (IRQ_USER+4)
125 #define BVME_IRQ_SCCB_SPCOND (IRQ_USER+6)
126 #define BVME_IRQ_SCCA_TX (IRQ_USER+8)
127 #define BVME_IRQ_SCCA_STAT (IRQ_USER+10)
128 #define BVME_IRQ_SCCA_RX (IRQ_USER+12)
129 #define BVME_IRQ_SCCA_SPCOND (IRQ_USER+14)
131 /* Address control registers */
133 #define BVME_ACR_A32VBA 0xff400003
134 #define BVME_ACR_A32MSK 0xff410003
135 #define BVME_ACR_A24VBA 0xff420003
136 #define BVME_ACR_A24MSK 0xff430003
137 #define BVME_ACR_A16VBA 0xff440003
138 #define BVME_ACR_A32LBA 0xff450003
139 #define BVME_ACR_A24LBA 0xff460003
140 #define BVME_ACR_ADDRCTL 0xff470003
142 #define bvme_acr_a32vba *(volatile unsigned char *)BVME_ACR_A32VBA
143 #define bvme_acr_a32msk *(volatile unsigned char *)BVME_ACR_A32MSK
144 #define bvme_acr_a24vba *(volatile unsigned char *)BVME_ACR_A24VBA
145 #define bvme_acr_a24msk *(volatile unsigned char *)BVME_ACR_A24MSK
146 #define bvme_acr_a16vba *(volatile unsigned char *)BVME_ACR_A16VBA
147 #define bvme_acr_a32lba *(volatile unsigned char *)BVME_ACR_A32LBA
148 #define bvme_acr_a24lba *(volatile unsigned char *)BVME_ACR_A24LBA
149 #define bvme_acr_addrctl *(volatile unsigned char *)BVME_ACR_ADDRCTL