diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> | 2008-07-17 11:44:12 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-07-18 12:30:50 +0200 |
commit | d865fd09809a3a18669f35f970781820af40e4de (patch) | |
tree | 65506c7eae8f9ebe754f44dcd659a470c211db72 /include/asm-ppc/interrupt.h | |
parent | 42246dacf60d5028d3a48a220ce94efcf56faec4 (diff) | |
download | u-boot-imx-d865fd09809a3a18669f35f970781820af40e4de.zip u-boot-imx-d865fd09809a3a18669f35f970781820af40e4de.tar.gz u-boot-imx-d865fd09809a3a18669f35f970781820af40e4de.tar.bz2 |
ppc4xx: CPU PPC440x5 on Virtex5 FX
-This patchs gives support for the embbedded ppc440
on the Virtex5 FPGAs
-interrupts.c divided in uic.c and interrupts.c
-xilinx_irq.c for xilinx interrupt controller
-Include modifications propossed by Stefan Roese
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-ppc/interrupt.h')
-rw-r--r-- | include/asm-ppc/interrupt.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/asm-ppc/interrupt.h b/include/asm-ppc/interrupt.h new file mode 100644 index 0000000..792836b --- /dev/null +++ b/include/asm-ppc/interrupt.h @@ -0,0 +1,36 @@ +/* + * (C) Copyright 2008 + * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es + * This work has been supported by: QTechnology http://qtec.com/ + * Based on interrupts.c Wolfgang Denk-DENX Software Engineering-wd@denx.de + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +#ifndef INTERRUPT_H +#define INTERRUPT_H + +#if defined(CONFIG_XILINX_440) +#include <asm/xilinx_irq.h> +#else +#include <asm/ppc4xx-uic.h> +#endif + +void pic_enable(void); +void pic_irq_enable(unsigned int irq); +void pic_irq_disable(unsigned int irq); +void pic_irq_ack(unsigned int irq); +void external_interrupt(struct pt_regs *regs); +void interrupt_run_handler(int vec); + +#endif |