阅读:2815回复:10
如何读取系统分配的PCI卡的中断号?
如何读取系统分配的PCI卡的中断号?
|
|
|
沙发#
发布于:2002-08-05 17:39
所有的PCI卡是共用一个中断号的,你的中断服务应检查是否是自己的中断,如果不是,应向下传递
|
|
板凳#
发布于:2002-08-05 17:42
资源里有
|
|
|
地板#
发布于:2002-08-05 17:47
所有的PCI卡是共用一个中断号的, 不会吧,不是吧 |
|
|
地下室#
发布于:2002-08-05 18:11
资源是自动分配的吗?
|
|
|
5楼#
发布于:2002-08-05 19:38
我没详细研究过PCI规范,但在WINDOWS2000系统,PCI是共享中断的,这也有一个好处,我们不须管资源问题了,但在驱动程序却要负责检查本次中断是否给它的,所以驱动程序在检测到一个中断不是自己处理的,应返回false,让下一个服务程序进行处理,否则后面的中断服务将无法收到中断
|
|
6楼#
发布于:2002-08-05 20:01
所有的PCI卡是共用一个中断号的,你的中断服务应检查是否是自己的中断,如果不是,应向下传递 不是所有的PCI卡共享一个中断的。 可以几个PCI卡用一个中断。 |
|
7楼#
发布于:2002-08-05 20:09
是吗,我一直以为是所有共享的
|
|
8楼#
发布于:2002-08-05 20:11
理论上,可以这样。
比如,你的ISA卡太多,把中断用完了,就一个中断给PCI了。。。 |
|
9楼#
发布于:2002-08-06 05:48
Under Windows 2000 with ACPI HAL, all PCI devices share the same interrupt even if you specified different IRQ for different devices. This is a stupid Microsoft restriction. Thinking about if your NIC/video/storage devices share the same interrupt! Even Windows 98/Me don\'t have such a limitation.
Of course you can use standard PC HAL instead of ACPI HAL to use different IRQ specified by system BIOS. But you sacrified ACPI. Anyway, if your MB support APIC, Windows default will use APIC ACPI HAL. Each PCI device will use different IRQ. |
|
|
10楼#
发布于:2002-08-06 15:41
如何读取系统分配的PCI卡的中断号?
----------------------------------- 可以从PCI CONFIG SPACE的 0x3C -- Interrupt Line寄存器取得。 详细情况参看PCI SPEC. |
|
|