blob: b6b73b1d8f9c0e8fd4bbc494d2a64b958bc05615 [file] [log] [blame]
Aubrey Li65458982007-03-20 18:16:24 +08001/*
2 * U-boot - cpu.h
3 *
Aubrey Li155fd762007-04-05 18:31:18 +08004 * Copyright (c) 2005-2007 Analog Devices Inc.
Aubrey Li65458982007-03-20 18:16:24 +08005 *
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 Li155fd762007-04-05 18:31:18 +080021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
Aubrey Li65458982007-03-20 18:16:24 +080023 */
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
35void blackfin_irq_panic(int reason, struct pt_regs *reg);
36extern void dump(struct pt_regs *regs);
37void display_excp(void);
38asmlinkage void evt_nmi(void);
39asmlinkage void evt_exception(void);
40asmlinkage void trap(void);
41asmlinkage void evt_ivhw(void);
42asmlinkage void evt_rst(void);
43asmlinkage void evt_timer(void);
44asmlinkage void evt_evt7(void);
45asmlinkage void evt_evt8(void);
46asmlinkage void evt_evt9(void);
47asmlinkage void evt_evt10(void);
48asmlinkage void evt_evt11(void);
49asmlinkage void evt_evt12(void);
50asmlinkage void evt_evt13(void);
51asmlinkage void evt_soft_int1(void);
52asmlinkage void evt_system_call(void);
53void blackfin_irq_panic(int reason, struct pt_regs *regs);
54void blackfin_free_irq(unsigned int irq, void *dev_id);
55void call_isr(int irq, struct pt_regs *fp);
56void blackfin_do_irq(int vec, struct pt_regs *fp);
57void blackfin_init_IRQ(void);
58void blackfin_enable_irq(unsigned int irq);
59void blackfin_disable_irq(unsigned int irq);
60extern int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]);
61int 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);
65void timer_init(void);
66#endif