ev64120int.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef _ASM_PMC_CP7000INT_H
  2. #define _ASM_PMC_CP7000INT_H
  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 INTD interrups lines,
  13.  * which are mapped to the #2 and #5 interrupt pins of the MIPS.  On our
  14.  * boards, they all either come in on IntD or they all come in on IntA, they
  15.  * aren't mixed. There can be numerous PCI interrupts, so we keep a list of the
  16.  * "requested" interrupt numbers and go through the list whenever we get an
  17.  * IntA/D.
  18.  *
  19.  * All PCI interrupts have numbers >= 20 by arbitrary convention.  Any
  20.  * interrupt < 8 is an interrupt that is maskable on MIPS.
  21.  */
  22. #define TIMER 4
  23. #define INTA 2
  24. #define INTD 5
  25. #endif /* _ASM_PMC_CP7000INT_H */