2007-12-22 16:02:21 +02:00
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 infineon
|
2008-12-16 16:07:55 +02:00
|
|
|
* Copyright (C) 2007 John Crispin <blogic@openwrt.org>
|
2007-12-22 16:02:21 +02:00
|
|
|
*/
|
|
|
|
#ifndef _IFXMIPS_IRQ__
|
|
|
|
#define _IFXMIPS_IRQ__
|
|
|
|
|
|
|
|
#define INT_NUM_IRQ0 8
|
|
|
|
#define INT_NUM_IM0_IRL0 (INT_NUM_IRQ0 + 0)
|
|
|
|
#define INT_NUM_IM1_IRL0 (INT_NUM_IRQ0 + 32)
|
|
|
|
#define INT_NUM_IM2_IRL0 (INT_NUM_IRQ0 + 64)
|
|
|
|
#define INT_NUM_IM3_IRL0 (INT_NUM_IRQ0 + 96)
|
|
|
|
#define INT_NUM_IM4_IRL0 (INT_NUM_IRQ0 + 128)
|
|
|
|
#define INT_NUM_IM_OFFSET (INT_NUM_IM1_IRL0 - INT_NUM_IM0_IRL0)
|
|
|
|
|
2008-06-26 02:05:50 +03:00
|
|
|
#define IFXMIPSASC_TIR(x) (INT_NUM_IM3_IRL0 + (x * 7))
|
|
|
|
#define IFXMIPSASC_RIR(x) (INT_NUM_IM3_IRL0 + (x * 7) + 2)
|
|
|
|
#define IFXMIPSASC_EIR(x) (INT_NUM_IM3_IRL0 + (x * 7) + 3)
|
2007-12-22 16:02:21 +02:00
|
|
|
|
|
|
|
#define IFXMIPS_SSC_TIR (INT_NUM_IM0_IRL0 + 15)
|
|
|
|
#define IFXMIPS_SSC_RIR (INT_NUM_IM0_IRL0 + 14)
|
|
|
|
#define IFXMIPS_SSC_EIR (INT_NUM_IM0_IRL0 + 16)
|
|
|
|
|
2009-11-01 20:52:35 +02:00
|
|
|
#define IFXMIPS_MEI_DYING_GASP_INT (INT_NUM_IM1_IRL0 + 21)
|
2007-12-24 22:07:13 +02:00
|
|
|
#define IFXMIPS_MEI_INT (INT_NUM_IM1_IRL0 + 23)
|
|
|
|
|
2007-12-22 16:02:21 +02:00
|
|
|
#define IFXMIPS_TIMER6_INT (INT_NUM_IM1_IRL0 + 23)
|
2010-04-10 23:11:28 +03:00
|
|
|
#define IFXMIPS_USB_INT (INT_NUM_IM1_IRL0 + 22)
|
2007-12-24 22:44:44 +02:00
|
|
|
#define IFXMIPS_USB_OC_INT (INT_NUM_IM4_IRL0 + 23)
|
2007-12-22 16:02:21 +02:00
|
|
|
|
|
|
|
#define MIPS_CPU_TIMER_IRQ 7
|
|
|
|
|
|
|
|
#define IFXMIPS_DMA_CH0_INT (INT_NUM_IM2_IRL0)
|
|
|
|
#define IFXMIPS_DMA_CH1_INT (INT_NUM_IM2_IRL0 + 1)
|
|
|
|
#define IFXMIPS_DMA_CH2_INT (INT_NUM_IM2_IRL0 + 2)
|
|
|
|
#define IFXMIPS_DMA_CH3_INT (INT_NUM_IM2_IRL0 + 3)
|
|
|
|
#define IFXMIPS_DMA_CH4_INT (INT_NUM_IM2_IRL0 + 4)
|
|
|
|
#define IFXMIPS_DMA_CH5_INT (INT_NUM_IM2_IRL0 + 5)
|
|
|
|
#define IFXMIPS_DMA_CH6_INT (INT_NUM_IM2_IRL0 + 6)
|
|
|
|
#define IFXMIPS_DMA_CH7_INT (INT_NUM_IM2_IRL0 + 7)
|
|
|
|
#define IFXMIPS_DMA_CH8_INT (INT_NUM_IM2_IRL0 + 8)
|
|
|
|
#define IFXMIPS_DMA_CH9_INT (INT_NUM_IM2_IRL0 + 9)
|
|
|
|
#define IFXMIPS_DMA_CH10_INT (INT_NUM_IM2_IRL0 + 10)
|
|
|
|
#define IFXMIPS_DMA_CH11_INT (INT_NUM_IM2_IRL0 + 11)
|
|
|
|
#define IFXMIPS_DMA_CH12_INT (INT_NUM_IM2_IRL0 + 25)
|
|
|
|
#define IFXMIPS_DMA_CH13_INT (INT_NUM_IM2_IRL0 + 26)
|
|
|
|
#define IFXMIPS_DMA_CH14_INT (INT_NUM_IM2_IRL0 + 27)
|
|
|
|
#define IFXMIPS_DMA_CH15_INT (INT_NUM_IM2_IRL0 + 28)
|
|
|
|
#define IFXMIPS_DMA_CH16_INT (INT_NUM_IM2_IRL0 + 29)
|
|
|
|
#define IFXMIPS_DMA_CH17_INT (INT_NUM_IM2_IRL0 + 30)
|
|
|
|
#define IFXMIPS_DMA_CH18_INT (INT_NUM_IM2_IRL0 + 16)
|
|
|
|
#define IFXMIPS_DMA_CH19_INT (INT_NUM_IM2_IRL0 + 21)
|
|
|
|
|
2009-10-02 11:09:27 +03:00
|
|
|
#define IFXMIPS_PPE_MBOX_INT (INT_NUM_IM2_IRL0 + 24)
|
|
|
|
|
2010-03-25 13:50:46 +02:00
|
|
|
#define INT_NUM_IM4_IRL14 (INT_NUM_IM4_IRL0 + 14)
|
|
|
|
#define INT_NUM_IM4_IRL18 (INT_NUM_IM4_IRL0 + 18)
|
|
|
|
#define INT_NUM_IM4_IRL19 (INT_NUM_IM4_IRL0 + 19)
|
|
|
|
#define IFXMIPS_USB_OC_INT (INT_NUM_IM4_IRL0 + 23)
|
2008-07-15 12:07:13 +03:00
|
|
|
|
|
|
|
|
2008-06-23 23:31:34 +03:00
|
|
|
extern void ifxmips_mask_and_ack_irq(unsigned int irq_nr);
|
2007-12-22 16:02:21 +02:00
|
|
|
|
|
|
|
#endif
|