1*384740dcSRalf Baechle /* 2*384740dcSRalf Baechle * Carsten Langgaard, carstenl@mips.com 3*384740dcSRalf Baechle * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. 4*384740dcSRalf Baechle * 5*384740dcSRalf Baechle * ######################################################################## 6*384740dcSRalf Baechle * 7*384740dcSRalf Baechle * This program is free software; you can distribute it and/or modify it 8*384740dcSRalf Baechle * under the terms of the GNU General Public License (Version 2) as 9*384740dcSRalf Baechle * published by the Free Software Foundation. 10*384740dcSRalf Baechle * 11*384740dcSRalf Baechle * This program is distributed in the hope it will be useful, but WITHOUT 12*384740dcSRalf Baechle * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13*384740dcSRalf Baechle * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14*384740dcSRalf Baechle * for more details. 15*384740dcSRalf Baechle * 16*384740dcSRalf Baechle * You should have received a copy of the GNU General Public License along 17*384740dcSRalf Baechle * with this program; if not, write to the Free Software Foundation, Inc., 18*384740dcSRalf Baechle * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 19*384740dcSRalf Baechle * 20*384740dcSRalf Baechle * ######################################################################## 21*384740dcSRalf Baechle * 22*384740dcSRalf Baechle * Defines for the Malta interrupt controller. 23*384740dcSRalf Baechle * 24*384740dcSRalf Baechle */ 25*384740dcSRalf Baechle #ifndef _MIPS_MALTAINT_H 26*384740dcSRalf Baechle #define _MIPS_MALTAINT_H 27*384740dcSRalf Baechle 28*384740dcSRalf Baechle #include <irq.h> 29*384740dcSRalf Baechle 30*384740dcSRalf Baechle /* 31*384740dcSRalf Baechle * Interrupts 0..15 are used for Malta ISA compatible interrupts 32*384740dcSRalf Baechle */ 33*384740dcSRalf Baechle #define MALTA_INT_BASE 0 34*384740dcSRalf Baechle 35*384740dcSRalf Baechle /* CPU interrupt offsets */ 36*384740dcSRalf Baechle #define MIPSCPU_INT_SW0 0 37*384740dcSRalf Baechle #define MIPSCPU_INT_SW1 1 38*384740dcSRalf Baechle #define MIPSCPU_INT_MB0 2 39*384740dcSRalf Baechle #define MIPSCPU_INT_I8259A MIPSCPU_INT_MB0 40*384740dcSRalf Baechle #define MIPSCPU_INT_MB1 3 41*384740dcSRalf Baechle #define MIPSCPU_INT_SMI MIPSCPU_INT_MB1 42*384740dcSRalf Baechle #define MIPSCPU_INT_IPI0 MIPSCPU_INT_MB1 /* GIC IPI */ 43*384740dcSRalf Baechle #define MIPSCPU_INT_MB2 4 44*384740dcSRalf Baechle #define MIPSCPU_INT_IPI1 MIPSCPU_INT_MB2 /* GIC IPI */ 45*384740dcSRalf Baechle #define MIPSCPU_INT_MB3 5 46*384740dcSRalf Baechle #define MIPSCPU_INT_COREHI MIPSCPU_INT_MB3 47*384740dcSRalf Baechle #define MIPSCPU_INT_MB4 6 48*384740dcSRalf Baechle #define MIPSCPU_INT_CORELO MIPSCPU_INT_MB4 49*384740dcSRalf Baechle 50*384740dcSRalf Baechle /* 51*384740dcSRalf Baechle * Interrupts 64..127 are used for Soc-it Classic interrupts 52*384740dcSRalf Baechle */ 53*384740dcSRalf Baechle #define MSC01C_INT_BASE 64 54*384740dcSRalf Baechle 55*384740dcSRalf Baechle /* SOC-it Classic interrupt offsets */ 56*384740dcSRalf Baechle #define MSC01C_INT_TMR 0 57*384740dcSRalf Baechle #define MSC01C_INT_PCI 1 58*384740dcSRalf Baechle 59*384740dcSRalf Baechle /* 60*384740dcSRalf Baechle * Interrupts 64..127 are used for Soc-it EIC interrupts 61*384740dcSRalf Baechle */ 62*384740dcSRalf Baechle #define MSC01E_INT_BASE 64 63*384740dcSRalf Baechle 64*384740dcSRalf Baechle /* SOC-it EIC interrupt offsets */ 65*384740dcSRalf Baechle #define MSC01E_INT_SW0 1 66*384740dcSRalf Baechle #define MSC01E_INT_SW1 2 67*384740dcSRalf Baechle #define MSC01E_INT_MB0 3 68*384740dcSRalf Baechle #define MSC01E_INT_I8259A MSC01E_INT_MB0 69*384740dcSRalf Baechle #define MSC01E_INT_MB1 4 70*384740dcSRalf Baechle #define MSC01E_INT_SMI MSC01E_INT_MB1 71*384740dcSRalf Baechle #define MSC01E_INT_MB2 5 72*384740dcSRalf Baechle #define MSC01E_INT_MB3 6 73*384740dcSRalf Baechle #define MSC01E_INT_COREHI MSC01E_INT_MB3 74*384740dcSRalf Baechle #define MSC01E_INT_MB4 7 75*384740dcSRalf Baechle #define MSC01E_INT_CORELO MSC01E_INT_MB4 76*384740dcSRalf Baechle #define MSC01E_INT_TMR 8 77*384740dcSRalf Baechle #define MSC01E_INT_PCI 9 78*384740dcSRalf Baechle #define MSC01E_INT_PERFCTR 10 79*384740dcSRalf Baechle #define MSC01E_INT_CPUCTR 11 80*384740dcSRalf Baechle 81*384740dcSRalf Baechle /* GIC's Nomenclature for Core Interrupt Pins on the Malta */ 82*384740dcSRalf Baechle #define GIC_CPU_INT0 0 /* Core Interrupt 2 */ 83*384740dcSRalf Baechle #define GIC_CPU_INT1 1 /* . */ 84*384740dcSRalf Baechle #define GIC_CPU_INT2 2 /* . */ 85*384740dcSRalf Baechle #define GIC_CPU_INT3 3 /* . */ 86*384740dcSRalf Baechle #define GIC_CPU_INT4 4 /* . */ 87*384740dcSRalf Baechle #define GIC_CPU_INT5 5 /* Core Interrupt 5 */ 88*384740dcSRalf Baechle 89*384740dcSRalf Baechle #define GIC_EXT_INTR(x) x 90*384740dcSRalf Baechle 91*384740dcSRalf Baechle /* Dummy data */ 92*384740dcSRalf Baechle #define X 0xdead 93*384740dcSRalf Baechle 94*384740dcSRalf Baechle /* External Interrupts used for IPI */ 95*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_RESCHED_VPE0 16 96*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_CALLFNC_VPE0 17 97*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_RESCHED_VPE1 18 98*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_CALLFNC_VPE1 19 99*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_RESCHED_VPE2 20 100*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_CALLFNC_VPE2 21 101*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_RESCHED_VPE3 22 102*384740dcSRalf Baechle #define GIC_IPI_EXT_INTR_CALLFNC_VPE3 23 103*384740dcSRalf Baechle 104*384740dcSRalf Baechle #define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8) 105*384740dcSRalf Baechle 106*384740dcSRalf Baechle #ifndef __ASSEMBLY__ 107*384740dcSRalf Baechle extern void maltaint_init(void); 108*384740dcSRalf Baechle #endif 109*384740dcSRalf Baechle 110*384740dcSRalf Baechle #endif /* !(_MIPS_MALTAINT_H) */ 111