cpu.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  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. #ifndef _CPU_H_
  25. #define _CPU_H_
  26. #include <command.h>
  27. #define INTERNAL_IRQS (32)
  28. #define NUM_IRQ_NODES 16
  29. #define DEF_INTERRUPT_FLAGS 1
  30. #define MAX_TIM_LOAD 0xFFFFFFFF
  31. void blackfin_irq_panic(int reason, struct pt_regs *reg);
  32. extern void dump(struct pt_regs *regs);
  33. void display_excp(void);
  34. asmlinkage void evt_nmi(void);
  35. asmlinkage void evt_exception(void);
  36. asmlinkage void trap(void);
  37. asmlinkage void evt_ivhw(void);
  38. asmlinkage void evt_rst(void);
  39. asmlinkage void evt_timer(void);
  40. asmlinkage void evt_evt7(void);
  41. asmlinkage void evt_evt8(void);
  42. asmlinkage void evt_evt9(void);
  43. asmlinkage void evt_evt10(void);
  44. asmlinkage void evt_evt11(void);
  45. asmlinkage void evt_evt12(void);
  46. asmlinkage void evt_evt13(void);
  47. asmlinkage void evt_soft_int1(void);
  48. asmlinkage void evt_system_call(void);
  49. void blackfin_irq_panic(int reason, struct pt_regs *regs);
  50. void blackfin_free_irq(unsigned int irq, void *dev_id);
  51. void call_isr(int irq, struct pt_regs *fp);
  52. void blackfin_do_irq(int vec, struct pt_regs *fp);
  53. void blackfin_init_IRQ(void);
  54. void blackfin_enable_irq(unsigned int irq);
  55. void blackfin_disable_irq(unsigned int irq);
  56. extern int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]);
  57. int blackfin_request_irq(unsigned int irq,
  58. void (*handler) (int, void *, struct pt_regs *),
  59. unsigned long flags, const char *devname,
  60. void *dev_id);
  61. void timer_init(void);
  62. #endif