⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ev64120int.h

📁 这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的
💻 H
字号:
#ifndef IRQ_HANDLER_#define IRQ_HANDLER_#define INT_CAUSE_MAIN 0#define INT_CAUSE_HIGH 1#define MAX_CAUSE_REGS 4#define MAX_CAUSE_REG_WIDTH 32void hook_irq_handler (int int_cause , int bit_num , void *isr_ptr);int disable_galileo_irq (int int_cause , int bit_num);int enable_galileo_irq (int int_cause , int bit_num);extern struct tq_struct irq_handlers[MAX_CAUSE_REGS][MAX_CAUSE_REG_WIDTH];/*  PCI interrupts will come in on either the INTA or  INTD interrups lines, which are mapped to the #2 and  #5 interrupt pins of the MIPS.  On our boards, they  all either come in on IntD or they all come in on  IntA, they aren't mixed. There can be numerous PCI  interrupts, so we keep a list of the "requested"  interrupt numbers and go through the list whenever  we get an IntA/D.  All PCI interrupts have numbers >= 20 by arbitrary convention.  Any  interrupt < 8 is an interrupt that is maskable on the  MIPS.*/#define TIMER 4#define INTA 2#define INTD 5#endif /* IRQ_HANDLER_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -