IoAssignResources( ) doesn't work with PCI in Win 2000?

Hi,

My device is a PCI card. The OS is Window 2000. The driver is a NT style
driver.

Can I use IoAssignResources( ) to assign memory and IRQ myself?

Thanks,

jhy

You should use HalAssignSlotResources instead of IoAssignResources for PCI
devices. Also follow
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q268743


-Eliyas
This posting is provided “AS IS” with no warranties, and confers no rights.

Hi,

In Viscarola/Mason’s “Windows NT Device Driver Development” p286
mentioned, “the only time drivers for PCI bus devices directly call
IoAssignResources() is when they add resources to those that were reserved
by HalAssignSlotResources().” But it did not specifiy how do.
I need to assign a specific IRQ myself instead of letting PnP manager
assign.
Basically, there are 2 devices in my PCI card. One is 7146, the other is
AMCC5933. Both interrupt lines connected to INTA#. In AMCC5933’s driver,
I want to query 7146’s IRQ then assign the same IRQ for 5933. This is due
to we can not change 7146’s driver (NT style) and if we use WDM for 5933,
OS always assign IRQ23 to 5933 and IRQ9 to 7146. Some how in this
situatiion 5933’s ISR will never be fired. We use the same mechanism in
WinMe and it works. But so far can not assign resource in Win2000 with NT
driver.

Thanks,

jhy