1*a47a12beSStefan Roese /* 2*a47a12beSStefan Roese * (C) Copyright 2008 3*a47a12beSStefan Roese * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es 4*a47a12beSStefan Roese * This work has been supported by: QTechnology http://qtec.com/ 5*a47a12beSStefan Roese * Based on interrupts.c Wolfgang Denk-DENX Software Engineering-wd@denx.de 6*a47a12beSStefan Roese * 7*a47a12beSStefan Roese * This program is free software: you can redistribute it and/or modify 8*a47a12beSStefan Roese * it under the terms of the GNU General Public License as published by 9*a47a12beSStefan Roese * the Free Software Foundation, either version 2 of the License, or 10*a47a12beSStefan Roese * (at your option) any later version. 11*a47a12beSStefan Roese * 12*a47a12beSStefan Roese * This program is distributed in the hope that it will be useful, 13*a47a12beSStefan Roese * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*a47a12beSStefan Roese * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*a47a12beSStefan Roese * GNU General Public License for more details. 16*a47a12beSStefan Roese * 17*a47a12beSStefan Roese * You should have received a copy of the GNU General Public License 18*a47a12beSStefan Roese * along with this program. If not, see <http://www.gnu.org/licenses/>. 19*a47a12beSStefan Roese */ 20*a47a12beSStefan Roese #ifndef INTERRUPT_H 21*a47a12beSStefan Roese #define INTERRUPT_H 22*a47a12beSStefan Roese 23*a47a12beSStefan Roese #if defined(CONFIG_XILINX_440) 24*a47a12beSStefan Roese #include <asm/xilinx_irq.h> 25*a47a12beSStefan Roese #else 26*a47a12beSStefan Roese #include <asm/ppc4xx-uic.h> 27*a47a12beSStefan Roese #endif 28*a47a12beSStefan Roese 29*a47a12beSStefan Roese void pic_enable(void); 30*a47a12beSStefan Roese void pic_irq_enable(unsigned int irq); 31*a47a12beSStefan Roese void pic_irq_disable(unsigned int irq); 32*a47a12beSStefan Roese void pic_irq_ack(unsigned int irq); 33*a47a12beSStefan Roese void external_interrupt(struct pt_regs *regs); 34*a47a12beSStefan Roese void interrupt_run_handler(int vec); 35*a47a12beSStefan Roese 36*a47a12beSStefan Roese #endif 37