0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef __ASM_MIPS_DEC_IOASIC_ADDRS_H
0019 #define __ASM_MIPS_DEC_IOASIC_ADDRS_H
0020
0021 #define IOASIC_SLOT_SIZE 0x00040000
0022
0023
0024
0025
0026 #define IOASIC_SYS_ROM (0*IOASIC_SLOT_SIZE)
0027 #define IOASIC_IOCTL (1*IOASIC_SLOT_SIZE)
0028 #define IOASIC_ESAR (2*IOASIC_SLOT_SIZE)
0029 #define IOASIC_LANCE (3*IOASIC_SLOT_SIZE)
0030 #define IOASIC_SCC0 (4*IOASIC_SLOT_SIZE)
0031 #define IOASIC_VDAC_HI (5*IOASIC_SLOT_SIZE)
0032 #define IOASIC_SCC1 (6*IOASIC_SLOT_SIZE)
0033 #define IOASIC_VDAC_LO (7*IOASIC_SLOT_SIZE)
0034 #define IOASIC_TOY (8*IOASIC_SLOT_SIZE)
0035 #define IOASIC_ISDN (9*IOASIC_SLOT_SIZE)
0036 #define IOASIC_ERRADDR (9*IOASIC_SLOT_SIZE)
0037 #define IOASIC_CHKSYN (10*IOASIC_SLOT_SIZE)
0038 #define IOASIC_ACC_BUS (10*IOASIC_SLOT_SIZE)
0039 #define IOASIC_MCR (11*IOASIC_SLOT_SIZE)
0040 #define IOASIC_FLOPPY (11*IOASIC_SLOT_SIZE)
0041 #define IOASIC_SCSI (12*IOASIC_SLOT_SIZE)
0042 #define IOASIC_FDC_DMA (13*IOASIC_SLOT_SIZE)
0043 #define IOASIC_SCSI_DMA (14*IOASIC_SLOT_SIZE)
0044 #define IOASIC_RES_15 (15*IOASIC_SLOT_SIZE)
0045
0046
0047
0048
0049
0050
0051
0052 #define IO_REG_SCSI_DMA_P 0x00
0053 #define IO_REG_SCSI_DMA_BP 0x10
0054 #define IO_REG_LANCE_DMA_P 0x20
0055 #define IO_REG_SCC0A_T_DMA_P 0x30
0056 #define IO_REG_SCC0A_R_DMA_P 0x40
0057
0058
0059 #define IO_REG_SCC1A_T_DMA_P 0x50
0060 #define IO_REG_SCC1A_R_DMA_P 0x60
0061
0062
0063 #define IO_REG_AB_T_DMA_P 0x50
0064 #define IO_REG_AB_R_DMA_P 0x60
0065 #define IO_REG_FLOPPY_DMA_P 0x70
0066 #define IO_REG_ISDN_T_DMA_P 0x80
0067 #define IO_REG_ISDN_T_DMA_BP 0x90
0068 #define IO_REG_ISDN_R_DMA_P 0xa0
0069 #define IO_REG_ISDN_R_DMA_BP 0xb0
0070
0071
0072 #define IO_REG_DATA_0 0xc0
0073 #define IO_REG_DATA_1 0xd0
0074 #define IO_REG_DATA_2 0xe0
0075 #define IO_REG_DATA_3 0xf0
0076
0077
0078 #define IO_REG_SSR 0x100
0079 #define IO_REG_SIR 0x110
0080 #define IO_REG_SIMR 0x120
0081 #define IO_REG_SAR 0x130
0082
0083
0084 #define IO_REG_ISDN_T_DATA 0x140
0085 #define IO_REG_ISDN_R_DATA 0x150
0086
0087
0088 #define IO_REG_LANCE_SLOT 0x160
0089 #define IO_REG_SCSI_SLOT 0x170
0090 #define IO_REG_SCC0A_SLOT 0x180
0091
0092
0093 #define IO_REG_SCC1A_SLOT 0x190
0094
0095
0096 #define IO_REG_AB_SLOT 0x190
0097 #define IO_REG_FLOPPY_SLOT 0x1a0
0098
0099
0100 #define IO_REG_SCSI_SCR 0x1b0
0101 #define IO_REG_SCSI_SDR0 0x1c0
0102 #define IO_REG_SCSI_SDR1 0x1d0
0103 #define IO_REG_FCTR 0x1e0
0104 #define IO_REG_RES_31 0x1f0
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115 #define IO_SSR_SCC0A_TX_DMA_EN (1<<31)
0116 #define IO_SSR_SCC0A_RX_DMA_EN (1<<30)
0117 #define IO_SSR_RES_27 (1<<27)
0118 #define IO_SSR_RES_26 (1<<26)
0119 #define IO_SSR_RES_25 (1<<25)
0120 #define IO_SSR_RES_24 (1<<24)
0121 #define IO_SSR_RES_23 (1<<23)
0122 #define IO_SSR_SCSI_DMA_DIR (1<<18)
0123 #define IO_SSR_SCSI_DMA_EN (1<<17)
0124 #define IO_SSR_LANCE_DMA_EN (1<<16)
0125
0126
0127 #define IO_SSR_SCC1A_TX_DMA_EN (1<<29)
0128 #define IO_SSR_SCC1A_RX_DMA_EN (1<<28)
0129 #define IO_SSR_RES_22 (1<<22)
0130 #define IO_SSR_RES_21 (1<<21)
0131 #define IO_SSR_RES_20 (1<<20)
0132 #define IO_SSR_RES_19 (1<<19)
0133
0134
0135 #define IO_SSR_AB_TX_DMA_EN (1<<29)
0136 #define IO_SSR_AB_RX_DMA_EN (1<<28)
0137 #define IO_SSR_FLOPPY_DMA_DIR (1<<22)
0138 #define IO_SSR_FLOPPY_DMA_EN (1<<21)
0139 #define IO_SSR_ISDN_TX_DMA_EN (1<<20)
0140 #define IO_SSR_ISDN_RX_DMA_EN (1<<19)
0141
0142
0143
0144
0145
0146 #define KN0X_IO_SSR_DIAGDN (1<<15)
0147 #define KN0X_IO_SSR_SCC_RST (1<<11)
0148 #define KN0X_IO_SSR_RTC_RST (1<<10)
0149 #define KN0X_IO_SSR_ASC_RST (1<<9)
0150 #define KN0X_IO_SSR_LANCE_RST (1<<8)
0151
0152 #endif