interrupt.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * (C) Copyright 2008
  3. * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
  4. * This work has been supported by: QTechnology http://qtec.com/
  5. * Based on interrupts.c Wolfgang Denk-DENX Software Engineering-wd@denx.de
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef INTERRUPT_H
  21. #define INTERRUPT_H
  22. #if defined(CONFIG_XILINX_440)
  23. #include <asm/xilinx_irq.h>
  24. #else
  25. #include <asm/ppc4xx-uic.h>
  26. #endif
  27. void pic_enable(void);
  28. void pic_irq_enable(unsigned int irq);
  29. void pic_irq_disable(unsigned int irq);
  30. void pic_irq_ack(unsigned int irq);
  31. void external_interrupt(struct pt_regs *regs);
  32. void interrupt_run_handler(int vec);
  33. #endif