![]() |
|
|||
0001 /* 0002 * Common tx4927 irq handler 0003 * 0004 * Author: MontaVista Software, Inc. 0005 * source@mvista.com 0006 * 0007 * under the terms of the GNU General Public License as published by the 0008 * Free Software Foundation; either version 2 of the License, or (at your 0009 * option) any later version. 0010 * 0011 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 0012 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 0013 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0014 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0015 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 0016 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 0017 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 0018 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 0019 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 0020 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0021 * 0022 * You should have received a copy of the GNU General Public License along 0023 * with this program; if not, write to the Free Software Foundation, Inc., 0024 * 675 Mass Ave, Cambridge, MA 02139, USA. 0025 */ 0026 #include <linux/init.h> 0027 #include <linux/interrupt.h> 0028 #include <linux/irq.h> 0029 #include <asm/irq_cpu.h> 0030 #include <asm/txx9/tx4927.h> 0031 0032 void __init tx4927_irq_init(void) 0033 { 0034 int i; 0035 0036 mips_cpu_irq_init(); 0037 txx9_irq_init(TX4927_IRC_REG & 0xfffffffffULL); 0038 irq_set_chained_handler(MIPS_CPU_IRQ_BASE + TX4927_IRC_INT, 0039 handle_simple_irq); 0040 /* raise priority for errors, timers, SIO */ 0041 txx9_irq_set_pri(TX4927_IR_ECCERR, 7); 0042 txx9_irq_set_pri(TX4927_IR_WTOERR, 7); 0043 txx9_irq_set_pri(TX4927_IR_PCIERR, 7); 0044 txx9_irq_set_pri(TX4927_IR_PCIPME, 7); 0045 for (i = 0; i < TX4927_NUM_IR_TMR; i++) 0046 txx9_irq_set_pri(TX4927_IR_TMR(i), 6); 0047 for (i = 0; i < TX4927_NUM_IR_SIO; i++) 0048 txx9_irq_set_pri(TX4927_IR_SIO(i), 5); 0049 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |