blob: 821363e764b4376fe610f6b02b6fc3573a25e991 [file] [log] [blame]
Wolfgang Denk97caf672006-03-12 02:12:27 +01001/*
2 * U-boot - cpu.h
3 *
4 * Copyright (c) 2005 blackfin.uclinux.org
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
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA
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
Aubrey.Li9da597f2007-03-09 13:38:44 +080035void blackfin_irq_panic(int reason, struct pt_regs *reg);
36extern void dump(struct pt_regs *regs);
Wolfgang Denk97caf672006-03-12 02:12:27 +010037void 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);
Aubrey.Li9da597f2007-03-09 13:38:44 +080053void blackfin_irq_panic(int reason, struct pt_regs *regs);
Wolfgang Denk97caf672006-03-12 02:12:27 +010054void blackfin_free_irq(unsigned int irq, void *dev_id);
Aubrey.Li9da597f2007-03-09 13:38:44 +080055void call_isr(int irq, struct pt_regs *fp);
Wolfgang Denk97caf672006-03-12 02:12:27 +010056void 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);
Aubrey.Li9da597f2007-03-09 13:38:44 +080060extern int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]);
Wolfgang Denk97caf672006-03-12 02:12:27 +010061int blackfin_request_irq(unsigned int irq,
Aubrey.Li9da597f2007-03-09 13:38:44 +080062 void (*handler) (int, void *, struct pt_regs *),
63 unsigned long flags, const char *devname,
64 void *dev_id);
Wolfgang Denk97caf672006-03-12 02:12:27 +010065void timer_init(void);
66#endif