18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Definitions for the address map in the JUNKIO Asic 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Created with Information from: 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * "DEC 3000 300/400/500/600/700/800/900 AXP Models System Programmer's Manual" 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * and the Mach Sources 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * Copyright (C) 199x the Anonymous 158c2ecf20Sopenharmony_ci * Copyright (C) 2002, 2003 Maciej W. Rozycki 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifndef __ASM_MIPS_DEC_IOASIC_ADDRS_H 198c2ecf20Sopenharmony_ci#define __ASM_MIPS_DEC_IOASIC_ADDRS_H 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define IOASIC_SLOT_SIZE 0x00040000 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* 248c2ecf20Sopenharmony_ci * Address ranges decoded by the I/O ASIC for onboard devices. 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_ci#define IOASIC_SYS_ROM (0*IOASIC_SLOT_SIZE) /* system board ROM */ 278c2ecf20Sopenharmony_ci#define IOASIC_IOCTL (1*IOASIC_SLOT_SIZE) /* I/O ASIC */ 288c2ecf20Sopenharmony_ci#define IOASIC_ESAR (2*IOASIC_SLOT_SIZE) /* LANCE MAC address chip */ 298c2ecf20Sopenharmony_ci#define IOASIC_LANCE (3*IOASIC_SLOT_SIZE) /* LANCE Ethernet */ 308c2ecf20Sopenharmony_ci#define IOASIC_SCC0 (4*IOASIC_SLOT_SIZE) /* SCC #0 */ 318c2ecf20Sopenharmony_ci#define IOASIC_VDAC_HI (5*IOASIC_SLOT_SIZE) /* VDAC (maxine) */ 328c2ecf20Sopenharmony_ci#define IOASIC_SCC1 (6*IOASIC_SLOT_SIZE) /* SCC #1 (3min, 3max+) */ 338c2ecf20Sopenharmony_ci#define IOASIC_VDAC_LO (7*IOASIC_SLOT_SIZE) /* VDAC (maxine) */ 348c2ecf20Sopenharmony_ci#define IOASIC_TOY (8*IOASIC_SLOT_SIZE) /* RTC */ 358c2ecf20Sopenharmony_ci#define IOASIC_ISDN (9*IOASIC_SLOT_SIZE) /* ISDN (maxine) */ 368c2ecf20Sopenharmony_ci#define IOASIC_ERRADDR (9*IOASIC_SLOT_SIZE) /* bus error address (3max+) */ 378c2ecf20Sopenharmony_ci#define IOASIC_CHKSYN (10*IOASIC_SLOT_SIZE) /* ECC syndrome (3max+) */ 388c2ecf20Sopenharmony_ci#define IOASIC_ACC_BUS (10*IOASIC_SLOT_SIZE) /* ACCESS.bus (maxine) */ 398c2ecf20Sopenharmony_ci#define IOASIC_MCR (11*IOASIC_SLOT_SIZE) /* memory control (3max+) */ 408c2ecf20Sopenharmony_ci#define IOASIC_FLOPPY (11*IOASIC_SLOT_SIZE) /* FDC (maxine) */ 418c2ecf20Sopenharmony_ci#define IOASIC_SCSI (12*IOASIC_SLOT_SIZE) /* ASC SCSI */ 428c2ecf20Sopenharmony_ci#define IOASIC_FDC_DMA (13*IOASIC_SLOT_SIZE) /* FDC DMA (maxine) */ 438c2ecf20Sopenharmony_ci#define IOASIC_SCSI_DMA (14*IOASIC_SLOT_SIZE) /* ??? */ 448c2ecf20Sopenharmony_ci#define IOASIC_RES_15 (15*IOASIC_SLOT_SIZE) /* unused? */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/* 488c2ecf20Sopenharmony_ci * Offsets for I/O ASIC registers 498c2ecf20Sopenharmony_ci * (relative to (dec_kn_slot_base + IOASIC_IOCTL)). 508c2ecf20Sopenharmony_ci */ 518c2ecf20Sopenharmony_ci /* all systems */ 528c2ecf20Sopenharmony_ci#define IO_REG_SCSI_DMA_P 0x00 /* SCSI DMA Pointer */ 538c2ecf20Sopenharmony_ci#define IO_REG_SCSI_DMA_BP 0x10 /* SCSI DMA Buffer Pointer */ 548c2ecf20Sopenharmony_ci#define IO_REG_LANCE_DMA_P 0x20 /* LANCE DMA Pointer */ 558c2ecf20Sopenharmony_ci#define IO_REG_SCC0A_T_DMA_P 0x30 /* SCC0A Transmit DMA Pointer */ 568c2ecf20Sopenharmony_ci#define IO_REG_SCC0A_R_DMA_P 0x40 /* SCC0A Receive DMA Pointer */ 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci /* except Maxine */ 598c2ecf20Sopenharmony_ci#define IO_REG_SCC1A_T_DMA_P 0x50 /* SCC1A Transmit DMA Pointer */ 608c2ecf20Sopenharmony_ci#define IO_REG_SCC1A_R_DMA_P 0x60 /* SCC1A Receive DMA Pointer */ 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci /* Maxine */ 638c2ecf20Sopenharmony_ci#define IO_REG_AB_T_DMA_P 0x50 /* ACCESS.bus Transmit DMA Pointer */ 648c2ecf20Sopenharmony_ci#define IO_REG_AB_R_DMA_P 0x60 /* ACCESS.bus Receive DMA Pointer */ 658c2ecf20Sopenharmony_ci#define IO_REG_FLOPPY_DMA_P 0x70 /* Floppy DMA Pointer */ 668c2ecf20Sopenharmony_ci#define IO_REG_ISDN_T_DMA_P 0x80 /* ISDN Transmit DMA Pointer */ 678c2ecf20Sopenharmony_ci#define IO_REG_ISDN_T_DMA_BP 0x90 /* ISDN Transmit DMA Buffer Pointer */ 688c2ecf20Sopenharmony_ci#define IO_REG_ISDN_R_DMA_P 0xa0 /* ISDN Receive DMA Pointer */ 698c2ecf20Sopenharmony_ci#define IO_REG_ISDN_R_DMA_BP 0xb0 /* ISDN Receive DMA Buffer Pointer */ 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci /* all systems */ 728c2ecf20Sopenharmony_ci#define IO_REG_DATA_0 0xc0 /* System Data Buffer 0 */ 738c2ecf20Sopenharmony_ci#define IO_REG_DATA_1 0xd0 /* System Data Buffer 1 */ 748c2ecf20Sopenharmony_ci#define IO_REG_DATA_2 0xe0 /* System Data Buffer 2 */ 758c2ecf20Sopenharmony_ci#define IO_REG_DATA_3 0xf0 /* System Data Buffer 3 */ 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci /* all systems */ 788c2ecf20Sopenharmony_ci#define IO_REG_SSR 0x100 /* System Support Register */ 798c2ecf20Sopenharmony_ci#define IO_REG_SIR 0x110 /* System Interrupt Register */ 808c2ecf20Sopenharmony_ci#define IO_REG_SIMR 0x120 /* System Interrupt Mask Reg. */ 818c2ecf20Sopenharmony_ci#define IO_REG_SAR 0x130 /* System Address Register */ 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci /* Maxine */ 848c2ecf20Sopenharmony_ci#define IO_REG_ISDN_T_DATA 0x140 /* ISDN Xmit Data Register */ 858c2ecf20Sopenharmony_ci#define IO_REG_ISDN_R_DATA 0x150 /* ISDN Receive Data Register */ 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci /* all systems */ 888c2ecf20Sopenharmony_ci#define IO_REG_LANCE_SLOT 0x160 /* LANCE I/O Slot Register */ 898c2ecf20Sopenharmony_ci#define IO_REG_SCSI_SLOT 0x170 /* SCSI Slot Register */ 908c2ecf20Sopenharmony_ci#define IO_REG_SCC0A_SLOT 0x180 /* SCC0A DMA Slot Register */ 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci /* except Maxine */ 938c2ecf20Sopenharmony_ci#define IO_REG_SCC1A_SLOT 0x190 /* SCC1A DMA Slot Register */ 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci /* Maxine */ 968c2ecf20Sopenharmony_ci#define IO_REG_AB_SLOT 0x190 /* ACCESS.bus DMA Slot Register */ 978c2ecf20Sopenharmony_ci#define IO_REG_FLOPPY_SLOT 0x1a0 /* Floppy Slot Register */ 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci /* all systems */ 1008c2ecf20Sopenharmony_ci#define IO_REG_SCSI_SCR 0x1b0 /* SCSI Partial-Word DMA Control */ 1018c2ecf20Sopenharmony_ci#define IO_REG_SCSI_SDR0 0x1c0 /* SCSI DMA Partial Word 0 */ 1028c2ecf20Sopenharmony_ci#define IO_REG_SCSI_SDR1 0x1d0 /* SCSI DMA Partial Word 1 */ 1038c2ecf20Sopenharmony_ci#define IO_REG_FCTR 0x1e0 /* Free-Running Counter */ 1048c2ecf20Sopenharmony_ci#define IO_REG_RES_31 0x1f0 /* unused */ 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci/* 1088c2ecf20Sopenharmony_ci * The upper 16 bits of the System Support Register are a part of the 1098c2ecf20Sopenharmony_ci * I/O ASIC's internal DMA engine and thus are common to all I/O ASIC 1108c2ecf20Sopenharmony_ci * machines. The exception is the Maxine, which makes use of the 1118c2ecf20Sopenharmony_ci * FLOPPY and ISDN bits (otherwise unused) and has a different SCC 1128c2ecf20Sopenharmony_ci * wiring. 1138c2ecf20Sopenharmony_ci */ 1148c2ecf20Sopenharmony_ci /* all systems */ 1158c2ecf20Sopenharmony_ci#define IO_SSR_SCC0A_TX_DMA_EN (1<<31) /* SCC0A transmit DMA enable */ 1168c2ecf20Sopenharmony_ci#define IO_SSR_SCC0A_RX_DMA_EN (1<<30) /* SCC0A receive DMA enable */ 1178c2ecf20Sopenharmony_ci#define IO_SSR_RES_27 (1<<27) /* unused */ 1188c2ecf20Sopenharmony_ci#define IO_SSR_RES_26 (1<<26) /* unused */ 1198c2ecf20Sopenharmony_ci#define IO_SSR_RES_25 (1<<25) /* unused */ 1208c2ecf20Sopenharmony_ci#define IO_SSR_RES_24 (1<<24) /* unused */ 1218c2ecf20Sopenharmony_ci#define IO_SSR_RES_23 (1<<23) /* unused */ 1228c2ecf20Sopenharmony_ci#define IO_SSR_SCSI_DMA_DIR (1<<18) /* SCSI DMA direction */ 1238c2ecf20Sopenharmony_ci#define IO_SSR_SCSI_DMA_EN (1<<17) /* SCSI DMA enable */ 1248c2ecf20Sopenharmony_ci#define IO_SSR_LANCE_DMA_EN (1<<16) /* LANCE DMA enable */ 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci /* except Maxine */ 1278c2ecf20Sopenharmony_ci#define IO_SSR_SCC1A_TX_DMA_EN (1<<29) /* SCC1A transmit DMA enable */ 1288c2ecf20Sopenharmony_ci#define IO_SSR_SCC1A_RX_DMA_EN (1<<28) /* SCC1A receive DMA enable */ 1298c2ecf20Sopenharmony_ci#define IO_SSR_RES_22 (1<<22) /* unused */ 1308c2ecf20Sopenharmony_ci#define IO_SSR_RES_21 (1<<21) /* unused */ 1318c2ecf20Sopenharmony_ci#define IO_SSR_RES_20 (1<<20) /* unused */ 1328c2ecf20Sopenharmony_ci#define IO_SSR_RES_19 (1<<19) /* unused */ 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ci /* Maxine */ 1358c2ecf20Sopenharmony_ci#define IO_SSR_AB_TX_DMA_EN (1<<29) /* ACCESS.bus xmit DMA enable */ 1368c2ecf20Sopenharmony_ci#define IO_SSR_AB_RX_DMA_EN (1<<28) /* ACCESS.bus recv DMA enable */ 1378c2ecf20Sopenharmony_ci#define IO_SSR_FLOPPY_DMA_DIR (1<<22) /* Floppy DMA direction */ 1388c2ecf20Sopenharmony_ci#define IO_SSR_FLOPPY_DMA_EN (1<<21) /* Floppy DMA enable */ 1398c2ecf20Sopenharmony_ci#define IO_SSR_ISDN_TX_DMA_EN (1<<20) /* ISDN transmit DMA enable */ 1408c2ecf20Sopenharmony_ci#define IO_SSR_ISDN_RX_DMA_EN (1<<19) /* ISDN receive DMA enable */ 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci/* 1438c2ecf20Sopenharmony_ci * The lower 16 bits are system-specific. Bits 15,11:8 are common and 1448c2ecf20Sopenharmony_ci * defined here. The rest is defined in system-specific headers. 1458c2ecf20Sopenharmony_ci */ 1468c2ecf20Sopenharmony_ci#define KN0X_IO_SSR_DIAGDN (1<<15) /* diagnostic jumper */ 1478c2ecf20Sopenharmony_ci#define KN0X_IO_SSR_SCC_RST (1<<11) /* ~SCC0,1 (Z85C30) reset */ 1488c2ecf20Sopenharmony_ci#define KN0X_IO_SSR_RTC_RST (1<<10) /* ~RTC (DS1287) reset */ 1498c2ecf20Sopenharmony_ci#define KN0X_IO_SSR_ASC_RST (1<<9) /* ~ASC (NCR53C94) reset */ 1508c2ecf20Sopenharmony_ci#define KN0X_IO_SSR_LANCE_RST (1<<8) /* ~LANCE (Am7990) reset */ 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci#endif /* __ASM_MIPS_DEC_IOASIC_ADDRS_H */ 153