xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/txx9irq.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * include/asm-mips/txx9irq.h
3*4882a593Smuzhiyun  * TX39/TX49 interrupt controller definitions.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
6*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
7*4882a593Smuzhiyun  * for more details.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #ifndef __ASM_TXX9IRQ_H
10*4882a593Smuzhiyun #define __ASM_TXX9IRQ_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #include <irq.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #ifdef CONFIG_IRQ_MIPS_CPU
15*4882a593Smuzhiyun #define TXX9_IRQ_BASE	(MIPS_CPU_IRQ_BASE + 8)
16*4882a593Smuzhiyun #else
17*4882a593Smuzhiyun #ifdef CONFIG_I8259
18*4882a593Smuzhiyun #define TXX9_IRQ_BASE	(I8259A_IRQ_BASE + 16)
19*4882a593Smuzhiyun #else
20*4882a593Smuzhiyun #define TXX9_IRQ_BASE	0
21*4882a593Smuzhiyun #endif
22*4882a593Smuzhiyun #endif
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #ifdef CONFIG_CPU_TX39XX
25*4882a593Smuzhiyun #define TXx9_MAX_IR 16
26*4882a593Smuzhiyun #else
27*4882a593Smuzhiyun #define TXx9_MAX_IR 32
28*4882a593Smuzhiyun #endif
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun void txx9_irq_init(unsigned long baseaddr);
31*4882a593Smuzhiyun int txx9_irq(void);
32*4882a593Smuzhiyun int txx9_irq_set_pri(int irc_irq, int new_pri);
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun #endif /* __ASM_TXX9IRQ_H */
35