alto618
驱动牛犊
驱动牛犊
  • 注册日期2005-02-10
  • 最后登录2008-04-12
  • 粉丝0
  • 关注0
  • 积分120分
  • 威望12点
  • 贡献值0点
  • 好评度12点
  • 原创分0分
  • 专家分0分
阅读:1094回复:0

pci linux设备驱动开发

楼主#
更多 发布于:2008-03-05 19:49
您好! 做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 !是不是 内核不匹配呢! 有经验的高人您遇到过这个问题吗?您是如何解决的!希望您可以帮助我!谢谢您!
游客

返回顶部