ev64120int.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef IRQ_HANDLER_
  2. #define IRQ_HANDLER_
  3. #define INT_CAUSE_MAIN 0
  4. #define INT_CAUSE_HIGH 1
  5. #define MAX_CAUSE_REGS 4
  6. #define MAX_CAUSE_REG_WIDTH 32
  7. void hook_irq_handler (int int_cause , int bit_num , void *isr_ptr);
  8. int disable_galileo_irq (int int_cause , int bit_num);
  9. int enable_galileo_irq (int int_cause , int bit_num);
  10. extern struct tq_struct irq_handlers[MAX_CAUSE_REGS][MAX_CAUSE_REG_WIDTH];
  11. /*
  12.   PCI interrupts will come in on either the INTA or
  13.   INTD interrups lines, which are mapped to the #2 and
  14.   #5 interrupt pins of the MIPS.  On our boards, they
  15.   all either come in on IntD or they all come in on
  16.   IntA, they aren't mixed. There can be numerous PCI
  17.   interrupts, so we keep a list of the "requested"
  18.   interrupt numbers and go through the list whenever
  19.   we get an IntA/D.
  20.   All PCI interrupts have numbers >= 20 by arbitrary convention.  Any
  21.   interrupt < 8 is an interrupt that is maskable on the
  22.   MIPS.
  23. */
  24. #define TIMER 4
  25. #define INTA 2
  26. #define INTD 5
  27. #endif /* IRQ_HANDLER_ */