blob: 7ec33878eaf2b89bc7b2ba0bae7d28d5eaf557a1 [file] [log] [blame]
Wolfgang Denk6cb142f2006-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
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,void *dev_id);
64void timer_init(void);
65#endif