18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Hardware info about DECstation 5000/2x0 systems (otherwise known as
38c2ecf20Sopenharmony_ci * 3max+) and DECsystem 5900 systems (otherwise known as bigmax) which
48c2ecf20Sopenharmony_ci * differ mechanically but are otherwise identical (both are known as
58c2ecf20Sopenharmony_ci * KN03).
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
88c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
98c2ecf20Sopenharmony_ci * for more details.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions
128c2ecf20Sopenharmony_ci * are by courtesy of Chris Fraser.
138c2ecf20Sopenharmony_ci * Copyright (C) 2000, 2002, 2003, 2005  Maciej W. Rozycki
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#ifndef __ASM_MIPS_DEC_KN03_H
168c2ecf20Sopenharmony_ci#define __ASM_MIPS_DEC_KN03_H
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#include <asm/dec/ecc.h>
198c2ecf20Sopenharmony_ci#include <asm/dec/ioasic_addrs.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define KN03_SLOT_BASE		0x1f800000
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/*
248c2ecf20Sopenharmony_ci * CPU interrupt bits.
258c2ecf20Sopenharmony_ci */
268c2ecf20Sopenharmony_ci#define KN03_CPU_INR_HALT	6	/* HALT button */
278c2ecf20Sopenharmony_ci#define KN03_CPU_INR_BUS	5	/* memory, I/O bus read/write errors */
288c2ecf20Sopenharmony_ci#define KN03_CPU_INR_RES_4	4	/* unused */
298c2ecf20Sopenharmony_ci#define KN03_CPU_INR_RTC	3	/* DS1287 RTC */
308c2ecf20Sopenharmony_ci#define KN03_CPU_INR_CASCADE	2	/* I/O ASIC cascade */
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/*
338c2ecf20Sopenharmony_ci * I/O ASIC interrupt bits.  Star marks denote non-IRQ status bits.
348c2ecf20Sopenharmony_ci */
358c2ecf20Sopenharmony_ci#define KN03_IO_INR_3MAXP	15	/* (*) 3max+/bigmax ID */
368c2ecf20Sopenharmony_ci#define KN03_IO_INR_NVRAM	14	/* (*) NVRAM clear jumper */
378c2ecf20Sopenharmony_ci#define KN03_IO_INR_TC2		13	/* TURBOchannel slot #2 */
388c2ecf20Sopenharmony_ci#define KN03_IO_INR_TC1		12	/* TURBOchannel slot #1 */
398c2ecf20Sopenharmony_ci#define KN03_IO_INR_TC0		11	/* TURBOchannel slot #0 */
408c2ecf20Sopenharmony_ci#define KN03_IO_INR_NRMOD	10	/* (*) NRMOD manufacturing jumper */
418c2ecf20Sopenharmony_ci#define KN03_IO_INR_ASC		9	/* ASC (NCR53C94) SCSI */
428c2ecf20Sopenharmony_ci#define KN03_IO_INR_LANCE	8	/* LANCE (Am7990) Ethernet */
438c2ecf20Sopenharmony_ci#define KN03_IO_INR_SCC1	7	/* SCC (Z85C30) serial #1 */
448c2ecf20Sopenharmony_ci#define KN03_IO_INR_SCC0	6	/* SCC (Z85C30) serial #0 */
458c2ecf20Sopenharmony_ci#define KN03_IO_INR_RTC		5	/* DS1287 RTC */
468c2ecf20Sopenharmony_ci#define KN03_IO_INR_PSU		4	/* power supply unit warning */
478c2ecf20Sopenharmony_ci#define KN03_IO_INR_RES_3	3	/* unused */
488c2ecf20Sopenharmony_ci#define KN03_IO_INR_ASC_DATA	2	/* SCSI data ready (for PIO) */
498c2ecf20Sopenharmony_ci#define KN03_IO_INR_PBNC	1	/* ~HALT button debouncer */
508c2ecf20Sopenharmony_ci#define KN03_IO_INR_PBNO	0	/* HALT button debouncer */
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci/*
548c2ecf20Sopenharmony_ci * Memory Control Register bits.
558c2ecf20Sopenharmony_ci */
568c2ecf20Sopenharmony_ci#define KN03_MCR_RES_16		(0xffff<<16)	/* unused */
578c2ecf20Sopenharmony_ci#define KN03_MCR_DIAGCHK	(1<<15)		/* diagn/norml ECC reads */
588c2ecf20Sopenharmony_ci#define KN03_MCR_DIAGGEN	(1<<14)		/* diagn/norml ECC writes */
598c2ecf20Sopenharmony_ci#define KN03_MCR_CORRECT	(1<<13)		/* ECC correct/check */
608c2ecf20Sopenharmony_ci#define KN03_MCR_RES_11		(0x3<<12)	/* unused */
618c2ecf20Sopenharmony_ci#define KN03_MCR_BNK32M		(1<<10)		/* 32M/8M stride */
628c2ecf20Sopenharmony_ci#define KN03_MCR_RES_7		(0x7<<7)	/* unused */
638c2ecf20Sopenharmony_ci#define KN03_MCR_CHECK		(0x7f<<0)	/* diagnostic check bits */
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci/*
668c2ecf20Sopenharmony_ci * I/O ASIC System Support Register bits.
678c2ecf20Sopenharmony_ci */
688c2ecf20Sopenharmony_ci#define KN03_IO_SSR_TXDIS1	(1<<14)		/* SCC1 transmit disable */
698c2ecf20Sopenharmony_ci#define KN03_IO_SSR_TXDIS0	(1<<13)		/* SCC0 transmit disable */
708c2ecf20Sopenharmony_ci#define KN03_IO_SSR_RES_12	(1<<12)		/* unused */
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci#define KN03_IO_SSR_LEDS	(0xff<<0)	/* ~diagnostic LEDs */
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci#endif /* __ASM_MIPS_DEC_KN03_H */
75