···22 * arch/mips/dec/int-handler.S33 *44 * Copyright (C) 1995, 1996, 1997 Paul M. Antoine and Harald Koerfgen55- * Copyright (C) 2000, 2001, 2002, 2003 Maciej W. Rozycki55+ * Copyright (C) 2000, 2001, 2002, 2003, 2005 Maciej W. Rozycki66 *77- * Written by Ralf Baechle and Andreas Busse, modified for DECStation77+ * Written by Ralf Baechle and Andreas Busse, modified for DECstation88 * support by Paul Antoine and Harald Koerfgen.99 *1010 * completly rewritten:···1414 * by Maciej W. Rozycki.1515 */1616#include <linux/config.h>1717-#include <asm/asm.h>1818-#include <asm/regdef.h>1919-#include <asm/mipsregs.h>2020-#include <asm/stackframe.h>1717+2118#include <asm/addrspace.h>1919+#include <asm/asm.h>2020+#include <asm/mipsregs.h>2121+#include <asm/regdef.h>2222+#include <asm/stackframe.h>22232324#include <asm/dec/interrupts.h>2425#include <asm/dec/ioasic_addrs.h>···2928#include <asm/dec/kn02xa.h>3029#include <asm/dec/kn03.h>31303131+#define KN02_CSR_BASE CKSEG1ADDR(KN02_SLOT_BASE + KN02_CSR)3232+#define KN02XA_IOASIC_BASE CKSEG1ADDR(KN02XA_SLOT_BASE + IOASIC_IOCTL)3333+#define KN03_IOASIC_BASE CKSEG1ADDR(KN03_SLOT_BASE + IOASIC_IOCTL)32343335 .text3436 .set noreorder3537/*3636- * decstation_handle_int: Interrupt handler for DECStations3838+ * decstation_handle_int: Interrupt handler for DECstations3739 *3840 * We follow the model in the Indy interrupt code by David Miller, where he3941 * says: a lot of complication here is taken away because:···5248 * 3) Linux only thinks in terms of all IRQs on or all IRQs5349 * off, nothing in between like BSD spl() brain-damage.5450 *5555- * Furthermore, the IRQs on the DECStations look basically (barring5151+ * Furthermore, the IRQs on the DECstations look basically (barring5652 * software IRQs which we don't use at all) like...5753 *5854 * DS2100/3100's, aka kn01, aka Pmax:···6561 * 3 Lance Ethernet6662 * 4 DZ11 serial6763 * 5 RTC6868- * 6 Memory Controller6464+ * 6 Memory Controller & Video6965 * 7 FPU7066 *7167 * DS5000/200, aka kn02, aka 3max:
···1010 *1111 * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions1212 * are by courtesy of Chris Fraser.1313- * Copyright (C) 2000, 2002, 2003 Maciej W. Rozycki1313+ * Copyright (C) 2000, 2002, 2003, 2005 Maciej W. Rozycki1414 */1515#ifndef __ASM_MIPS_DEC_KN03_H1616#define __ASM_MIPS_DEC_KN03_H17171818-#include <asm/addrspace.h>1918#include <asm/dec/ecc.h>2019#include <asm/dec/ioasic_addrs.h>21202222-#define KN03_SLOT_BASE CKSEG1ADDR(0x1f800000)2323-2424-/*2525- * Some port addresses...2626- */2727-#define KN03_IOASIC_BASE (KN03_SLOT_BASE + IOASIC_IOCTL) /* I/O ASIC */2828-#define KN03_RTC_BASE (KN03_SLOT_BASE + IOASIC_TOY) /* RTC */2929-#define KN03_MCR_BASE (KN03_SLOT_BASE + IOASIC_MCR) /* MCR */3030-2121+#define KN03_SLOT_BASE 0x1f80000031223223/*3324 * CPU interrupt bits.
+1-2
include/asm-mips/dec/kn05.h
···2121#ifndef __ASM_MIPS_DEC_KN05_H2222#define __ASM_MIPS_DEC_KN05_H23232424-#include <asm/addrspace.h>2524#include <asm/dec/ioasic_addrs.h>26252726/*···2930 * passed to the I/O ASIC's decoder like with the KN03 or KN02-BA/CA.3031 * Others are handled locally. "Low" slots are always passed.3132 */3232-#define KN4K_SLOT_BASE KSEG1ADDR(0x1fc00000)3333+#define KN4K_SLOT_BASE 0x1fc0000033343435#define KN4K_MB_ROM (0*IOASIC_SLOT_SIZE) /* KN05/KN04 card ROM */3536#define KN4K_IOCTL (1*IOASIC_SLOT_SIZE) /* I/O ASIC */
+18
include/asm-mips/dec/system.h
···11+/*22+ * include/asm-mips/dec/system.h33+ *44+ * Generic DECstation/DECsystem bits.55+ *66+ * Copyright (C) 2005 Maciej W. Rozycki77+ *88+ * This program is free software; you can redistribute it and/or99+ * modify it under the terms of the GNU General Public License1010+ * as published by the Free Software Foundation; either version1111+ * 2 of the License, or (at your option) any later version.1212+ */1313+#ifndef __ASM_DEC_SYSTEM_H1414+#define __ASM_DEC_SYSTEM_H1515+1616+extern unsigned long dec_kn_slot_base, dec_kn_slot_size;1717+1818+#endif /* __ASM_DEC_SYSTEM_H */
+4-6
include/asm-mips/dec/tc.h
···77 *88 * Copyright (c) 1998 Harald Koerfgen99 */1010-#ifndef ASM_TC_H1111-#define ASM_TC_H1212-1313-extern unsigned long system_base;1010+#ifndef __ASM_DEC_TC_H1111+#define __ASM_DEC_TC_H14121513/*1614 * Search for a TURBOchannel Option Module···3436 */3537extern unsigned long get_tc_irq_nr(int);3638/*3737- * Return TURBOchannel clock frequency in hz3939+ * Return TURBOchannel clock frequency in Hz3840 */3941extern unsigned long get_tc_speed(void);40424141-#endif4343+#endif /* __ASM_DEC_TC_H */
+3-8
include/asm-mips/mach-dec/mc146818rtc.h
···33 *44 * Copyright (C) 1998, 2001 by Ralf Baechle55 * Copyright (C) 1998 by Harald Koerfgen66- * Copyright (C) 2002 Maciej W. Rozycki66+ * Copyright (C) 2002, 2005 Maciej W. Rozycki77 *88 * This program is free software; you can redistribute it and/or99 * modify it under the terms of the GNU General Public License···1414#define __ASM_MIPS_DEC_RTC_DEC_H15151616#include <linux/types.h>1717-1817#include <asm/addrspace.h>1818+#include <asm/dec/system.h>19192020extern volatile u8 *dec_rtc_base;2121-extern unsigned long dec_kn_slot_size;22212323-#define RTC_PORT(x) CPHYSADDR(dec_rtc_base)2222+#define RTC_PORT(x) CPHYSADDR((long)dec_rtc_base)2423#define RTC_IO_EXTENT dec_kn_slot_size2524#define RTC_IOMAPPED 02625#undef RTC_IRQ27262827#define RTC_DEC_YEAR 0x3f /* Where we store the real year on DECs. */2929-3030-#include <linux/mc146818rtc.h>3131-#include <linux/module.h>3232-#include <linux/types.h>33283429static inline unsigned char CMOS_READ(unsigned long addr)3530{