18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *	include/asm-mips/dec/kn02ba.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *	DECstation 5000/1xx (3min or KN02-BA) definitions.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *	Copyright (C) 2002, 2003  Maciej W. Rozycki
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef __ASM_MIPS_DEC_KN02BA_H
108c2ecf20Sopenharmony_ci#define __ASM_MIPS_DEC_KN02BA_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <asm/dec/kn02xa.h>		/* For common definitions. */
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * CPU interrupt bits.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#define KN02BA_CPU_INR_HALT	6	/* HALT button */
188c2ecf20Sopenharmony_ci#define KN02BA_CPU_INR_CASCADE	5	/* I/O ASIC cascade */
198c2ecf20Sopenharmony_ci#define KN02BA_CPU_INR_TC2	4	/* TURBOchannel slot #2 */
208c2ecf20Sopenharmony_ci#define KN02BA_CPU_INR_TC1	3	/* TURBOchannel slot #1 */
218c2ecf20Sopenharmony_ci#define KN02BA_CPU_INR_TC0	2	/* TURBOchannel slot #0 */
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/*
248c2ecf20Sopenharmony_ci * I/O ASIC interrupt bits.  Star marks denote non-IRQ status bits.
258c2ecf20Sopenharmony_ci */
268c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_RES_15	15	/* unused */
278c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_NVRAM	14	/* (*) NVRAM clear jumper */
288c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_RES_13	13	/* unused */
298c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_BUS	12	/* memory, I/O bus read/write errors */
308c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_RES_11	11	/* unused */
318c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_NRMOD	10	/* (*) NRMOD manufacturing jumper */
328c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_ASC	9	/* ASC (NCR53C94) SCSI */
338c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_LANCE	8	/* LANCE (Am7990) Ethernet */
348c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_SCC1	7	/* SCC (Z85C30) serial #1 */
358c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_SCC0	6	/* SCC (Z85C30) serial #0 */
368c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_RTC	5	/* DS1287 RTC */
378c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_PSU	4	/* power supply unit warning */
388c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_RES_3	3	/* unused */
398c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_ASC_DATA	2	/* SCSI data ready (for PIO) */
408c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_PBNC	1	/* ~HALT button debouncer */
418c2ecf20Sopenharmony_ci#define KN02BA_IO_INR_PBNO	0	/* HALT button debouncer */
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci/*
458c2ecf20Sopenharmony_ci * Memory Error Register bits.
468c2ecf20Sopenharmony_ci */
478c2ecf20Sopenharmony_ci#define KN02BA_MER_RES_27	(1<<27)		/* unused */
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci/*
508c2ecf20Sopenharmony_ci * Memory Size Register bits.
518c2ecf20Sopenharmony_ci */
528c2ecf20Sopenharmony_ci#define KN02BA_MSR_RES_17	(0x3ff<<17)	/* unused */
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci/*
558c2ecf20Sopenharmony_ci * I/O ASIC System Support Register bits.
568c2ecf20Sopenharmony_ci */
578c2ecf20Sopenharmony_ci#define KN02BA_IO_SSR_TXDIS1	(1<<14)		/* SCC1 transmit disable */
588c2ecf20Sopenharmony_ci#define KN02BA_IO_SSR_TXDIS0	(1<<13)		/* SCC0 transmit disable */
598c2ecf20Sopenharmony_ci#define KN02BA_IO_SSR_RES_12	(1<<12)		/* unused */
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define KN02BA_IO_SSR_LEDS	(0xff<<0)	/* ~diagnostic LEDs */
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#endif /* __ASM_MIPS_DEC_KN02BA_H */
64