Regarding two BARs in PCI config space

Hello all,

I am writing a driver for PCI card which shows two BARs in PCITree tool. My
driver is based on WDM model.
My problem is how to detect two BARs in startDevice routine whicle resource
allocation ?
Count value in partial descriptor list will be always one for WDM drivers.
Is it useful?

I need to od some transaction on both BAR’s. I think i have to store two
BARs in two different values in device extension.

Need some help.

Regards,
Anil

The order of BARs in config space matches the order of resource descriptors in the MN_START_DEVICE IRP.
There can be several resource descriptors, not one.
If you have 2 BARs and only 1 descriptor in START IRP - then looks like your device is not so compatible with PCI spec. You can try to trace the assembler code in pci.sys to determine what namely fails.

Also trace MN_QUERY_RESOURCE_REQUIREMENTS IRP passing by through your driver. How many descriptors the requirements list has?

Max

----- Original Message -----
From: Anil
To: NT Developers Interest List
Sent: Monday, September 23, 2002 10:30 AM
Subject: [ntdev] Regarding two BARs in PCI config space

Hello all,

I am writing a driver for PCI card which shows two BARs in PCITree tool. My driver is based on WDM model.
My problem is how to detect two BARs in startDevice routine whicle resource allocation ?
Count value in partial descriptor list will be always one for WDM drivers. Is it useful?

I need to od some transaction on both BAR’s. I think i have to store two BARs in two different values in device extension.

Need some help.

Regards,
Anil

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%