xref: /linux/arch/mips/include/asm/dec/kn02ca.h (revision 2874c5fd284268364ece81a7bd936f3c8168e567)
1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
2384740dcSRalf Baechle /*
3384740dcSRalf Baechle  *	include/asm-mips/dec/kn02ca.h
4384740dcSRalf Baechle  *
5384740dcSRalf Baechle  *	Personal DECstation 5000/xx (Maxine or KN02-CA) definitions.
6384740dcSRalf Baechle  *
7384740dcSRalf Baechle  *	Copyright (C) 2002, 2003  Maciej W. Rozycki
8384740dcSRalf Baechle  */
9384740dcSRalf Baechle #ifndef __ASM_MIPS_DEC_KN02CA_H
10384740dcSRalf Baechle #define __ASM_MIPS_DEC_KN02CA_H
11384740dcSRalf Baechle 
12384740dcSRalf Baechle #include <asm/dec/kn02xa.h>		/* For common definitions. */
13384740dcSRalf Baechle 
14384740dcSRalf Baechle /*
15384740dcSRalf Baechle  * CPU interrupt bits.
16384740dcSRalf Baechle  */
17384740dcSRalf Baechle #define KN02CA_CPU_INR_HALT	6	/* HALT from ACCESS.Bus */
18384740dcSRalf Baechle #define KN02CA_CPU_INR_CASCADE	5	/* I/O ASIC cascade */
19384740dcSRalf Baechle #define KN02CA_CPU_INR_BUS	4	/* memory, I/O bus read/write errors */
20384740dcSRalf Baechle #define KN02CA_CPU_INR_RTC	3	/* DS1287 RTC */
21384740dcSRalf Baechle #define KN02CA_CPU_INR_TIMER	2	/* ARC periodic timer */
22384740dcSRalf Baechle 
23384740dcSRalf Baechle /*
24384740dcSRalf Baechle  * I/O ASIC interrupt bits.  Star marks denote non-IRQ status bits.
25384740dcSRalf Baechle  */
26384740dcSRalf Baechle #define KN02CA_IO_INR_FLOPPY	15	/* 82077 FDC */
27384740dcSRalf Baechle #define KN02CA_IO_INR_NVRAM	14	/* (*) NVRAM clear jumper */
28384740dcSRalf Baechle #define KN02CA_IO_INR_POWERON	13	/* (*) ACCESS.Bus/power-on reset */
29384740dcSRalf Baechle #define KN02CA_IO_INR_TC0	12	/* TURBOchannel slot #0 */
30384740dcSRalf Baechle #define KN02CA_IO_INR_TIMER	12	/* ARC periodic timer (?) */
31384740dcSRalf Baechle #define KN02CA_IO_INR_ISDN	11	/* Am79C30A ISDN */
32384740dcSRalf Baechle #define KN02CA_IO_INR_NRMOD	10	/* (*) NRMOD manufacturing jumper */
33384740dcSRalf Baechle #define KN02CA_IO_INR_ASC	9	/* ASC (NCR53C94) SCSI */
34384740dcSRalf Baechle #define KN02CA_IO_INR_LANCE	8	/* LANCE (Am7990) Ethernet */
35384740dcSRalf Baechle #define KN02CA_IO_INR_HDFLOPPY	7	/* (*) HD (1.44MB) floppy status */
36384740dcSRalf Baechle #define KN02CA_IO_INR_SCC0	6	/* SCC (Z85C30) serial #0 */
37384740dcSRalf Baechle #define KN02CA_IO_INR_TC1	5	/* TURBOchannel slot #1 */
38384740dcSRalf Baechle #define KN02CA_IO_INR_XDFLOPPY	4	/* (*) XD (2.88MB) floppy status */
39384740dcSRalf Baechle #define KN02CA_IO_INR_VIDEO	3	/* framebuffer */
40384740dcSRalf Baechle #define KN02CA_IO_INR_XVIDEO	2	/* ~framebuffer */
41384740dcSRalf Baechle #define KN02CA_IO_INR_AB_XMIT	1	/* ACCESS.bus transmit */
42384740dcSRalf Baechle #define KN02CA_IO_INR_AB_RECV	0	/* ACCESS.bus receive */
43384740dcSRalf Baechle 
44384740dcSRalf Baechle 
45384740dcSRalf Baechle /*
46384740dcSRalf Baechle  * Memory Error Register bits.
47384740dcSRalf Baechle  */
48384740dcSRalf Baechle #define KN02CA_MER_INTR		(1<<27)		/* ARC IRQ status & ack */
49384740dcSRalf Baechle 
50384740dcSRalf Baechle /*
51384740dcSRalf Baechle  * Memory Size Register bits.
52384740dcSRalf Baechle  */
53384740dcSRalf Baechle #define KN02CA_MSR_INTREN	(1<<26)		/* ARC periodic IRQ enable */
54384740dcSRalf Baechle #define KN02CA_MSR_MS10EN	(1<<25)		/* 10/1ms IRQ period select */
55384740dcSRalf Baechle #define KN02CA_MSR_PFORCE	(0xf<<21)	/* byte lane error force */
56384740dcSRalf Baechle #define KN02CA_MSR_MABEN	(1<<20)		/* A side VFB address enable */
57384740dcSRalf Baechle #define KN02CA_MSR_LASTBANK	(0x7<<17)	/* onboard RAM bank # */
58384740dcSRalf Baechle 
59384740dcSRalf Baechle /*
60384740dcSRalf Baechle  * I/O ASIC System Support Register bits.
61384740dcSRalf Baechle  */
62384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_14	(1<<14)		/* unused */
63384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_13	(1<<13)		/* unused */
64384740dcSRalf Baechle #define KN03CA_IO_SSR_ISDN_RST	(1<<12)		/* ~ISDN (Am79C30A) reset */
65384740dcSRalf Baechle 
66384740dcSRalf Baechle #define KN03CA_IO_SSR_FLOPPY_RST (1<<7)		/* ~FDC (82077) reset */
67384740dcSRalf Baechle #define KN03CA_IO_SSR_VIDEO_RST	(1<<6)		/* ~framebuffer reset */
68384740dcSRalf Baechle #define KN03CA_IO_SSR_AB_RST	(1<<5)		/* ACCESS.bus reset */
69384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_4	(1<<4)		/* unused */
70384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_3	(1<<4)		/* unused */
71384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_2	(1<<2)		/* unused */
72384740dcSRalf Baechle #define KN03CA_IO_SSR_RES_1	(1<<1)		/* unused */
73384740dcSRalf Baechle #define KN03CA_IO_SSR_LED	(1<<0)		/* power LED */
74384740dcSRalf Baechle 
75384740dcSRalf Baechle #endif /* __ASM_MIPS_DEC_KN02CA_H */
76