Resource list in StartDevice

Hi All,

I am working on a driver for a PCI card which has 5 memory mapped IO ranges, 3 of those are 16 bytes. My question now is: how do I distinguish these 3 resource descriptors in my StartDevice function ? The documentation states that the resource list is unordered and the only message I found in the archives is about NT 4.0 but I am using Windows 2000/XP.

What is the proper way to find out which registers is associated with which resource ? All I can think of is probing these resigters and hoping I can identify them from the values read back. Is there a better way ?

Jos.

The resource list has always been ordered in my experience.

-----Original Message-----
From: Jos Scherders [mailto:xxxxx@home.nl]
Sent: Monday, April 22, 2002 4:24 PM
To: NT Developers Interest List
Subject: [ntdev] Resource list in StartDevice

Hi All,

I am working on a driver for a PCI card which has 5 memory mapped IO ranges,
3 of those are 16 bytes. My question now is: how do I distinguish these 3
resource descriptors in my StartDevice function ? The documentation states
that the resource list is unordered and the only message I found in the
archives is about NT 4.0 but I am using Windows 2000/XP.

What is the proper way to find out which registers is associated with which
resource ? All I can think of is probing these resigters and hoping I can
identify them from the values read back. Is there a better way ?

Jos.

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

The order in CM_RESOURCE_LIST matches the order on BARs.

Max

----- Original Message -----
From: Jos Scherders
To: NT Developers Interest List
Sent: Tuesday, April 23, 2002 12:24 AM
Subject: [ntdev] Resource list in StartDevice

Hi All,

I am working on a driver for a PCI card which has 5 memory mapped IO ranges, 3 of those are 16 bytes. My question now is: how do I distinguish these 3 resource descriptors in my StartDevice function ? The documentation states that the resource list is unordered and the only message I found in the archives is about NT 4.0 but I am using Windows 2000/XP.

What is the proper way to find out which registers is associated with which resource ? All I can think of is probing these resigters and hoping I can identify them from the values read back. Is there a better way ?

Jos.

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

“Jos Scherders” wrote in message news:xxxxx@ntdev…
>What is the proper way to find out which registers is associated with which
resource ?
>
This information is inherently ordered.

If the DDK docs say otherwise, I’d appreciate your filing a bug with the
reference.

P

Thx Max,

For some reason I thought I read somewhere it was unordered but that must be in one of my nightmares because I can’t find where I read it. Would be nice if microsoft documented this. God knows what happens to all the drivers out there if that order changes.

Jos.

----- Original Message -----
From: Maxim S. Shatskih
To: NT Developers Interest List
Sent: Monday, April 22, 2002 11:54 PM
Subject: [ntdev] Re: Resource list in StartDevice

The order in CM_RESOURCE_LIST matches the order on BARs.

Max

----- Original Message -----
From: Jos Scherders
To: NT Developers Interest List
Sent: Tuesday, April 23, 2002 12:24 AM
Subject: [ntdev] Resource list in StartDevice

Hi All,

I am working on a driver for a PCI card which has 5 memory mapped IO ranges, 3 of those are 16 bytes. My question now is: how do I distinguish these 3 resource descriptors in my StartDevice function ? The documentation states that the resource list is unordered and the only message I found in the archives is about NT 4.0 but I am using Windows 2000/XP.

What is the proper way to find out which registers is associated with which resource ? All I can think of is probing these resigters and hoping I can identify them from the values read back. Is there a better way ?

Jos.

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

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