Aubrey Li | 10ebdd9 | 2007-03-19 01:24:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * U-boot - cpu.h |
| 3 | * |
Aubrey Li | 314d22f | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
Aubrey Li | 10ebdd9 | 2007-03-19 01:24:52 +0800 | [diff] [blame] | 5 | * |
| 6 | * See file CREDITS for list of people who contributed to this |
| 7 | * project. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of |
| 12 | * the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
Aubrey Li | 314d22f | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
Aubrey Li | 10ebdd9 | 2007-03-19 01:24:52 +0800 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #ifndef _CPU_H_ |
| 26 | #define _CPU_H_ |
| 27 | |
| 28 | #include <command.h> |
| 29 | |
| 30 | #define INTERNAL_IRQS (32) |
| 31 | #define NUM_IRQ_NODES 16 |
| 32 | #define DEF_INTERRUPT_FLAGS 1 |
| 33 | #define MAX_TIM_LOAD 0xFFFFFFFF |
| 34 | |
| 35 | void blackfin_irq_panic(int reason, struct pt_regs *reg); |
| 36 | extern void dump(struct pt_regs *regs); |
| 37 | void display_excp(void); |
| 38 | asmlinkage void evt_nmi(void); |
| 39 | asmlinkage void evt_exception(void); |
| 40 | asmlinkage void trap(void); |
| 41 | asmlinkage void evt_ivhw(void); |
| 42 | asmlinkage void evt_rst(void); |
| 43 | asmlinkage void evt_timer(void); |
| 44 | asmlinkage void evt_evt7(void); |
| 45 | asmlinkage void evt_evt8(void); |
| 46 | asmlinkage void evt_evt9(void); |
| 47 | asmlinkage void evt_evt10(void); |
| 48 | asmlinkage void evt_evt11(void); |
| 49 | asmlinkage void evt_evt12(void); |
| 50 | asmlinkage void evt_evt13(void); |
| 51 | asmlinkage void evt_soft_int1(void); |
| 52 | asmlinkage void evt_system_call(void); |
| 53 | void blackfin_irq_panic(int reason, struct pt_regs *regs); |
| 54 | void blackfin_free_irq(unsigned int irq, void *dev_id); |
| 55 | void call_isr(int irq, struct pt_regs *fp); |
| 56 | void blackfin_do_irq(int vec, struct pt_regs *fp); |
| 57 | void blackfin_init_IRQ(void); |
| 58 | void blackfin_enable_irq(unsigned int irq); |
| 59 | void blackfin_disable_irq(unsigned int irq); |
| 60 | extern int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]); |
| 61 | int blackfin_request_irq(unsigned int irq, |
| 62 | void (*handler) (int, void *, struct pt_regs *), |
| 63 | unsigned long flags, const char *devname, |
| 64 | void *dev_id); |
| 65 | void timer_init(void); |
| 66 | #endif |