HalGetBusData

Hello!
Had a question on WDM.
I am trying to get PCI information , and thw way to do
it on NT was HalGetBusData. Now on WDM, we are
supposed to use IRPs READ_CONFIG and WRITE_CONFIG to
get/set the PCI information.
Does READ_CONFIG return the information in the
PCI_COMMON_CONFIG form?

In the START_DEVICE I do get the PCI information, but
I still need to be able to get/set the PCI information
in the NT form for some reasons.
Also, does the PCI config space get returned in
START_DEVICE as a Port resource?

Would really appreciate any help.

Thanks,
K K.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

There is also BUS_INTERFACE_STANDARD, which allows the same as these IRPs.

Max

----- Original Message -----
From: “Kunal”
To: “NT Developers Interest List”
Sent: Tuesday, January 29, 2002 7:00 PM
Subject: [ntdev] HalGetBusData

> Hello!
> Had a question on WDM.
> I am trying to get PCI information , and thw way to do
> it on NT was HalGetBusData. Now on WDM, we are
> supposed to use IRPs READ_CONFIG and WRITE_CONFIG to
> get/set the PCI information.
> Does READ_CONFIG return the information in the
> PCI_COMMON_CONFIG form?
>
> In the START_DEVICE I do get the PCI information, but
> I still need to be able to get/set the PCI information
> in the NT form for some reasons.
> Also, does the PCI config space get returned in
> START_DEVICE as a Port resource?
>
> Would really appreciate any help.
>
> Thanks,
> K K.
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This site has your answer

www.hollistech.com/Resources/Misc articles/getbusdata.htm

regards,

shiv


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thanks for the info, Shiva and Max! It is actually
available on the MS website also. Dumb me, I got that
info at night after the post , should have looked
there first!

But one question still remains unanswered, Is the PCI
space reported as a resource in START_DEVICE?
Im asking this cause I see many devices having a I/O
range of exactly 256 bytes. Is that, by any chance the
PCI header mapped to an IO range? I read somewhere on
Deja that is is something different, but that I/O
range is not PCI space, what is it then? Just curious,
even though my problem is solved.

K K.

— “Shiva Prasad. T. S.”
wrote:
> This site has your answer
>
> www.hollistech.com/Resources/Misc
> articles/getbusdata.htm
>
> regards,
>
> shiv
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> But one question still remains unanswered, Is the PCI

space reported as a resource in START_DEVICE?

No.


Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> But one question still remains unanswered, Is the PCI

space reported as a resource in START_DEVICE?

No, only BARs and interrupt are in START_DEVICE?
Use BUS_INTERFACE_STANDARD or IRP_MN_WRITE_CONFIG to access the rest of the config space.

Deja that is is something different, but that I/O
range is not PCI space, what is it then?

Surely. IO ranges has nothing to do with PCI config space.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com