xref: /linux/arch/mips/include/asm/mach-lantiq/xway/lantiq_irq.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
28ec6d935SJohn Crispin /*
38ec6d935SJohn Crispin  *
497b92108SJohn Crispin  *  Copyright (C) 2010 John Crispin <john@phrozen.org>
58ec6d935SJohn Crispin  */
68ec6d935SJohn Crispin 
78ec6d935SJohn Crispin #ifndef _LANTIQ_XWAY_IRQ_H__
88ec6d935SJohn Crispin #define _LANTIQ_XWAY_IRQ_H__
98ec6d935SJohn Crispin 
108ec6d935SJohn Crispin #define INT_NUM_IRQ0		8
118ec6d935SJohn Crispin #define INT_NUM_IM0_IRL0	(INT_NUM_IRQ0 + 0)
128ec6d935SJohn Crispin #define INT_NUM_IM1_IRL0	(INT_NUM_IRQ0 + 32)
138ec6d935SJohn Crispin #define INT_NUM_IM2_IRL0	(INT_NUM_IRQ0 + 64)
148ec6d935SJohn Crispin #define INT_NUM_IM3_IRL0	(INT_NUM_IRQ0 + 96)
158ec6d935SJohn Crispin #define INT_NUM_IM4_IRL0	(INT_NUM_IRQ0 + 128)
168ec6d935SJohn Crispin #define INT_NUM_IM_OFFSET	(INT_NUM_IM1_IRL0 - INT_NUM_IM0_IRL0)
178ec6d935SJohn Crispin 
18009d6914SJohn Crispin #define LTQ_DMA_CH0_INT		(INT_NUM_IM2_IRL0)
198ec6d935SJohn Crispin 
2061fa969fSJohn Crispin #define MAX_IM			5
2161fa969fSJohn Crispin 
228ec6d935SJohn Crispin #endif
23