intc.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * intc.c
  3. *
  4. * (C) Copyright 2009, Greg Ungerer <gerg@snapgear.com>
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file COPYING in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/types.h>
  11. #include <linux/init.h>
  12. #include <linux/kernel.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/irq.h>
  15. #include <linux/io.h>
  16. #include <asm/traps.h>
  17. #include <asm/coldfire.h>
  18. #include <asm/mcfsim.h>
  19. static void intc_irq_mask(unsigned int irq)
  20. {
  21. }
  22. static void intc_irq_unmask(unsigned int irq)
  23. {
  24. }
  25. static int intc_irq_set_type(unsigned int irq, unsigned int type)
  26. {
  27. return 0;
  28. }
  29. static struct irq_chip intc_irq_chip = {
  30. .name = "CF-INTC",
  31. .mask = intc_irq_mask,
  32. .unmask = intc_irq_unmask,
  33. .set_type = intc_irq_set_type,
  34. };
  35. void __init init_IRQ(void)
  36. {
  37. int irq;
  38. init_vectors();
  39. for (irq = 0; (irq < NR_IRQS); irq++) {
  40. irq_desc[irq].status = IRQ_DISABLED;
  41. irq_desc[irq].action = NULL;
  42. irq_desc[irq].depth = 1;
  43. irq_desc[irq].chip = &intc_irq_chip;
  44. intc_irq_set_type(irq, 0);
  45. }
  46. }