Order of Resources

At http://www.oneysoft.com/newerr.htm there is the following statement

p. 366 Order of resources [12/26/02]:
I’ve now been authorized to tell you that your I/O resources will appear in
BAR order for a PCI device, on all platforms. Thus, if you have multiple
resources of the same type and size, you can safely rely on their
descriptors appearing in a predictable order.

My questions are

a) Is this written anywhere in the DDK and, if so, where? (I can’t find it).
b) Has it always been true, merely undocumented, or is there a sufficiently
early platform for which it isn’t true?

Any help appreciated.

Don

(Apologies if this has been answered already. Currently I’m not able to
search NTDEV; I just get error 404)

> -----Original Message-----

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Tuesday, December 14, 2004 6:24 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Order of Resources

At http://www.oneysoft.com/newerr.htm there is the following statement

p. 366 Order of resources [12/26/02]:
I’ve now been authorized to tell you that your I/O resources
will appear in BAR order for a PCI device, on all platforms.
Thus, if you have multiple resources of the same type and
size, you can safely rely on their descriptors appearing in a
predictable order.

My questions are

a) Is this written anywhere in the DDK and, if so, where? (I
can’t find it).

Nope. It hasn’t been written down. I have no idea why. We have discussed the
‘bar-resource-order’ issue several times and we have had several statements
from msoft driver people that confirm the semi-official rule, but it remains
unwritten.

b) Has it always been true, merely undocumented, or is there
a sufficiently early platform for which it isn’t true?

AFAIK it has been true since w2k rtm. I’ve never written a driver for
windos9x/mini-me, so I know nothing about that abomination’s problems.

>a) Is this written anywhere in the DDK and, if so, where? (I can’t find it).

b) Has it always been true, merely undocumented, or is there a sufficiently
early platform for which it isn’t true?

True on any WDM platform, just undocumented.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

> AFAIK it has been true since w2k rtm. I’ve never written a driver for

windos9x/mini-me, so I know nothing about that abomination’s problems.

Same on Win98 first edition.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Mark Roddy wrote:

Nope. It hasn’t been written down. I have no idea why. We have discussed the
‘bar-resource-order’ issue several times and we have had several statements
from msoft driver people that confirm the semi-official rule, but it remains
unwritten.

For MY part, I can tell you that ever time it’s been brought up, I’ve
forgotten to file a bug against the DDK docs for this.

A bug has now been filed, and this should be fixed in a future version
of the DDK docs.

Peter
OSR

Now the Search engine is working again, I did look for the answer to my
question and found an interesting response from Peter in Nov 2002 (Hint:
Search the Archives for “I’ll personally file and track the bug”).

I was going to ask him privately what happened to the bug report that was so
obviously filed at the time, but he has generously (and in public) saved me
the trouble.

Thanks to all the people who responded.

Don Ward

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of PeterGV
Sent: 14 December 2004 18:10
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Order of Resources

Mark Roddy wrote:

>
>
>
> Nope. It hasn’t been written down. I have no idea why. We have
> discussed the ‘bar-resource-order’ issue several times and
we have had
> several statements from msoft driver people that confirm the
> semi-official rule, but it remains unwritten.
>
>

For MY part, I can tell you that ever time it’s been brought up, I’ve
forgotten to file a bug against the DDK docs for this.

A bug has now been filed, and this should be fixed in a
future version
of the DDK docs.

Peter
OSR


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@careful.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com