Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * include/asm-mips/txx9irq.h
0003  * TX39/TX49 interrupt controller definitions.
0004  *
0005  * This file is subject to the terms and conditions of the GNU General Public
0006  * License.  See the file "COPYING" in the main directory of this archive
0007  * for more details.
0008  */
0009 #ifndef __ASM_TXX9IRQ_H
0010 #define __ASM_TXX9IRQ_H
0011 
0012 #include <irq.h>
0013 
0014 #ifdef CONFIG_IRQ_MIPS_CPU
0015 #define TXX9_IRQ_BASE   (MIPS_CPU_IRQ_BASE + 8)
0016 #else
0017 #ifdef CONFIG_I8259
0018 #define TXX9_IRQ_BASE   (I8259A_IRQ_BASE + 16)
0019 #else
0020 #define TXX9_IRQ_BASE   0
0021 #endif
0022 #endif
0023 
0024 #define TXx9_MAX_IR 32
0025 
0026 void txx9_irq_init(unsigned long baseaddr);
0027 int txx9_irq(void);
0028 int txx9_irq_set_pri(int irc_irq, int new_pri);
0029 
0030 #endif /* __ASM_TXX9IRQ_H */