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