162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Hardware info common to DECstation 5000/1xx systems (otherwise 362306a36Sopenharmony_ci * known as 3min or kn02ba) and Personal DECstations 5000/xx ones 462306a36Sopenharmony_ci * (otherwise known as maxine or kn02ca). 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 762306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 862306a36Sopenharmony_ci * for more details. 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions 1162306a36Sopenharmony_ci * are by courtesy of Chris Fraser. 1262306a36Sopenharmony_ci * Copyright (C) 2000, 2002, 2003, 2005 Maciej W. Rozycki 1362306a36Sopenharmony_ci * 1462306a36Sopenharmony_ci * These are addresses which have to be known early in the boot process. 1562306a36Sopenharmony_ci * For other addresses refer to tc.h, ioasic_addrs.h and friends. 1662306a36Sopenharmony_ci */ 1762306a36Sopenharmony_ci#ifndef __ASM_MIPS_DEC_KN02XA_H 1862306a36Sopenharmony_ci#define __ASM_MIPS_DEC_KN02XA_H 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#include <asm/dec/ioasic_addrs.h> 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define KN02XA_SLOT_BASE 0x1c000000 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* 2562306a36Sopenharmony_ci * Memory control ASIC registers. 2662306a36Sopenharmony_ci */ 2762306a36Sopenharmony_ci#define KN02XA_MER 0x0c400000 /* memory error register */ 2862306a36Sopenharmony_ci#define KN02XA_MSR 0x0c800000 /* memory size register */ 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci/* 3162306a36Sopenharmony_ci * CPU control ASIC registers. 3262306a36Sopenharmony_ci */ 3362306a36Sopenharmony_ci#define KN02XA_MEM_CONF 0x0e000000 /* write timeout config */ 3462306a36Sopenharmony_ci#define KN02XA_EAR 0x0e000004 /* error address register */ 3562306a36Sopenharmony_ci#define KN02XA_BOOT0 0x0e000008 /* boot 0 register */ 3662306a36Sopenharmony_ci#define KN02XA_MEM_INTR 0x0e00000c /* write err IRQ stat & ack */ 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci/* 3962306a36Sopenharmony_ci * Memory Error Register bits, common definitions. 4062306a36Sopenharmony_ci * The rest is defined in system-specific headers. 4162306a36Sopenharmony_ci */ 4262306a36Sopenharmony_ci#define KN02XA_MER_RES_28 (0xf<<28) /* unused */ 4362306a36Sopenharmony_ci#define KN02XA_MER_RES_17 (0x3ff<<17) /* unused */ 4462306a36Sopenharmony_ci#define KN02XA_MER_PAGERR (1<<16) /* 2k page boundary error */ 4562306a36Sopenharmony_ci#define KN02XA_MER_TRANSERR (1<<15) /* transfer length error */ 4662306a36Sopenharmony_ci#define KN02XA_MER_PARDIS (1<<14) /* parity error disable */ 4762306a36Sopenharmony_ci#define KN02XA_MER_SIZE (1<<13) /* r/o mirror of MSR_SIZE */ 4862306a36Sopenharmony_ci#define KN02XA_MER_RES_12 (1<<12) /* unused */ 4962306a36Sopenharmony_ci#define KN02XA_MER_BYTERR (0xf<<8) /* byte lane error bitmask: */ 5062306a36Sopenharmony_ci#define KN02XA_MER_BYTERR_3 (0x8<<8) /* byte lane #3 */ 5162306a36Sopenharmony_ci#define KN02XA_MER_BYTERR_2 (0x4<<8) /* byte lane #2 */ 5262306a36Sopenharmony_ci#define KN02XA_MER_BYTERR_1 (0x2<<8) /* byte lane #1 */ 5362306a36Sopenharmony_ci#define KN02XA_MER_BYTERR_0 (0x1<<8) /* byte lane #0 */ 5462306a36Sopenharmony_ci#define KN02XA_MER_RES_0 (0xff<<0) /* unused */ 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci/* 5762306a36Sopenharmony_ci * Memory Size Register bits, common definitions. 5862306a36Sopenharmony_ci * The rest is defined in system-specific headers. 5962306a36Sopenharmony_ci */ 6062306a36Sopenharmony_ci#define KN02XA_MSR_RES_27 (0x1f<<27) /* unused */ 6162306a36Sopenharmony_ci#define KN02XA_MSR_RES_14 (0x7<<14) /* unused */ 6262306a36Sopenharmony_ci#define KN02XA_MSR_SIZE (1<<13) /* 16M/4M stride */ 6362306a36Sopenharmony_ci#define KN02XA_MSR_RES_0 (0x1fff<<0) /* unused */ 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci/* 6662306a36Sopenharmony_ci * Error Address Register bits. 6762306a36Sopenharmony_ci */ 6862306a36Sopenharmony_ci#define KN02XA_EAR_RES_29 (0x7<<29) /* unused */ 6962306a36Sopenharmony_ci#define KN02XA_EAR_ADDRESS (0x7ffffff<<2) /* address involved */ 7062306a36Sopenharmony_ci#define KN02XA_EAR_RES_0 (0x3<<0) /* unused */ 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci 7362306a36Sopenharmony_ci#ifndef __ASSEMBLY__ 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ci#include <linux/interrupt.h> 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_cistruct pt_regs; 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ciextern void dec_kn02xa_be_init(void); 8062306a36Sopenharmony_ciextern int dec_kn02xa_be_handler(struct pt_regs *regs, int is_fixup); 8162306a36Sopenharmony_ciextern irqreturn_t dec_kn02xa_be_interrupt(int irq, void *dev_id); 8262306a36Sopenharmony_ci#endif 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci#endif /* __ASM_MIPS_DEC_KN02XA_H */ 85