阅读:1094回复:0
pci linux设备驱动开发
您好! 做PCI linux 设备驱动中断控制部分发生如下的错误:
i686/include/linux/irq.h:21, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11, from pci.c:21: /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/irq.h:16:25: error: irq_vectors.h: 没有那个文件或目录 In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11, from pci.c:21: /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h: 在顶层: /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:72: 错误:‘NR_IRQS’ 未声明 (不在函数内) In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:74, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6, from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11, from pci.c:21: /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hw_irq.h:28: 错误:‘NR_IRQ_VECTORS 程序是根据LINUX设备驱动程序第三版做的,我的内核是2.6.11-1.1369_FC4 !是不是 内核不匹配呢! 有经验的高人您遇到过这个问题吗?您是如何解决的!希望您可以帮助我!谢谢您! |
|